From 1a2f719106709f168e8f508d2b60acdc94572ef2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 22:29:06 +0000 Subject: [PATCH 1/2] Split long-running JS tests in cjs workflow Agent-Logs-Url: https://github.com/github/gh-aw/sessions/986a7d20-890c-451f-be5c-05524c00850f Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/cjs.yml | 44 +++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cjs.yml b/.github/workflows/cjs.yml index c5e1b3bd362..001375a4f86 100644 --- a/.github/workflows/cjs.yml +++ b/.github/workflows/cjs.yml @@ -14,13 +14,49 @@ on: workflow_dispatch: jobs: - js: + js-typecheck: runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 10 + permissions: + contents: read + concurrency: + group: ci-${{ github.ref }}-js-typecheck + cancel-in-progress: true + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Set up Node.js + id: setup-node + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 + with: + node-version: "24" + cache: npm + cache-dependency-path: actions/setup/js/package-lock.json + - name: Report Node cache status + run: | + if [ "${{ steps.setup-node.outputs.cache-hit }}" == "true" ]; then + echo "✅ Node cache hit" >> $GITHUB_STEP_SUMMARY + else + echo "⚠️ Node cache miss" >> $GITHUB_STEP_SUMMARY + fi + - name: Install npm dependencies + run: cd actions/setup/js && npm ci + + - name: Run typecheck + run: cd actions/setup/js && npm run typecheck + + js-tests: + name: JS Tests (shard ${{ matrix.shard }}/4) + runs-on: ubuntu-latest + timeout-minutes: 15 permissions: contents: read + strategy: + fail-fast: false + matrix: + shard: [1, 2, 3, 4] concurrency: - group: ci-${{ github.ref }}-js + group: ci-${{ github.ref }}-js-tests-${{ matrix.shard }} cancel-in-progress: true steps: - name: Checkout code @@ -46,7 +82,7 @@ jobs: mkdir -p ${{ runner.temp }}/gh-aw/prompts cp actions/setup/md/*.md ${{ runner.temp }}/gh-aw/prompts/ - name: Run tests - run: cd actions/setup/js && npm test + run: cd actions/setup/js && npm run test:js -- --no-file-parallelism --shard=${{ matrix.shard }}/4 lint-js: runs-on: ubuntu-latest From 7d9d6049d2f9ddffccdd3e9001a1047655ead4e0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 22:36:18 +0000 Subject: [PATCH 2/2] Refine cjs test sharding workflow behavior Agent-Logs-Url: https://github.com/github/gh-aw/sessions/986a7d20-890c-451f-be5c-05524c00850f Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/cjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cjs.yml b/.github/workflows/cjs.yml index 001375a4f86..1b19e8e92ff 100644 --- a/.github/workflows/cjs.yml +++ b/.github/workflows/cjs.yml @@ -52,7 +52,6 @@ jobs: permissions: contents: read strategy: - fail-fast: false matrix: shard: [1, 2, 3, 4] concurrency: @@ -82,6 +81,7 @@ jobs: mkdir -p ${{ runner.temp }}/gh-aw/prompts cp actions/setup/md/*.md ${{ runner.temp }}/gh-aw/prompts/ - name: Run tests + # Keep no-file-parallelism so Vitest sharding has deterministic test scheduling per shard. run: cd actions/setup/js && npm run test:js -- --no-file-parallelism --shard=${{ matrix.shard }}/4 lint-js: