From 97a39bb24e2a5b085fe5aea86845ab647717253f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 7 Jun 2026 04:32:28 +0000 Subject: [PATCH] Skip installing llvm-tools-preview for tests-nocoverage in CI llvm-tools (llvm-profdata/llvm-cov) is only used by noxfile.py's process_rust_coverage, which the tests-nocoverage session never calls. Installing the component costs ~10s on the Windows jobs, and the Windows 3.9 tests-nocoverage job is the longest job in the whole CI run, so this is time saved directly on the critical path. https://claude.ai/code/session_014StKTjk7GBcVdiWKimEsQb --- .github/actions/windows-tests/action.yml | 3 +++ .github/workflows/ci.yml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/windows-tests/action.yml b/.github/actions/windows-tests/action.yml index 0eeb6f9003a7..d856c7f5de29 100644 --- a/.github/actions/windows-tests/action.yml +++ b/.github/actions/windows-tests/action.yml @@ -29,8 +29,11 @@ runs: architecture: ${{ inputs.arch }} cache: pip cache-dependency-path: ci-constraints-requirements.txt + # llvm-tools is only used to process Rust coverage data, which the + # tests-nocoverage session doesn't collect. - run: rustup component add llvm-tools-preview shell: bash + if: ${{ inputs.noxsession != 'tests-nocoverage' }} - name: Cache rust and pip uses: ./.github/actions/cache with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c6132cdb039..5a7df5da3914 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,8 +79,10 @@ jobs: components: rustfmt,clippy if: matrix.PYTHON.RUST + # llvm-tools is only used to process Rust coverage data, which the + # tests-nocoverage session doesn't collect. - run: rustup component add llvm-tools-preview - if: matrix.PYTHON.NOXSESSION != 'flake' && matrix.PYTHON.NOXSESSION != 'docs' + if: matrix.PYTHON.NOXSESSION != 'flake' && matrix.PYTHON.NOXSESSION != 'docs' && matrix.PYTHON.NOXSESSION != 'tests-nocoverage' - name: Clone test vectors timeout-minutes: 2 uses: ./.github/actions/fetch-vectors