ci: split the Windows check job into 3 stdlib shards and a dotnet job (CI-SHORTEN-CHECK-SHARDS) #3351

Manually merged
github merged 2 commits from github-bot/gh-3351 into gh-pr/3351/base 2026-12-03 17:05:18 +00:00 AGit
Owner

@⁠MoonEyes on GitHub · 2026-12-03 15:22 UTC · original
ProjectLeonida:ci/shorten-ci-time → main · +90 −8 · 4 files · 2 commits · merged 2026-12-03 16:55 UTC

Claimed in the coordination issue as: CI-SHORTEN-CHECK-SHARDS (#3312)

What and why

The Windows check job is the CI critical path: 513 to 841 s in recent ci.yml runs, of which the stdlib test loop takes 548 to 719 s and the rpf9dump/texture steps about 100 s.

  • scripts/run_standalone_tests.py: new --shard K/N (one entry in N of the sorted list), with a test that 3 shards cover the list exactly once and that invalid values are refused.
  • .github/workflows/ci.yml: check is split into check-stdlib (3-shard matrix, fail-fast: false) and check-dotnet (compile, help, rpf9dump, texture, diagnostics). check stays as the job name the ruleset requires; it is now a short ubuntu gate that fails unless both are success.

No test is removed. Expected gain: check from about 510-840 s to about 290-330 s; the critical path becomes linux-python-and-viewer / semantic-tests (370-470 s).

Tested

  • python -I tests/test_run_standalone_tests.py (7), tests/test_ci_registration.py (18), test_docs_*.py (57), python -I scripts/check_no_game_data.py: all pass; YAML loads.
  • Not verified here: the gate in a real run, the docs-only case and merge_group. The ruleset may bind required checks to a specific integration: to confirm on this PR's first run.
  • Risks: round-robin sharding can unbalance a shard; each shard adds a Windows runner start (about 40 s) and 3 Windows runners instead of 1; the /3 is hard-coded beside shard: [0, 1, 2].
  • A separate read-only reviewer agent audited the diff: no blocking finding.

GPUs tested: n/a

AI-assisted: yes (Claude Code, reviewed by a separate read-only reviewer agent)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request (splitting semantic-tests the same way is left out).
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of docs/design.md: n/a

Generated by Claude Code

**@⁠MoonEyes** on GitHub · 2026-12-03 15:22 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3351) `ProjectLeonida:ci/shorten-ci-time` → `main` · +90 −8 · 4 files · 2 commits · merged 2026-12-03 16:55 UTC Claimed in the coordination issue as: CI-SHORTEN-CHECK-SHARDS (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/3312) ### What and why The Windows `check` job is the CI critical path: 513 to 841 s in recent `ci.yml` runs, of which the stdlib test loop takes 548 to 719 s and the rpf9dump/texture steps about 100 s. - `scripts/run_standalone_tests.py`: new `--shard K/N` (one entry in N of the sorted list), with a test that 3 shards cover the list exactly once and that invalid values are refused. - `.github/workflows/ci.yml`: `check` is split into `check-stdlib` (3-shard matrix, `fail-fast: false`) and `check-dotnet` (compile, help, rpf9dump, texture, diagnostics). `check` stays as the job name the ruleset requires; it is now a short ubuntu gate that fails unless both are `success`. No test is removed. Expected gain: `check` from about 510-840 s to about 290-330 s; the critical path becomes `linux-python-and-viewer` / `semantic-tests` (370-470 s). ### Tested - `python -I tests/test_run_standalone_tests.py` (7), `tests/test_ci_registration.py` (18), `test_docs_*.py` (57), `python -I scripts/check_no_game_data.py`: all pass; YAML loads. - Not verified here: the gate in a real run, the docs-only case and merge_group. The ruleset may bind required checks to a specific integration: to confirm on this PR's first run. - Risks: round-robin sharding can unbalance a shard; each shard adds a Windows runner start (about 40 s) and 3 Windows runners instead of 1; the `/3` is hard-coded beside `shard: [0, 1, 2]`. - A separate read-only reviewer agent audited the diff: no blocking finding. GPUs tested: n/a AI-assisted: yes (Claude Code, reviewed by a separate read-only reviewer agent) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request (splitting `semantic-tests` the same way is left out). - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md`: n/a --- _Generated by [Claude Code](https://claude.ai/code)_
The required check job took 513 to 841 s on 4 cores, 548 to 719 s of it in the standard-library loop, the longest job of CI. The loop is now sharded (run_standalone_tests.py --shard K/N, round-robin over the sorted list) across three parallel jobs; the rpf9dump and texture steps run in their own job; check stays the required name as a gate over both. No test is dropped.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_01DDMsHwsknvo96XTWag2WiL
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 15:27:26 +00:00
check-stdlib exports STDLIB_SHARD, which leaked into the test's own 4-file
fixture and cut its list, so shard 2/3 failed. The test checks the whole loop.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DDMsHwsknvo96XTWag2WiL
Author
Owner

@⁠icdmkg2 on GitHub · 2026-12-03 15:56 UTC · original

Verified natively on Windows 11 (Python 3.12, no game files): \python -I scripts/red_green.py 3351 --no-cargo --mutate\ against \origin/main\ (\d227aa73e, PR head \74a516f87) — *\ erdict: red then green* (1 red→green: \StandaloneRunnerTest.test_shards_cover_the_list_exactly_once, 24 pass on both across \ ests/test_ci_registration.py\ and \ ests/test_run_standalone_tests.py; mutations: 3/3 functional hunks caught at \scripts/run_standalone_tests.py:24, 71, 75, only the docstring hunk at line 7 not caught). AI-assisted: Gemini 4 Neon (Antigravity).

**@⁠icdmkg2** on GitHub · 2026-12-03 15:56 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3351#issuecomment-7383991051) Verified natively on Windows 11 (Python 3.12, no game files): \python -I scripts/red_green.py 3351 --no-cargo --mutate\ against \origin/main\ (\d227aa73e\, PR head \74a516f87\) — **\ erdict: red then green\** (1 red→green: \StandaloneRunnerTest.test_shards_cover_the_list_exactly_once\, 24 pass on both across \ ests/test_ci_registration.py\ and \ ests/test_run_standalone_tests.py\; mutations: 3/3 functional hunks caught at \scripts/run_standalone_tests.py:24, 71, 75\, only the docstring hunk at line 7 not caught). AI-assisted: Gemini 4 Neon (Antigravity).
github-bot changed target branch from main to gh-pr/3351/base 2026-12-03 17:04:54 +00:00
github manually merged commit 74a516f87b into gh-pr/3351/base 2026-12-03 17:05:18 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3351
No description provided.