From 832da5f5a026bc75c3d2ad67f93cea2676dd0bdc Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Fri, 10 Jul 2026 19:31:21 -0700 Subject: [PATCH] ci: drop dead-weight full-history checkout in validate-code; probe runner CPU count validate-code's Codecov upload steps moved to validate-tests when coverage was split out (#4815) -- it no longer needs fetch-depth: 0 (measured: shallow checkout is ~3s faster than full-history on this repo). Also adds a temporary nproc diagnostic to validate-tests to check whether --maxWorkers=4 (pinned to the assumed standard-runner vCPU count) actually matches the real runner spec, or whether there's free parallelism available without adding more shards. --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d4bb3a0fc..f247036ec6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,8 +171,8 @@ jobs: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: - # Full history so Codecov can resolve the merge base for patch coverage. - fetch-depth: 0 + # Shallow (default depth): this job no longer uploads to Codecov -- that moved to validate-tests + # (#ci-shard-coverage) -- so it has no reason to fetch full history anymore. ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - name: Neutralize untrusted npm config run: rm -f .npmrc @@ -435,6 +435,8 @@ jobs: run: npm run build --workspace @jsonbored/gittensory-engine - name: Prepare test reports dir run: mkdir -p reports/junit + - name: Report runner CPU count (temporary diagnostic) + run: nproc - name: Test with coverage (shard ${{ matrix.shard }}/6) id: coverage env: