Skip to content

Commit 0771f04

Browse files
committed
fix(aws-lambda): one last check with temporary workflow
1 parent 67fb31e commit 0771f04

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: AWS Lambda Flake Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
aws-lambda-flake:
18+
name: aws_lambda py${{ matrix.python-version }} #${{ matrix.attempt }}
19+
timeout-minutes: 30
20+
runs-on: ubuntu-22.04
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
python-version: ["3.8", "3.9", "3.11", "3.13"]
25+
attempt: [1, 2, 3, 4, 5]
26+
services:
27+
docker:
28+
image: docker:dind
29+
options: --privileged
30+
steps:
31+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
34+
with:
35+
enable-cache: false
36+
- name: Setup Test Env
37+
run: uv sync
38+
- name: Test aws_lambda (attempt ${{ matrix.attempt }})
39+
run: |
40+
set -x
41+
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda"

tests/integrations/aws_lambda/test_aws_lambda.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
DOCKER_NETWORK_NAME = "lambda-test-network"
1616
SAM_TEMPLATE_FILE = "sam.template.yaml"
17-
# Teardown is typically ~7s; escalate with kill if SAM exceeds this.
1817
SAM_SHUTDOWN_TIMEOUT = 10
1918

2019

@@ -82,9 +81,9 @@ def before_test():
8281
print("[test_environment fixture] Tearing down AWS Lambda test infrastructure")
8382
process.terminate()
8483
try:
84+
# Teardown is typically ~7s; escalate with kill if SAM exceeds this.
8585
process.wait(timeout=SAM_SHUTDOWN_TIMEOUT)
8686
except subprocess.TimeoutExpired:
87-
# Don't fail the suite if SAM is slow to stop warm containers.
8887
process.kill()
8988
process.wait()
9089

0 commit comments

Comments
 (0)