From 6d4bac7cec95ce3341c78183acd3b7bd741dae08 Mon Sep 17 00:00:00 2001 From: Harrison Weinstock Date: Mon, 8 Jun 2026 16:24:05 +0000 Subject: [PATCH 1/2] feat: shard integ tests across runners --- .github/workflows/build-and-test.yml | 30 +++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e2ce32033..9627ab028 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -43,7 +43,6 @@ jobs: uses: astral-sh/setup-uv@v7 - run: npm ci - run: npm run build --if-present - - run: npm run test:integ - name: Pack tarball if: matrix.node-version == '20.x' run: npm pack @@ -63,6 +62,35 @@ jobs: name: tarball path: '*.tgz' + integ-test: + runs-on: ubuntu-latest + timeout-minutes: 15 + + strategy: + fail-fast: false + matrix: + node-version: + ${{ github.event_name == 'pull_request' && fromJSON('["20.x"]') || fromJSON('["20.x", "22.x", "24.x"]') }} + shard: [1/2, 2/2] + + steps: + - uses: actions/checkout@v6 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Configure git for tests + run: | + git config --global user.email "bedrock-agentcore-npm+ci@amazon.com" + git config --global user.name "CI" + - name: Install uv + uses: astral-sh/setup-uv@v7 + - run: npm ci + - run: npm run build --if-present + - name: Run integration tests (shard ${{ matrix.shard }}) + run: npx vitest run --project integ --shard=${{ matrix.shard }} + unit-test: runs-on: ubuntu-latest timeout-minutes: 15 From 2d3d9e30f0faa3f8d75e19525aebe17be63ecc86 Mon Sep 17 00:00:00 2001 From: Local E2E Date: Mon, 8 Jun 2026 21:01:40 +0000 Subject: [PATCH 2/2] fix(ci): align git config email onto ci@amazon.com --- .github/workflows/build-and-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9627ab028..341ab0f4c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -37,7 +37,7 @@ jobs: cache: 'npm' - name: Configure git for tests run: | - git config --global user.email "bedrock-agentcore-npm+ci@amazon.com" + git config --global user.email "ci@amazon.com" git config --global user.name "CI" - name: Install uv uses: astral-sh/setup-uv@v7 @@ -71,7 +71,7 @@ jobs: matrix: node-version: ${{ github.event_name == 'pull_request' && fromJSON('["20.x"]') || fromJSON('["20.x", "22.x", "24.x"]') }} - shard: [1/2, 2/2] + shard: [1/4, 2/4, 3/4, 4/4] steps: - uses: actions/checkout@v6 @@ -82,7 +82,7 @@ jobs: cache: 'npm' - name: Configure git for tests run: | - git config --global user.email "bedrock-agentcore-npm+ci@amazon.com" + git config --global user.email "ci@amazon.com" git config --global user.name "CI" - name: Install uv uses: astral-sh/setup-uv@v7 @@ -111,7 +111,7 @@ jobs: cache: 'npm' - name: Configure git for tests run: | - git config --global user.email "bedrock-agentcore-npm+ci@amazon.com" + git config --global user.email "ci@amazon.com" git config --global user.name "CI" - name: Install uv uses: astral-sh/setup-uv@v7