So a merge queue can be turned on for main. `ci.yml` (change-scope, check,
linux-python-and-viewer, semantic-tests) and `no-game-data.yml` (no-game-data)
gain a `merge_group:` trigger. In the queue `change-scope` is skipped (it reads
a pull request's diff), which counts as passed for a required check, and the
jobs after it run in full. Their concurrency groups fall back to run_id there,
so queued runs never cancel each other.
Agreed to by a second human maintainer (Aslan).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 <noreply@anthropic.com>
Verified the Windows check with Python 3.12: 509 standalone files passed with two workers. The seven changed or runner-related files passed on updated main. The .NET 8 build and diagnostics and the native BCPack checks passed with the prerequisite fixes, including #1771. CPU-only, AI-assisted testing.
Verified the docs-only step on Windows with Git Bash. All 69 tests passed, and the added check caught the synthetic README URL regression. CPU-only, AI-assisted testing.
Address CI-MAIN-SIGNAL review cost concerns with one staggered daily CI and Runtime snapshot, using their existing schedule-specific run groups. Keep push/PR cancellation and coalescing unchanged; do not expand every merge into full runner work. Synthetic schedule/expression controls included. AI-assisted.
The semantic-tests job runs tests/semantic on windows-latest for pushes to main and for workflow_dispatch, with
timeout-minutes: 10. On GitHub's hosted runner that leg does not fit: in 23 runs of the CI workflow on a fork on
24 November 2026 (16 hourly runs of main and 7 branch runs), 14 were cancelled at the limit ("exceeded the maximum
execution time of 10m0s"), each time with tests/semantic/test_mutations.py the only file still running. A cancelled
job prints no summary. The 9 runs that finished spent 374-577 s in the test step.
test_mutations is the long pole there. It copies tools/ and runs test_ps_semantics.py in a new process 14 times in a
row, and it took 250-381 s in the runs that finished, against 25-42 s on the Linux leg. The runner starts it 124-196 s
in, because it starts the largest files first and this one is small. In the cancelled runs the other files were
slower too (done by 413-484 s instead of 247-365 s); scaled the same way, their test step comes to about 620-780 s,
10.3 to 13 minutes.
The Windows leg gets 20 minutes, about 1.5 times that. The Linux leg, the only one pull requests run, takes 3 to 5
minutes and keeps 10, so pull request runs are unchanged. The limit is a matrix expression: GitHub allows the matrix
context in jobs.<job_id>.timeout-minutes (the runner context is not available there).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check job runs the standard-library test loop on windows-latest with timeout-minutes: 15. On GitHub's hosted
runner the job does not fit: in 8 of 8 runs of the CI workflow on a fork on 24 November 2026 (five hourly runs of
main from 18:02 to 22:05 UTC and three branch runs) it was cancelled between 15 min 12 s and 15 min 16 s, each
time after starting about 379 of its files. A cancelled job prints no list of failed files, so the job spent
15 Windows minutes per run and reported nothing, and whatever fails after the 379th file was never seen.
With the limit lifted on a scratch branch the same job ran to its end in 21 min 20 s: the loop took 20 min 15 s
for 486 files and then listed four failing files, two of which come after the point where the job used to be
cut off.
30 minutes leaves about 40% over that measurement. The loop grows with every test file, so the number will need
another look later; running the files a few at a time would be the lasting answer and is not attempted here.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ci.yml (5 steps), runtime.yml (3) and xma2-decoder.yml (1) left the
GITHUB_TOKEN in .git/config for the rest of the job. No step in those
jobs runs an authenticated git command, so the token was never needed
there. The other 8 checkout steps already set the flag.
CI-SECURITY-CREDENTIALS
The generated page was already out of step with this round's rows (test_design_contracts), and the PR also
changes AGENTS.md, the PR template, ci.yml and adds an agent skill. docs/design.md keeps its current rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The account's 20 concurrent GitHub-hosted jobs have been saturated since
11-22 10:00 UTC and the queue wait grows by about an hour per hour. Three
jobs take about 40% of pull request runner time and never failed alone in
sampled pull request runs: wine (ubuntu) and wine (winehq-stable), 0 of
188, and semantic-tests (windows-latest), 0 of 914.
Pull requests now skip them; pushes to main and workflow_dispatch still
run them. Pull requests keep the native Windows build, its CTest run and
the runtime-windows artifact testers download.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check job runs the standard-library loop only on windows-latest, which has neither
SPIRV-Tools nor numpy, and translator-tests (the one job that installs them) picks only the
pytest files. So the spirv-val checks of test_split_big_switch (the 37 220-case switch),
test_image_load_typed, test_mesh_compute_vs and test_bary_fallback_gs, the numpy path of
test_skinned_glb and the POSIX-only tests skipped in CI and ran nowhere; desc_cache,
f64_transcendentals, spirv_asm and spirv_stubs validate only when spirv-val is present.
Add stdlib-tests-linux at the end of ci.yml: ubuntu-24.04, spirv-tools from apt as the
semantic-tests job installs it, tests/requirements.txt for numpy and Pillow, then the same
loop as check. test_ci_registration.py now fails when a stdlib file that calls spirv-as or
spirv-val has no job that installs spirv-tools and runs that loop; it fails with the job removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wine job wrote https://dl.winehq.org/wine-builds/winehq.key straight
into /etc/apt/keyrings and the translator-tests job piped
https://apt.llvm.org/llvm-snapshot.gpg.key into gpg --dearmor, so apt
trusted whatever key those URLs served that day. Every other download in
CI is pinned (actions by commit, glslang by SHA-256, the Vulkan headers
by commit).
scripts/check_apt_key.py (standard library, gpg --show-keys) requires
the downloaded file to hold exactly one primary key with the given
fingerprint; both steps now download to a temporary file, check it
against the fingerprint each project publishes (WineHQ D43F6401...672F,
apt.llvm.org 6084F3CF...7421) and only then install it.
tests/test_check_apt_key.py: the parser and the check with a stand-in
gpg (the key, another key, two primary keys, subkeys, an unreadable
file, no gpg), the command line, and a scan of .github/workflows that
fails for a key download not checked right after (both of today's
downloads fail it on the old workflows).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runtime.yml gets a macos job on macos-26: Homebrew's MoltenVK, Vulkan headers and
loader, llvm-mc, SPIRV-Tools and glslang; the runtime built through sccache; ctest
and run_gpu_tests.py on MoltenVK. ci.yml gets macos-python: the standard-library
loop, the semantic suite alongside it, and the pytest files with Homebrew's llvm-mc.
The hosted runner's Metal device is Apple Paravirtual device (family Mac2), which
MoltenVK runs on; KosmicKrisp finds no device there. macos-15 can't build the
runtime (Xcode 16's libc++ has no floating-point std::from_chars).
The two tests that fail on MoltenVK today, also on an M3 Max, are listed with the
pull requests that fix them (xdxr_build_check: #2423, ps_ssharp: #1845);
scripts/ci_expected_failures.py fails the step on any other failure and notes an
expected one that passes.
The docs-only step of change-scope ran tests/test_docs_links.py and
tests/test_i18n_index.py by name. tests/test_docs_design_rows.py,
test_docs_list_items.py and test_docs_repo_paths.py read only Markdown and
the tracked file list as well, but ran only in `check`, which is skipped when
only documents changed: a docs-only pull request that duplicates a design.md
contract row or names a path that does not exist was green and failed on
main after the merge.
The step now runs tests/test_docs_*.py and the i18n test in a loop, and
tests/test_ci_registration.py fails when a document test is not run there
or the step names a file that does not exist.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The check job ran each tests/test_*.py with `python -I "$t" || exit 1`, so
the first failing file stopped the loop and every file sorted after it went
unrun. While main was red on test_cf_ref.py, nothing after test_cf* ran on
Windows. The loop now collects the failures, prints one ::error annotation
per failed file and exits 1 at the end.
tests/test_ci_registration.py takes that step's script out of ci.yml and
runs it under bash (Git for Windows' on Windows) on a synthetic tree with two
failing files, a passing one, a pytest file and a semantic file: all three
loop files must run and both failures must be named. It skips without bash,
except on a GitHub runner.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The standard-library test loop invokes every tests/test_*.py before Build rpf9dump, so this file's only test skipped for lack of RPF9DUMP_DLL and no later step ran it. Add the step next to the other rpf9dump-dependent tests.
- ci.yml: cancel only superseded pull request runs; a push to main was
cancelled by the next merge and left that commit without a CI result
(#326 review).
- world_census.py: --jobs above 61 is rejected with an argparse error on
Windows instead of ProcessPoolExecutor's ValueError traceback, with a
test next to the below-1 test (#308 review).
- docs/textures.md: drop the duplicated "The BCPack counts above..."
paragraph (#292 review).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>