Skip to content

Commit 281133d

Browse files
Merge branch 'dev'
2 parents bc0c745 + cca0f6e commit 281133d

File tree

13 files changed

+59
-18
lines changed

13 files changed

+59
-18
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## Release 2026-02-04
2+
3+
### Amazon.Lambda.Core (2.8.1)
4+
* Add the InternalsVisibleToAttribute to the renamed version of Amazon.Lambda.RuntimeSupport embedded with the Lambda Test Tool
5+
### Amazon.Lambda.RuntimeSupport (1.14.2)
6+
* Add defensive checks for scenarios where a Lambda function uses an older Amazon.Lambda.Core together with the renamed Amazon.Lambda.RuntimeSupport.TestTool assembly embedded in the Lambda Test Tool
7+
### Amazon.Lambda.TestTool (0.12.0)
8+
* Rename embedded Amazon.Lambda.RuntimeSupport assembly to Amazon.Lambda.RuntimeSupport.TestTool to avoid conflicts with Lambda function that might include Amazon.Lambda.RuntimeSupport
9+
110
## Release 2026-01-30
211

312
### Amazon.Lambda.TestTool.BlazorTester (0.17.0)

LambdaRuntimeDockerfiles/Images/net10/amd64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG AMAZON_LINUX=public.ecr.aws/lambda/provided:al2023
88

99
FROM $AMAZON_LINUX AS base
1010

11-
RUN dnf install libicu-67.1-7.amzn2023.0.3.x86_64 --assumeyes
11+
RUN dnf install libicu-67.1-7.amzn2023.0.4.x86_64 --assumeyes
1212

1313
FROM base AS builder-net10
1414
ARG ASPNET_VERSION

LambdaRuntimeDockerfiles/Images/net10/arm64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG AMAZON_LINUX=public.ecr.aws/lambda/provided:al2023
88

99
FROM $AMAZON_LINUX AS base
1010

11-
RUN dnf install libicu-67.1-7.amzn2023.0.3.aarch64 --assumeyes
11+
RUN dnf install libicu-67.1-7.amzn2023.0.4.aarch64 --assumeyes
1212

1313
FROM base AS builder-net10
1414
ARG ASPNET_VERSION

LambdaRuntimeDockerfiles/Images/net8/amd64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG AMAZON_LINUX=public.ecr.aws/lambda/provided:al2023
88

99
FROM $AMAZON_LINUX AS base
1010

11-
RUN dnf install libicu-67.1-7.amzn2023.0.3.x86_64 --assumeyes
11+
RUN dnf install libicu-67.1-7.amzn2023.0.4.x86_64 --assumeyes
1212

1313
FROM base AS builder-net8
1414
ARG ASPNET_VERSION

LambdaRuntimeDockerfiles/Images/net8/arm64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG AMAZON_LINUX=public.ecr.aws/lambda/provided:al2023
88

99
FROM $AMAZON_LINUX AS base
1010

11-
RUN dnf install libicu-67.1-7.amzn2023.0.3.aarch64 --assumeyes
11+
RUN dnf install libicu-67.1-7.amzn2023.0.4.aarch64 --assumeyes
1212

1313
FROM base AS builder-net8
1414
ARG ASPNET_VERSION

LambdaRuntimeDockerfiles/Images/net9/amd64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG AMAZON_LINUX=public.ecr.aws/lambda/provided:al2023
88

99
FROM $AMAZON_LINUX AS base
1010

11-
RUN dnf install libicu-67.1-7.amzn2023.0.3.x86_64 --assumeyes
11+
RUN dnf install libicu-67.1-7.amzn2023.0.4.x86_64 --assumeyes
1212

1313
FROM base AS builder-net9
1414
ARG ASPNET_VERSION

LambdaRuntimeDockerfiles/Images/net9/arm64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG AMAZON_LINUX=public.ecr.aws/lambda/provided:al2023
88

99
FROM $AMAZON_LINUX AS base
1010

11-
RUN dnf install libicu-67.1-7.amzn2023.0.3.aarch64 --assumeyes
11+
RUN dnf install libicu-67.1-7.amzn2023.0.4.aarch64 --assumeyes
1212

1313
FROM base AS builder-net9
1414
ARG ASPNET_VERSION

Libraries/src/Amazon.Lambda.Core/Amazon.Lambda.Core.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
77
<Description>Amazon Lambda .NET Core support - Core package.</Description>
88
<AssemblyTitle>Amazon.Lambda.Core</AssemblyTitle>
9-
<Version>2.8.0</Version>
9+
<Version>2.8.1</Version>
1010
<AssemblyName>Amazon.Lambda.Core</AssemblyName>
1111
<PackageId>Amazon.Lambda.Core</PackageId>
1212
<PackageTags>AWS;Amazon;Lambda</PackageTags>
@@ -18,6 +18,9 @@
1818
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
1919
<_Parameter1>Amazon.Lambda.RuntimeSupport, PublicKey="0024000004800000940000000602000000240000525341310004000001000100db5f59f098d27276c7833875a6263a3cc74ab17ba9a9df0b52aedbe7252745db7274d5271fd79c1f08f668ecfa8eaab5626fa76adc811d3c8fc55859b0d09d3bc0a84eecd0ba891f2b8a2fc55141cdcc37c2053d53491e650a479967c3622762977900eddbf1252ed08a2413f00a28f3a0752a81203f03ccb7f684db373518b4"</_Parameter1>
2020
</AssemblyAttribute>
21+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
22+
<_Parameter1>Amazon.Lambda.RuntimeSupport.TestTool, PublicKey="0024000004800000940000000602000000240000525341310004000001000100db5f59f098d27276c7833875a6263a3cc74ab17ba9a9df0b52aedbe7252745db7274d5271fd79c1f08f668ecfa8eaab5626fa76adc811d3c8fc55859b0d09d3bc0a84eecd0ba891f2b8a2fc55141cdcc37c2053d53491e650a479967c3622762977900eddbf1252ed08a2413f00a28f3a0752a81203f03ccb7f684db373518b4"</_Parameter1>
23+
</AssemblyAttribute>
2124
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
2225
<_Parameter1>Amazon.Lambda.RuntimeSupport.UnitTests, PublicKey="0024000004800000940000000602000000240000525341310004000001000100db5f59f098d27276c7833875a6263a3cc74ab17ba9a9df0b52aedbe7252745db7274d5271fd79c1f08f668ecfa8eaab5626fa76adc811d3c8fc55859b0d09d3bc0a84eecd0ba891f2b8a2fc55141cdcc37c2053d53491e650a479967c3622762977900eddbf1252ed08a2413f00a28f3a0752a81203f03ccb7f684db373518b4"</_Parameter1>
2326
</AssemblyAttribute>

Libraries/src/Amazon.Lambda.RuntimeSupport/Amazon.Lambda.RuntimeSupport.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44

55
<PropertyGroup>
66
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
7-
<Version>1.14.1</Version>
7+
<Version>1.14.2</Version>
88
<Description>Provides a bootstrap and Lambda Runtime API Client to help you to develop custom .NET Core Lambda Runtimes.</Description>
99
<AssemblyTitle>Amazon.Lambda.RuntimeSupport</AssemblyTitle>
10-
<AssemblyName>Amazon.Lambda.RuntimeSupport</AssemblyName>
1110
<PackageId>Amazon.Lambda.RuntimeSupport</PackageId>
1211
<PackageTags>AWS;Amazon;Lambda</PackageTags>
1312
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -24,6 +23,13 @@
2423
<CheckEolTargetFramework>false</CheckEolTargetFramework>
2524
</PropertyGroup>
2625

26+
<PropertyGroup Condition=" '$(AlternateAssemblyName)'!='' ">
27+
<AssemblyName>$(AlternateAssemblyName)</AssemblyName>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(AlternateAssemblyName)'=='' ">
30+
<AssemblyName>Amazon.Lambda.RuntimeSupport</AssemblyName>
31+
</PropertyGroup>
32+
2733
<PropertyGroup Condition=" '$(ExecutableOutputType)'=='true' ">
2834
<OutputType>Exe</OutputType>
2935
<DefineConstants>$(DefineConstants);ExecutableOutputType</DefineConstants>

Libraries/src/Amazon.Lambda.RuntimeSupport/Bootstrap/LambdaBootstrap.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ internal LambdaBootstrap(HttpClient httpClient, LambdaBootstrapHandler handler,
235235
{
236236
registry = SnapstartHelperCopySnapshotCallbacksIsolated.CopySnapshotCallbacks();
237237
}
238+
catch (MethodAccessException ex)
239+
{
240+
// This would happen with the Lambda test tool when the Amazon.Lambda.RuntimeSupport assembly
241+
// was renamed when embedded into the test tool. The renamed assembly would cause this error
242+
// since older versions Amazon.Lambda.Core used in the customer's function would not have provided
243+
// access to the internals for the renamed assembly version.
244+
Client.ConsoleLogger.FormattedWriteLine(
245+
Amazon.Lambda.RuntimeSupport.Helpers.LogLevelLoggerWriter.LogLevel.Error.ToString(),
246+
"Failed to retrieve snapshot hooks from Amazon.Lambda.Core.SnapshotRestore, " +
247+
$"this can be fixed by updating the version of Amazon.Lambda.Core: {ex}",
248+
null);
249+
}
238250
catch (TypeLoadException ex)
239251
{
240252
Client.ConsoleLogger.FormattedWriteLine(
@@ -441,14 +453,24 @@ private void SetInvocationTraceId(string traceId)
441453
{
442454
TraceProviderIsolated.SetCurrentTraceId(traceId);
443455
}
456+
catch (MethodAccessException)
457+
{
458+
// This would happen with the Lambda test tool when the Amazon.Lambda.RuntimeSupport assembly
459+
// was renamed when embedded into the test tool. The renamed assembly would cause this error
460+
// since older versions Amazon.Lambda.Core used in the customer's function would not have provided
461+
// access to the internals for the renamed assembly version.
462+
_disableTraceProvider = true;
463+
_logger.LogInformation("Failed to set the trace id on Amazon.Lambda.Core.LambdaTraceProvider due to the version of " +
464+
"Amazon.Lambda.Core being provided by Lambda Function being out of date.");
465+
}
444466
catch (TypeLoadException)
445467
{
446468
// Disable attempting to set trace id in the future. If we got a TypeLoadException then setting the
447469
// trace id will never work in the future. Avoid triggering exceptions for every invocation.
448470
_disableTraceProvider = true;
449471
_logger.LogInformation("Failed to set the trace id on Amazon.Lambda.Core.LambdaTraceProvider due to the version of " +
450472
"Amazon.Lambda.Core being provided by Lambda Function being out of date.");
451-
}
473+
}
452474
}
453475
}
454476

0 commit comments

Comments
 (0)