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

Merged
MoonEyes merged 2 commits from upstream-pr/3351 into main 2026-12-03 16:55:13 +00:00
MoonEyes commented 2026-12-03 15:22:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T15:22:01Z.


Claimed in the coordination issue as: CI-SHORTEN-CHECK-SHARDS (https://github.com/ProjectLeonida/mandy/issues/3312#issuecomment-7383019295)

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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5629427787 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3351). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:22:01Z. --- Claimed in the coordination issue as: CI-SHORTEN-CHECK-SHARDS (https://github.com/ProjectLeonida/mandy/issues/3312#issuecomment-7383019295) ### 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)_
icdmkg2 commented 2026-12-03 15:56:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by icdmkg2 on 2026-12-03T15:56:33Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383991051 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3351#issuecomment-7383991051). Originally posted by [icdmkg2](https://github.com/icdmkg2) on 2026-12-03T15:56:33Z. --- 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).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!3351
No description provided.