From 968602e4746d2917b108f0b0c463d5fb970357e2 Mon Sep 17 00:00:00 2001 From: OreoFR <29048345+OreoFR@users.noreply.github.com> Date: Tue, 1 Dec 2026 19:38:39 +0100 Subject: [PATCH 1/2] ci: the standard-library test steps run 8 files at a time instead of 4 (CI-STANDALONE-J8) On main's last green run the `check` job took ~12.5 min, 10.5 of them in "Tests (standard library only, no game data)": 655 files, one Python process each, 4 at a time on a 4-core runner. The Linux step of `linux-python-and-viewer` took ~5 min the same way. Eight at a time is tried to shorten both without asking for more runners; this pull request's own CI gives the timings to compare. Agreed to by a second human maintainer (Aslan). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c04a3f5466..e07af15508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,14 +108,14 @@ jobs: - name: Tests (standard library only, no game data) shell: bash run: | - # Keep the pytest selection predicate, but run the selected files four at a time. + # Keep the pytest selection predicate, but run the selected files eight at a time (one short Python process each). # The runner reports every failure instead of stopping at the first one. while IFS= read -r t; do if grep -Eq "$PYTEST_FILE_MARKERS" "$t" || ! grep -q '__main__' "$t"; then continue fi printf '%s\n' "$t" - done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 4 + done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 8 - name: Build rpf9dump run: dotnet build tools/rpf9dump/rpf9dump.csproj -c Release - name: Test TTPF export retry @@ -200,7 +200,7 @@ jobs: continue fi printf '%s\n' "$t" - done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 4 + done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 8 semantic-tests: needs: change-scope From be4e237e0016bcbfe57204041d05c347965d965d Mon Sep 17 00:00:00 2001 From: OreoFR <29048345+OreoFR@users.noreply.github.com> Date: Tue, 1 Dec 2026 19:58:04 +0100 Subject: [PATCH 2/2] tests: the CI registration test reads the standard-library step at -j 8 (CI-STANDALONE-J8) `test_step_script_reads_the_check_loop` pins the runner line of the step; it follows the workflow's new value. Co-Authored-By: Claude Opus 5.5 --- tests/test_ci_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ci_registration.py b/tests/test_ci_registration.py index 5eed7dabc2..d640a5a74d 100644 --- a/tests/test_ci_registration.py +++ b/tests/test_ci_registration.py @@ -813,7 +813,7 @@ def test_loop_runs_past_a_failure_and_names_every_failed_file(self): def test_step_script_reads_the_check_loop(self): script = step_script(ROOT, STDLIB_STEP) - self.assertIn('python -I scripts/run_standalone_tests.py -j 4', script) + self.assertIn('python -I scripts/run_standalone_tests.py -j 8', script) self.assertIn("-name 'test_*.py'", script)