From bc5ee7216643936e4602185dfe2e83ccd4c142fb Mon Sep 17 00:00:00 2001 From: jlizen Date: Thu, 8 May 2025 14:58:01 +0000 Subject: [PATCH 1/2] fix(integ tests): enable graceful-shutdown feature flag --- lambda-integration-tests/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambda-integration-tests/Cargo.toml b/lambda-integration-tests/Cargo.toml index d7c91088..555840f3 100644 --- a/lambda-integration-tests/Cargo.toml +++ b/lambda-integration-tests/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["AWS", "Lambda", "API"] readme = "../README.md" [dependencies] -lambda_runtime = { path = "../lambda-runtime" } +lambda_runtime = { path = "../lambda-runtime", features = ["tracing", "graceful-shutdown"] } aws_lambda_events = { path = "../lambda-events" } serde_json = "1.0.121" tokio = { version = "1", features = ["full"] } From 342b9e4b5d8b04b54d3bb928329b5c669fcb1d92 Mon Sep 17 00:00:00 2001 From: jlizen Date: Thu, 8 May 2025 15:02:52 +0000 Subject: [PATCH 2/2] chore(ci/cd): build integration test crate as part of PR validation --- .github/workflows/build-integration-test.yml | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build-integration-test.yml diff --git a/.github/workflows/build-integration-test.yml b/.github/workflows/build-integration-test.yml new file mode 100644 index 00000000..3400b052 --- /dev/null +++ b/.github/workflows/build-integration-test.yml @@ -0,0 +1,37 @@ +name: Build integration tests + +on: + push: + paths: + - 'lambda-runtime-api-client/**' + - 'lambda-runtime/**' + - 'lambda-http/**' + - 'lambda-extension/**' + - 'Cargo.toml' + + pull_request: + paths: + - 'lambda-runtime-api-client/**' + - 'lambda-runtime/**' + - 'lambda-http/**' + - 'lambda-extension/**' + - 'Cargo.toml' + +jobs: + build-runtime: + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - "1.81.0" # Current MSRV + - stable + env: + RUST_BACKTRACE: 1 + steps: + - uses: actions/checkout@v3 + + - name: Build Integration tests + uses: ./.github/actions/rust-build + with: + package: lambda_integration_tests + toolchain: ${{ matrix.toolchain}}