Skip to content

Commit 97b4927

Browse files
committed
fix: throttling issue
1 parent 1412aea commit 97b4927

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ jobs:
136136
platform: linux/arm64/v8
137137
name: "integration-test (${{ matrix.buildspec }} / ${{ matrix.arch.label }})"
138138
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+
139148
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
140149

141150
- name: Set up Docker Buildx

‎aws-lambda-java-runtime-interface-client/test/integration/codebuild-local/test_one.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ main() {
6262
mkdir -p "$ARTIFACTS_DIR"
6363

6464
LOCAL_AGENT_IMAGE="$(get_local_agent_image)"
65-
"$(dirname "$0")"/docker-retry.sh docker pull "$LOCAL_AGENT_IMAGE" || true
65+
66+
if ! docker image inspect "$LOCAL_AGENT_IMAGE" >/dev/null 2>&1; then
67+
"$(dirname "$0")"/docker-retry.sh docker pull "$LOCAL_AGENT_IMAGE"
68+
fi
6669

6770
# Run CodeBuild local agent.
6871
"$(dirname "$0")"/codebuild_build.sh \

0 commit comments

Comments
 (0)