From b128b688b692d6ac70a71743cf873104023effb9 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 05:59:23 +0000 Subject: [PATCH] Static checks: run the checks as background steps The static checks job ran its 15 checks one after another, 20.6 s of its 42 s. Their CPU time is about 33 s over the runner's four cores, so each is now a background step, slowest first (at most 10 run at once, the rest queue), and a wait-all at the end fails if any of them failed. Each keeps its own step and log. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015ajQWwSSE6PJMaZ9NzWaSV --- .github/workflows/ci.yml | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bc4fed95d6..cd2337bc53d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -311,24 +311,43 @@ jobs: # A pull request's merge commit, and its first parent, the base: # check_lean_single_importer.py checks the modules it adds. fetch-depth: 2 + # Every check at once (at most 10 run, the rest queue), slowest first: + # one after another they took twice as long. A failure fails wait-all. + # The unit tests run each module in its own process, in parallel, with + # output only on failure. + - run: python3 ci/run_unit_tests.py + background: true + - run: python3 ci/check_lean_speed.py + background: true + - run: python3 ci/check_variants.py + background: true - run: python3 ci/check_lean_imports.py + background: true + - run: python3 ci/check_mcdt.py + background: true - run: python3 ci/check_lean_modules.py - - run: python3 ci/check_lean_single_importer.py - - run: python3 ci/check_case_collisions.py + background: true - run: python3 ci/check_registrations.py - - run: python3 ci/check_lean_speed.py + background: true - run: python3 ci/algorithms_table.py --check + background: true + - run: python3 ci/check_vectors.py + background: true + - run: python3 ci/check_lean_single_importer.py + background: true + - run: python3 ci/check_case_collisions.py + background: true - run: python3 ci/check_arch_gates.py - - run: python3 ci/check_variants.py + background: true - run: python3 ci/check_skills.py + background: true + - run: python3 ci/cpu_tests.py lint ci/rust_matrix.toml + background: true # `rust-cpu-features` sets it per line of a CPU's `runs`, inline. - name: Only rust-cpu-features sets VG_CPU_FEATURES run: "! grep -nE '^ *VG_CPU_FEATURES:' .github/workflows/ci.yml" - - run: python3 ci/cpu_tests.py lint ci/rust_matrix.toml - # Each module in its own process, in parallel; output only on failure. - - run: python3 ci/run_unit_tests.py - - run: python3 ci/check_mcdt.py - - run: python3 ci/check_vectors.py + background: true + - wait-all: # The Rust jobs' matrices (ci/rust_matrix.toml), narrowed to the # architectures whose tests run: a pull request starts only the jobs of