Skip to content

Commit d36b69e

Browse files
authored
ci(ric): cut anonymous public.ecr.aws pulls in PR checks (#663)
The RIC PR checks pull their images anonymously from public.ecr.aws and keep hitting its 429 rate limit. Cut the pulls and the burst without losing coverage: - integration-test-matrix: max-parallel 4 instead of the random jitter step. - alpine buildspec: 3.15 only (3.13 and 3.14 are EOL, same musl ABI). - amazoncorretto buildspec: Java 8 only; smoke already runs Corretto 11. - pr-<arch>: drop `test`; the required build check already runs the unit tests.
1 parent 785df95 commit d36b69e

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

‎.github/workflows/runtime-interface-client_pr.yml‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ jobs:
111111
strategy:
112112
# Run every OS/arch combination to completion so one failure doesn't mask the others.
113113
fail-fast: false
114+
# Every shard pulls its images anonymously from public.ecr.aws, and shards
115+
# started together trip its rate limit (429), so cap how many run at once.
116+
max-parallel: 4
114117
matrix:
115118
buildspec:
116119
- buildspec.os.alpine.yml
@@ -136,15 +139,6 @@ jobs:
136139
platform: linux/arm64/v8
137140
name: "integration-test (${{ matrix.buildspec }} / ${{ matrix.arch.label }})"
138141
steps:
139-
- name: Jitter start (stagger matrix shards to spare public.ecr.aws rate limit)
140-
# Every shard is scheduled within milliseconds of the others and hits
141-
# public.ecr.aws / docker hub inside the same rate-limit window, so they
142-
# collectively trip the throttle.
143-
run: |
144-
jitter=$((RANDOM % 61))
145-
echo "Sleeping ${jitter}s to stagger this shard"
146-
sleep "${jitter}"
147-
148142
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
149143

150144
- name: Set up Docker Buildx

‎aws-lambda-java-runtime-interface-client/Makefile‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ setup-codebuild-agent:
3737
.PHONY: test-smoke
3838
test-smoke: test-smoke-x86_64 test-smoke-aarch64
3939

40+
# amazoncorretto 11 is left out of the CI integration matrix
41+
# (buildspec.os.amazoncorretto.yml) because smoke already covers it. Changing it
42+
# here changes integration coverage too.
4043
.PHONY: test-smoke-x86_64
4144
test-smoke-x86_64: setup-codebuild-agent
4245
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.yml alpine 3.15 corretto11 linux/amd64
@@ -64,11 +67,13 @@ dev: test
6467
pr: test test-smoke
6568

6669
# Per-architecture PR checks so CI can run each on a native runner (no QEMU).
70+
# No `test` here: the required `build` check already runs the unit tests
71+
# (build-<arch>), so CI would only run them twice.
6772
.PHONY: pr-x86_64
68-
pr-x86_64: test test-smoke-x86_64
73+
pr-x86_64: test-smoke-x86_64
6974

7075
.PHONY: pr-aarch64
71-
pr-aarch64: test test-smoke-aarch64
76+
pr-aarch64: test-smoke-aarch64
7277

7378
.PHONY: build
7479
build: build-x86_64 build-aarch64

‎aws-lambda-java-runtime-interface-client/test/integration/codebuild/buildspec.os.alpine.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ batch:
1616
env:
1717
variables:
1818
DISTRO_VERSION:
19-
- "3.13"
20-
- "3.14"
2119
- "3.15"
2220
RUNTIME_VERSION:
2321
- "corretto11"

‎aws-lambda-java-runtime-interface-client/test/integration/codebuild/buildspec.os.amazoncorretto.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ batch:
1818
DISTRO_VERSION:
1919
- "amazoncorretto"
2020
RUNTIME_VERSION:
21+
# 11 is covered by the smoke tests (Makefile, test-smoke-<arch>).
2122
- "8"
22-
- "11"
2323
PLATFORM:
2424
- "linux/amd64"
2525
- "linux/arm64/v8"

0 commit comments

Comments
 (0)