Commit Graph

65 Commits

Author SHA1 Message Date
c4058242c9 ci: the workflows behind main's required checks also run on merge_group (CI-MERGE-QUEUE)
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>
2026-12-01 20:57:13 +01:00
968602e474 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 <noreply@anthropic.com>
2026-12-01 19:38:39 +01:00
129c840089 ci: fix runtime/windows timeout, remove redundant CI legs, and harden caches 2026-11-29 19:17:38 -05:00
4f63764c14 Merge pull request #1404 from milk4sale/ci/check-time-limit
ci: give the Windows check job 30 minutes; it needs 21 and was cancelled at 15 on every run (CI-CHECK-TIME-LIMIT)
2026-11-29 21:41:49 +01:00
ea171c2a17 Merge pull request #1462 from milk4sale/ci/semantic-windows-time-limit
ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT)
2026-11-29 21:41:43 +01:00
43a9d562d3 Merge pull request #2193 from EdenBendheim/ubiq/ci-check-parallel-stdlib
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.
2026-11-27 14:56:46 -03:00
d35001eef3 Merge pull request #374 from ItsMrDubey/ci-path-filter-gaps
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.
2026-11-27 06:02:31 -03:00
5943a7c6af ci: run standalone Windows tests two at a time (CI-CHECK-PARALLEL-STDLIB) 2026-11-25 23:46:12 -05:00
cb699500ac Merge pull request #771 from djrolfes/djrolfes-ci-main-signal
ci: add nightly main snapshots without expanding push queues (CI-MAIN-SIGNAL)
2026-11-25 22:48:35 +01:00
325ce06ebc ci: add nightly main snapshots while preserving push coalescing
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.
2026-11-25 20:47:16 +01:00
464ef2a359 ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT)
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>
2026-11-24 18:40:33 -06:00
b45daffc01 ci: give the Windows check job 30 minutes; it needs 21 and was cancelled at 15 on every run (CI-CHECK-TIME-LIMIT)
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>
2026-11-24 17:30:19 -06:00
1c850c02bc ci: persist-credentials: false on the 9 checkout steps that lacked it
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
2026-11-24 10:29:49 +01:00
13d0c9d10b ci: a docs-only pull request runs every test that reads the document it changes 2026-11-24 09:24:44 +05:30
c2cc4bfe7f scripts/run_semantic_tests.py: run tests/semantic one process per file, in parallel (253 s -> 26 s) (#4961)
Squash-merged after review of PR #4961 - scripts/run_semantic_tests.py: run tests/semantic one process per file, in parallel (253 s -> 26 s)
2026-11-23 08:10:57 -06:00
561b65a832 Merge remote-tracking branch 'origin/main' into triage-r44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	.github/workflows/runtime.yml
#	tests/test_first_look_shim_report.py
2026-11-23 06:28:03 -05:00
6bf3b7d281 Revert #3920 (held for the maintainer): it makes docs/design.md a file generated from docs/contracts/*.json
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>
2026-11-23 04:16:51 -05:00
1c4e6e46f1 Merge pull request #4246 from Flyander
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:44 -05:00
4af6840ddb Merge pull request #4198 from Exopus
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:14 -05:00
7da128aca3 Merge pull request #4085 from AAyberkU
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:11:07 -05:00
152acd7a79 Merge pull request #3920 from Leonida Proto
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:09:34 -05:00
133812796e Merge pull request #3599 from kotorvr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:59 -05:00
5987f76295 Merge pull request #2909 from Jolymmiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:23 -05:00
0db7fed551 Merge pull request #4657 from ddm-j
CI: run the Wine jobs and the Windows semantic-tests leg on main only
2026-11-22 23:04:16 -05:00
bba1bfe910 CI: run the Wine jobs and the Windows semantic-tests leg on main only
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>
2026-11-22 20:38:15 -07:00
e9a858adde CI: coalesce pending main-branch runs 2026-11-23 01:17:54 +01:00
68c2466fdc CI: run the standard-library tests on Linux with SPIRV-Tools and numpy
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>
2026-11-23 02:21:28 +03:00
f03dcbdeb5 ci: check the WineHQ and apt.llvm.org signing keys' fingerprints
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>
2026-11-23 00:17:34 +01:00
19c4a7b538 ci: add behavioral sabotage gate for changed semantic tests 2026-11-23 02:24:10 +04:00
f02e952272 CI: a macOS (Apple Silicon) job for the runtime on MoltenVK and the Python suites
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.
2026-11-23 02:21:52 +04:00
1e5622b03d Merge pull request #3497 from ezbyDev 2026-11-22 17:02:21 -05:00
39b75b3102 ci: a docs-only pull request runs every documentation test, not two of five
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>
2026-11-22 22:01:10 +00:00
db79536325 ci: the standard-library test loop runs every file, then fails
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>
2026-11-22 21:31:42 +01:00
8d56b13aa9 CI: install SPIRV-Tools in the semantic-tests job and fail, not skip, when it is missing (TEST-604) 2026-11-22 20:13:40 +01:00
015983af5a ci: run tests/test_rpf9dump_exit_codes.py with the built rpf9dump
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.
2026-11-22 14:55:57 +00:00
81fa469eb9 CI: run the documentation tests on docs-only pull requests 2026-11-22 13:39:07 +00:00
6778c2f47e Vendor the upstream BCPack entropy decoder for offline builds 2026-11-22 16:19:40 +08:00
23fe0a0c3a Complete BCPack DDS entries during the normal assets export 2026-11-22 16:04:49 +08:00
ed784a2300 Report incomplete texture pool exports and retry missing DDS files 2026-11-21 21:10:28 -07:00
bbbed2e097 CI: use deny-list path filtering in Runtime and generalize test discovery 2026-11-22 00:32:31 -03:00
78e6c901e0 CI: preserve queued main and manual runs 2026-11-22 02:15:20 +01:00
9251d2f3d7 Merge pull request #542 from kotorvr 2026-11-21 19:53:11 -05:00
24bfb65867 Follow up three review points on merged PRs (#326, #308, #292)
- 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>
2026-11-22 00:37:20 +00:00
f72cbd90b0 Run texture tests with pinned dependencies after the CI split 2026-11-21 21:28:04 -03:00
f58e7c4a04 Run the NumPy and Pillow texture tests in Ubuntu CI 2026-11-21 20:53:45 -03:00
e3c13c6df1 CI: run translator-tests against LLVM 21 to match documented requirement 2026-11-21 20:42:52 -03:00
e2ad499d45 CI: upgrade viewer-tests to Node 24 LTS and add pip/NuGet caching with global.json 2026-11-21 20:42:13 -03:00
6b5786b348 CI: keep no-game-data check always on for docs-only PRs 2026-11-21 20:41:57 -03:00
bf3e0a2069 CI: deduplicate runtime and pytest runs, add timeouts and rpf9dump diagnostics 2026-11-21 20:37:18 -03:00
fe413a2f1c Cancel superseded runs and skip heavy CI on docs-only PRs 2026-11-21 23:59:08 +01:00