From 1fcc459bd091a3528d0d7f6a97c6dc7463e6d1dd Mon Sep 17 00:00:00 2001 From: Aidan Daly Date: Fri, 4 Sep 2026 15:40:16 +0000 Subject: [PATCH 1/2] ci(verify): give each CodeBuild job a unique runner label Every CodeBuild job in a run shares the codebuild-agentcore-e2e label and CodeBuild registers each runner with all labels its job requested, so a runner created for the Windows job also satisfies the plain Linux job. GitHub then runs the Linux job on Windows and the Windows job never gets a runner. A per-job label makes each job match only its own runner. https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-action-runners-update-labels.html --- .github/workflows/verify.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 96ecde47b..c9c9cd6b9 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -24,12 +24,17 @@ jobs: fail-fast: false matrix: include: + # Every CodeBuild job in a run shares the codebuild-* label, and CodeBuild registers each + # runner with all labels its job requested. Without a per-job label, a runner created for + # the Windows job also satisfies the Linux job, which then fails on Windows while the + # Windows job sits queued with no runner. + # https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-action-runners-update-labels.html - name: Linux - runner: '["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}"]' + runner: '["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}", "verify-linux"]' target: linux-x64 binary: ./dist/bin/agentcore-linux-x64 - name: Windows - runner: '["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}", "image:windows-1.0"]' + runner: '["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}", "image:windows-1.0", "verify-windows"]' target: windows-x64 binary: ./dist/bin/agentcore-windows-x64.exe # CodeBuild does not support macOS. From 390f0f7a3a9ccec0e36827d47a215726174c9d69 Mon Sep 17 00:00:00 2001 From: Aidan Daly Date: Fri, 4 Sep 2026 15:57:32 +0000 Subject: [PATCH 2/2] ci(verify): shorten runner label comment --- .github/workflows/verify.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index c9c9cd6b9..4e2730686 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -24,10 +24,7 @@ jobs: fail-fast: false matrix: include: - # Every CodeBuild job in a run shares the codebuild-* label, and CodeBuild registers each - # runner with all labels its job requested. Without a per-job label, a runner created for - # the Windows job also satisfies the Linux job, which then fails on Windows while the - # Windows job sits queued with no runner. + # Per-job labels stop GitHub from routing a job to the runner CodeBuild created for another job. # https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-action-runners-update-labels.html - name: Linux runner: '["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}", "verify-linux"]'