Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into lambda test tool branch #1937

Merged
28 commits merged into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
63130d1
chore: update .NET 9 Lambda container images to .NET 9 GA
philasmar Nov 13, 2024
7a0cb17
chore: update .NET 9 Lambda container images to .NET 9 GA
philasmar Nov 13, 2024
0526447
Merge branch 'master' of https://github.com/aws/aws-lambda-dotnet
normj Nov 13, 2024
3f69e5f
Merge branch 'master' of https://git-codecommit.us-west-2.amazonaws.c…
normj Nov 13, 2024
2c65c0d
Update Lambda Blueprints (#1871)
normj Nov 14, 2024
45432d1
Update Lambda Test Tool to support version 2.4.0 of Amazon.Lambda.Cor…
normj Nov 14, 2024
34f39fd
Release 2024-11-14 (#1873)
aws-sdk-dotnet-automation Nov 15, 2024
943862f
Add SnapStart support to Amazon.Lambda.Core and Amazon.Lambda.Runtime…
normj Nov 15, 2024
e7d8301
Version bump libraries to pull in SnapStart versions of Core and Runt…
normj Nov 19, 2024
6f06f19
Release 2024-11-20 (#1878)
aws-sdk-dotnet-automation Nov 20, 2024
8f8e5a3
Update Lambda blueprint to include version of Amazon.Lambda.Core and …
normj Nov 25, 2024
45aa0d8
Update CHANGELOG.md
normj Nov 25, 2024
22382ba
Revert behavior for non SnapShot scenario to throw an exception when …
normj Nov 26, 2024
71a9ce6
Fixed issue "(EmptyBodyBehavior = EmptyBodyBehavior.Allow)" not being…
normj Nov 26, 2024
8a190c6
Release 2024-11-26 (#1886)
aws-sdk-dotnet-automation Nov 26, 2024
6732523
ci: onboard Amazon.Lambda.Templates to AutoVer
philasmar Nov 25, 2024
c7f0759
fix: add NET 9 to fix Lambda custom runtime image (#1890)
philasmar Nov 29, 2024
526c0bd
chore: update VersionPrefix to Version for AutoVer support
philasmar Nov 29, 2024
9f388d9
ci: update release workflow to use .NET 9
philasmar Nov 29, 2024
5e7b325
chore: add workflow to check if change file is included in a PR
philasmar Dec 5, 2024
d34a51f
release_2024-12-09
aws-sdk-dotnet-automation Dec 9, 2024
d7d094e
Update test app CloudFormation templates
aws-sdk-dotnet-automation Dec 9, 2024
3596a58
Updated changelog
aws-sdk-dotnet-automation Dec 9, 2024
982003f
Add missing SnapshotRestore.Registry package to container images (#1904)
philasmar Dec 12, 2024
0b6033a
chore: update lambda dockerfile workflow to support .NET 9
philasmar Dec 12, 2024
4449baa
address semgrep finding
philasmar Dec 19, 2024
5e876d3
chore: fix issue with env var not being passed to powershell script
philasmar Jan 16, 2025
e11b987
Merge pull request #1931 from aws/asmarp/fix-oci-worflow
philasmar Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .autover/autover.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@
"Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester80-pack.csproj",
"Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester90-pack.csproj"
]
},
{
"Name": "Amazon.Lambda.Templates",
"Path": "Blueprints/BlueprintDefinitions/vs2022/Templates.csproj"
},
{
"Name": "SnapshotRestore.Registry",
"Path": "Libraries/src/SnapshotRestore.Registry/SnapshotRestore.Registry.csproj"
}
],
"UseCommitsForChangelog": false,
Expand Down
11 changes: 0 additions & 11 deletions .autover/changes/5f868ca3-fd40-4adc-8f0b-3b492276cc77.json

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/change-file-in-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Change File Included in PR

on:
pull_request:
types: [opened, synchronize, reopened, labeled]

jobs:
check-files-in-directory:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Release Not Needed') && !contains(github.event.pull_request.labels.*.name, 'Release PR') }}
name: Change File Included in PR
runs-on: ubuntu-latest

steps:
- name: Checkout PR code
uses: actions/checkout@v3

- name: Get List of Changed Files
id: changed-files
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf #v45

- name: Check for Change File(s) in .autover/changes/
run: |
DIRECTORY=".autover/changes/"
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "$DIRECTORY"; then
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
else
echo "❌ No change files in '$DIRECTORY' are included in this PR."
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/aws/aws-lambda-dotnet/blob/master/CONTRIBUTING.md"
exit 1
fi
6 changes: 3 additions & 3 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
with:
fetch-depth: '0'
token: ${{ env.AWS_SECRET_TOKEN }}
# Install .NET8 which is needed for AutoVer
- name: Setup .NET 8.0
# Install .NET9 which is needed for AutoVer
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
# Install AutoVer to automate versioning and changelog creation
- name: Install AutoVer
run: dotnet tool install --global AutoVer --version 0.0.24
Expand Down
89 changes: 54 additions & 35 deletions .github/workflows/update-Dockerfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@ on:
description: ".NET 6 Next Version"
type: string
required: true
NET_7_AMD64:
description: ".NET 7 AMD64"
NET_8_AMD64:
description: ".NET 8 AMD64"
type: boolean
required: true
default: "true"
NET_7_ARM64:
description: ".NET 7 ARM64"
NET_8_ARM64:
description: ".NET 8 ARM64"
type: boolean
required: true
default: "true"
NET_7_NEXT_VERSION:
description: ".NET 7 Next Version"
NET_8_NEXT_VERSION:
description: ".NET 8 Next Version"
type: string
required: true
NET_8_AMD64:
description: ".NET 8 AMD64"
NET_9_AMD64:
description: ".NET 9 AMD64"
type: boolean
required: true
default: "true"
NET_8_ARM64:
description: ".NET 8 ARM64"
NET_9_ARM64:
description: ".NET 9 ARM64"
type: boolean
required: true
default: "true"
NET_8_NEXT_VERSION:
description: ".NET 8 Next Version"
NET_9_NEXT_VERSION:
description: ".NET 9 Next Version"
type: string
required: true

Expand All @@ -53,10 +53,10 @@ jobs:
env:
NET_6_AMD64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net6/amd64/Dockerfile"
NET_6_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net6/arm64/Dockerfile"
NET_7_AMD64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net7/amd64/Dockerfile"
NET_7_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net7/arm64/Dockerfile"
NET_8_AMD64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net8/amd64/Dockerfile"
NET_8_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net8/arm64/Dockerfile"
NET_9_AMD64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net9/amd64/Dockerfile"
NET_9_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net9/arm64/Dockerfile"

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -68,45 +68,63 @@ jobs:
- name: Update .NET 6 AMD64
id: update-net6-amd64
shell: pwsh
env:
DOCKERFILE_PATH: ${{ env.NET_6_AMD64_Dockerfile }}
NEXT_VERSION: ${{ github.event.inputs.NET_6_NEXT_VERSION }}
run: |
.\LambdaRuntimeDockerfiles/update-dockerfile.ps1 -DockerfilePath ${{ env.NET_6_AMD64_Dockerfile }} -NextVersion ${{ github.event.inputs.NET_6_NEXT_VERSION }}
.\LambdaRuntimeDockerfiles\update-dockerfile.ps1 -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion "${{ env.NEXT_VERSION }}"
if: ${{ github.event.inputs.NET_6_AMD64 == 'true' }}

- name: Update .NET 6 ARM64
id: update-net6-arm64
shell: pwsh
env:
DOCKERFILE_PATH: ${{ env.NET_6_ARM64_Dockerfile }}
NEXT_VERSION: ${{ github.event.inputs.NET_6_NEXT_VERSION }}
run: |
.\LambdaRuntimeDockerfiles/update-dockerfile.ps1 -DockerfilePath ${{ env.NET_6_ARM64_Dockerfile }} -NextVersion ${{ github.event.inputs.NET_6_NEXT_VERSION }}
.\LambdaRuntimeDockerfiles\update-dockerfile.ps1 -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion "${{ env.NEXT_VERSION }}"
if: ${{ github.event.inputs.NET_6_ARM64 == 'true' }}

- name: Update .NET 7 AMD64
id: update-net7-amd64
shell: pwsh
run: |
.\LambdaRuntimeDockerfiles/update-dockerfile.ps1 -DockerfilePath ${{ env.NET_7_AMD64_Dockerfile }} -NextVersion ${{ github.event.inputs.NET_7_NEXT_VERSION }}
if: ${{ github.event.inputs.NET_7_AMD64 == 'true' }}

- name: Update .NET 7 ARM64
id: update-net7-arm64
shell: pwsh
run: |
.\LambdaRuntimeDockerfiles/update-dockerfile.ps1 -DockerfilePath ${{ env.NET_7_ARM64_Dockerfile }} -NextVersion ${{ github.event.inputs.NET_7_NEXT_VERSION }}
if: ${{ github.event.inputs.NET_7_ARM64 == 'true' }}

- name: Update .NET 8 AMD64
id: update-net8-amd64
shell: pwsh
env:
DOCKERFILE_PATH: ${{ env.NET_8_AMD64_Dockerfile }}
NEXT_VERSION: ${{ github.event.inputs.NET_8_NEXT_VERSION }}
run: |
.\LambdaRuntimeDockerfiles/update-dockerfile.ps1 -DockerfilePath ${{ env.NET_8_AMD64_Dockerfile }} -NextVersion ${{ github.event.inputs.NET_8_NEXT_VERSION }}
.\LambdaRuntimeDockerfiles\update-dockerfile.ps1 -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion "${{ env.NEXT_VERSION }}"
if: ${{ github.event.inputs.NET_8_AMD64 == 'true' }}

- name: Update .NET 8 ARM64
id: update-net8-arm64
shell: pwsh
env:
DOCKERFILE_PATH: ${{ env.NET_8_ARM64_Dockerfile }}
NEXT_VERSION: ${{ github.event.inputs.NET_8_NEXT_VERSION }}
run: |
.\LambdaRuntimeDockerfiles/update-dockerfile.ps1 -DockerfilePath ${{ env.NET_8_ARM64_Dockerfile }} -NextVersion ${{ github.event.inputs.NET_8_NEXT_VERSION }}
.\LambdaRuntimeDockerfiles\update-dockerfile.ps1 -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion "${{ env.NEXT_VERSION }}"
if: ${{ github.event.inputs.NET_8_ARM64 == 'true' }}

- name: Update .NET 9 AMD64
id: update-net9-amd64
shell: pwsh
env:
DOCKERFILE_PATH: ${{ env.NET_9_AMD64_Dockerfile }}
NEXT_VERSION: ${{ github.event.inputs.NET_9_NEXT_VERSION }}
run: |
.\LambdaRuntimeDockerfiles\update-dockerfile.ps1 -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion "${{ env.NEXT_VERSION }}"
if: ${{ github.event.inputs.NET_9_AMD64 == 'true' }}

- name: Update .NET 9 ARM64
id: update-net9-arm64
shell: pwsh
env:
DOCKERFILE_PATH: ${{ env.NET_9_ARM64_Dockerfile }}
NEXT_VERSION: ${{ github.event.inputs.NET_9_NEXT_VERSION }}
run: |
.\LambdaRuntimeDockerfiles\update-dockerfile.ps1 -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion "${{ env.NEXT_VERSION }}"
if: ${{ github.event.inputs.NET_9_ARM64 == 'true' }}

# Update Dockerfiles if newer version of ASP.NET Core is available
- name: Commit and Push
id: commit-push
Expand Down Expand Up @@ -140,11 +158,12 @@ jobs:
'{0}\n{1}\n{2}\n{3}\n{4}\n{5}',
join(steps.update-net6-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net6-arm64.outputs.MESSAGE, '\n'),
join(steps.update-net7-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net7-arm64.outputs.MESSAGE, '\n'),
join(steps.update-net8-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net8-arm64.outputs.MESSAGE, '\n')
join(steps.update-net8-arm64.outputs.MESSAGE, '\n'),
join(steps.update-net9-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net9-arm64.outputs.MESSAGE, '\n')
)
}}"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: "auto-pr"

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
**/packages
**/launchSettings.json
**/Debug/
**/build/

**/project.lock.json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.5.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.1" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.4" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.6.1" />
</ItemGroup>
<!--
The FrameworkReference is used to reduce the deployment bundle size by not having to include
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.2.0.0).",
"Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.6.1.0).",
"Resources": {
"BlueprintBaseName1FunctionsDefaultGenerated": {
"Type": "AWS::Serverless::Function",
"Metadata": {
"Tool": "Amazon.Lambda.Annotations",
"SyncedEvents": [
"RootGet"
]
],
"SyncedEventProperties": {
"RootGet": [
"Path",
"Method"
]
}
},
"Properties": {
"Runtime": "dotnet8",
Expand Down Expand Up @@ -38,7 +44,13 @@
"Tool": "Amazon.Lambda.Annotations",
"SyncedEvents": [
"RootGet"
]
],
"SyncedEventProperties": {
"RootGet": [
"Path",
"Method"
]
}
},
"Properties": {
"Runtime": "dotnet8",
Expand Down Expand Up @@ -67,7 +79,13 @@
"Tool": "Amazon.Lambda.Annotations",
"SyncedEvents": [
"RootGet"
]
],
"SyncedEventProperties": {
"RootGet": [
"Path",
"Method"
]
}
},
"Properties": {
"Runtime": "dotnet8",
Expand Down Expand Up @@ -96,7 +114,13 @@
"Tool": "Amazon.Lambda.Annotations",
"SyncedEvents": [
"RootGet"
]
],
"SyncedEventProperties": {
"RootGet": [
"Path",
"Method"
]
}
},
"Properties": {
"Runtime": "dotnet8",
Expand Down Expand Up @@ -125,7 +149,13 @@
"Tool": "Amazon.Lambda.Annotations",
"SyncedEvents": [
"RootGet"
]
],
"SyncedEventProperties": {
"RootGet": [
"Path",
"Method"
]
}
},
"Properties": {
"Runtime": "dotnet8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.5.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="Moq" Version="4.20.72" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\BlueprintBaseName.1\BlueprintBaseName.1.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<None Include="serverless.template" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.AspNetCoreServer" Version="9.0.0" />
<PackageReference Include="Amazon.Lambda.AspNetCoreServer" Version="9.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<IsPackable>false</IsPackable>
<TargetFramework>net8.0</TargetFramework>
<EnableDefaultContentItems>False</EnableDefaultContentItems>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<Compile Include="ValuesControllerTests.fs" />
Expand All @@ -14,12 +15,12 @@
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.5.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\BlueprintBaseName.1\BlueprintBaseName.1.fsproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@ module ValuesControllerTests =
Assert.True(response.MultiValueHeaders.ContainsKey("Content-Type"))
Assert.Equal("application/json; charset=utf-8", response.MultiValueHeaders.Item("Content-Type").[0])
}

[<EntryPoint>]
let main _ = 0
Loading
Loading