Commit Graph

211 Commits

Author SHA1 Message Date
e9d1382d6c PR template: Depends on also covers pull requests this one conflicts with
Review (@kacper-serewis): the coordination issue asks for the line for every
pull request this one builds on or conflicts with; the prompt said only
"builds on", and told authors to delete the line otherwise.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:46:06 +00:00
7f1f93c944 PR template test: check the template only; drop "with which tool"
The test pinned four phrasings of AGENTS.md, so a harmless rewording there
would fail it (and, once docs-only pull requests run every tests/test_docs_*.py,
turn an AGENTS.md-only pull request red). It now checks only that the
template has a `Depends on:` and an `AI-assisted:` prompt line.

The AI-assisted prompt no longer asks for the tool: no document asks for that.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:10:10 +00:00
129d346360 PR template: prompt for Depends on: and for AI assistance, as AGENTS.md already asks
AGENTS.md asks every pull request for a `Depends on: #N` line per pull
request it builds on, and to say that it was AI-assisted. The template
prompted for the claim, the change and the tests, but for neither of these.
This adds the two prompts and no new rule.

tests/test_docs_pr_template.py checks that each of the four things
AGENTS.md asks a pull request to say has a prompt in the template.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 20:46:49 +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
a1c4e479e7 Merge pull request #3091 from Etoile-Bleu 2026-11-22 15:14:45 -05:00
0ef8a7f9a0 Merge pull request #3076 from Eng-Meshari 2026-11-22 15:14:36 -05:00
cb9c81ef74 Merge pull request #2972 from Davide 2026-11-22 15:13:41 -05:00
aef623982c Merge pull request #2869 from Shrey Ratna 2026-11-22 15:12:43 -05:00
811a7831ad runtime.yml: a test keeps the path list in step with what the jobs read
tests/test_runtime_paths.py recomputes the tools/ files the Runtime jobs read (named by runtime/, the
workflow's steps and the scripts it runs, then sibling imports, modules and files named in strings, and
tools/ subdirectories, to a fixed point) and fails when one is not listed, when the push and pull_request
lists differ, or when a listed tool no longer exists. Without it, a new import in the translator would
leave the new module outside the list, and a later change to that module alone would skip the GPU tests.

.gitattributes joins the list: it decides the line endings of every file the build checks out.

docs/testing.md no longer says the llvmpipe suite runs on every pull request, and says that a commit on
main has a runtime-windows artifact only if it touched what the workflow builds or reads.
2026-11-22 20:23:43 +01:00
6380d5574c Add check for game data in workflow 2026-11-22 22:16:08 +03: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
df208993b8 runtime.yml: the keep-list closes over imports and data files, not just the tools named by path
@Desamodeth's dependency check found three single-file changes that must keep triggering this workflow and that a
.py-only scan misses: `tools/gfx10_formats.json` (a table `rdna2spirv.py` loads, so `--help` fails without it),
`tools/lane_masks.py` (same) and `tools/mc_command.py` (imported by `scripts/run_gpu_tests.py`). My first list had
only the tools the workflow's files name *by path*, which is neither the full import closure nor the data files.

Recomputed with ast over the tools in that set, following sibling imports and the file names those tools load from
their own directory: 27 files plus the `hw_oracle` directory, instead of 11 files. Over-including costs a run on a
rare change; under-including silently loses the build for a tool the workflow reads, which is the failure this item
exists to prevent.

Checked: both path lists are 32 entries and identical, the jobs are unchanged, and the recomputation reports nothing
needed that is absent.
2026-11-22 20:01:28 +01:00
666a3f6996 runtime.yml: run on what the workflow reads, not on every tools/ change
`paths-ignore` cannot express "everything under `tools/` except the files the runtime reads", so the event now
lists what triggers this workflow instead: `runtime/**`, `third_party/**`, `scripts/**`, the workflow itself, and
the eleven `tools/*.py` that CMake, ctest and the job scripts call - `gen_d3d12_stubs.py` at configure time,
`xdxr_bvh.py` and `rdna2spirv.py` from CMake and ctest, `bary_fallback_gs.py`, `mesh_compute_vs.py` and
`vk_subgroup_info.py` from `scripts/run_gpu_tests.py`, and `shader_meta.py`, `spirv_stubs.py`, `cf_diff.py`,
`f32_fuzz.py` and `fssm_unpack.py` through those and their imports.

A tool-only pull request no longer starts a full Windows and Wine build it cannot break. The runner queue is
about 2,000 runs deep against 8 in progress, and each such run takes a slot that a change needing it could use.
`tools/first_light.py` and `tools/fspx_unpack.py` appear only in comments and in a test that skips without
`LEONIDA_FIRST_LIGHT_DIR`, so they stay out.

Checked: the file parses, both lists have 15 entries and are identical, and the jobs are unchanged. A comment in
the workflow says a new tool the runtime reads has to be added there. This pull request touches `runtime.yml`
itself, which is in the list, so it is also a live check that the workflow still triggers.

BUILD-856.
2026-11-22 19:59:55 +01:00
f1e8035314 CI: run the GPU suite on llvmpipe under the barycentric fallback
llvmpipe has no VK_KHR_fragment_shader_barycentric, so the native llvmpipe run skips ps_bary,
ps_uniform_branch and ps_scc_mask32, and nothing in CI drew a pixel shader through the --bary-fallback
geometry shader (tools/bary_fallback_gs.py). A third llvmpipe run sets LEONIDA_BARY_FALLBACK=1 and fails
unless every shader that got a fallback geometry shader passes, not just runs: a run where the fallback
builds no geometry shader, or one of them skips, is an error.

docs/testing.md: list the third run, and correct the f16 tests' line: with the f16 interpolation
fallback (on by itself without the extension) ps_interp_f16_high and ms_f16_pack run under the bary
fallback too, and natively on llvmpipe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:32:22 +00:00
4ac33f7e88 Merge pull request #2648 from skankhunt42 2026-11-22 13:16:47 -05:00
90f399e953 Runtime: warn loudly (or fail) when CMake finds no Vulkan headers
Without Vulkan headers everything under if(TARGET Vulkan::Headers) is left
out: the D3D12 COM objects, the Vulkan D3D12 device in gta6rt
(LEONIDA_D3D12=vulkan) and most of ctest. The only output was a STATUS line
naming four test tools, so a build whose VULKAN_SDK never reached CMake ran
45 of 125 tests and reported "100% tests passed".

- runtime/cmake/vulkan_headers_missing.cmake: a WARNING that names what is
  left out and that CMakeCache.txt keeps the failed lookup.
- LEONIDA_REQUIRE_VULKAN=ON turns it into a configure error; both CI
  configures pass it, and scripts/build_runtime.ps1 does when VULKAN_SDK is set.
- tests/test_cmake_vulkan_missing.py runs the module with cmake -P and checks
  that CMakeLists.txt and CI use it; docs/testing.md gets a troubleshooting row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:41:47 +01:00
1ace3ac642 Merge remote-tracking branch 'origin/main' into d3d12-queues-v2
# Conflicts:
#	runtime/src/vulkan_backend.h
2026-11-22 18:21:38 +01:00
8ceb79d07a Runtime: D3D12 copy and compute queues on dedicated Vulkan queue families (D3D-21), on top of D3D-97's leases 2026-11-22 16:04:46 +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
69cb9d304a Merge pull request #1738 from CI fix 2026-11-22 09:14:58 -05:00
81fa469eb9 CI: run the documentation tests on docs-only pull requests 2026-11-22 13:39:07 +00:00
b0c587ea27 Wine tests: ship generated test shaders and map the build checkout's drive
d3d12_compute, d3d12_draw, d3d12_r9g9b9e5_uav, d3d12_descriptor and d3d12_indirect_rt open their GLSL test
shaders through absolute paths compiled into them (LEONIDA_TEST_*_SPV, D:/a/Leonida/Leonida/runtime/build/
generated/*.spv). The runtime-windows artifact didn't carry generated/*.spv and Wine has no such D: drive, so
they failed under Wine (copy_file threw, exit 3, or the shader read failed).

The artifact now includes runtime/build/generated/*.spv, and run_wine_tests.py points the drive of
--windows-root at --root in the Wine prefix for the run (a dosdevices link to a scratch folder), leaving a
drive the prefix already has untouched and removing both links afterwards.
2026-11-22 17:15:41 +04:00
0f403730a4 Include occlusion shader fixtures in the Wine CI artifact 2026-11-22 18:47:50 +08:00
dabd806bb1 Merge pull request #1022 from AREA52 Agent 2026-11-22 05:07:49 -05:00
4388d97aaf Test async callbacks from a mapped guest executable 2026-11-22 01:41:43 -08:00
9360ec9ec0 Runtime: predicate byte-granular CopyBufferRegion on the GPU
Build on the full 64-bit predicate snapshots from #856. Replay predicated buffer copies through a storage8 compute helper, retain descriptor batches through timeline completion, and reject missing capabilities or active statistics queries before submitting work.

Validate byte offsets, high predicate words, bounds, skipped destinations and pending descriptor lifetimes with CPU checks, 180 native WARP comparisons and 64 gated/reused GPU submissions. The existing OPTIONS19 host-capability mismatch also reproduces on base 4a36bb1; no tests are disabled.
2026-11-22 05:28:28 -04:00
22e6aec2a4 Merge pull request #856 from 73N1X 2026-11-22 04:07:44 -05:00
29345889be Runtime: capture full 64-bit predication values on the GPU 2026-11-22 04:34:35 -04: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
2d93239c82 Merge pull request #912 from nicolas 2026-11-22 01:37:55 -05:00
6164876b29 Merge pull request #1029 from Vonsek 2026-11-22 01:08:28 -05:00
97234e2c48 Merge pull request #1013 from Kevin Morales 2026-11-22 01:08:21 -05:00
7e8f537f5f ci: check the six current descriptor test shaders on Windows
The multisample descriptor test names its SPIR-V outputs after their compile definitions. Checking each expected file catches a missing variant and lets the Windows job proceed to CTest and the Wine handoff after a successful build.
2026-11-22 06:58:14 +01:00
f53fc3fa48 Merge upstream large-module scheduling with cache feedback 2026-11-21 22:56:39 -07:00
8b51490ea7 process: park game threads that end the run until the host exits
Under Wine before 11.2, gta6rt --run sometimes exited 0 although the game
ended with 1 (run_tiny_game_exit_code in CI's Wine 9.0 job: 13 of 64 runs).
end_run signalled the host and called ExitThread; the host's ExitProcess
could then send SIGQUIT to that thread while it was exiting, Wine counted
the thread out twice and the process ended with _exit(0). Upstream fixed
it by blocking SIGQUIT during thread exit (4a9bc42a, wine-11.2).

end_run now parks every caller while a run is in progress (the first one
after recording the code and signalling), so no game thread is mid-exit
when the host calls ExitProcess. This also fixes two threads calling exit
at once: the second one called ExitProcess itself, sometimes before the
first had stored its code, and ended the process with 0 on any OS.

CI requires run_tiny_game_exit_code again.
2026-11-21 22:40:56 -07:00
86ec0fa633 Merge pull request #977 from bobcatchris 2026-11-22 00:33:22 -05:00
c3e8478142 Merge pull request #894 from matheuskshn 2026-11-22 00:33:02 -05:00
b7ec22e798 Merge pull request #890 from nicolas 2026-11-22 00:33:00 -05:00
dd4a2f549a Guards: ignore and detect the model, audio and world files the build writes
The export stages write .obj models, .glb chunks, .ogg Opus and .wav PCM
straight from the package, but .gitignore and the No Game Data check only
named the archive, shader and texture types. A run pointed inside a checkout
could leave those untracked and get them staged; the check would also miss a
force-added one, along with .r9modeldata and .msixvc that .gitignore already
covers.

The bvh and navmesh examples also wrote their index reports into the working
directory, which puts game-derived JSON and CSV in the tree; point them at
<temp> like the movies note does.

Verified with git check-ignore on every new pattern and by matching sample
filenames against the workflow regex. Docs and ignore rules only.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-21 23:27:15 -06:00
53d2c6126b Report application-cache feedback for compiled Vulkan pipelines 2026-11-21 21:22:43 -07:00
0e191881e2 Merge pull request #846 from Ayoze Torres 2026-11-21 23:15:32 -05:00
8f72e5cea5 CI: compile D3D12 test shaders on Windows 2026-11-22 01:13:52 -03:00
ed784a2300 Report incomplete texture pool exports and retry missing DDS files 2026-11-21 21:10:28 -07:00
9e9138829a CI: run the Wine job on WineHQ stable as well as Ubuntu's Wine
A matrix entry installs winehq-stable from WineHQ's repository next to
Ubuntu's Wine 9.0, closer to what Proton users run. The job summary
names the Wine version (run_wine_tests.py --label).
2026-11-22 03:55:52 +00:00
1caaa5a8b8 CI: create the Wine prefix inside one X session, with a time limit
wineboot and wineserver -w now run in the same xvfb-run session. With
wineserver -w after xvfb-run had closed the display, the WineHQ 11.0
job once waited in that step until the job's 20-minute timeout.
2026-11-22 03:55:17 +00:00
55d02a5861 Merge origin/main into d24-on-d32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:48:46 +01:00
0db0d72dc7 Merge origin/main into d24-on-d32; follow main's depth-plane T# rule (D3D-75)
Main's depth-plane SRV T# code follows the texture's backing format (X24_8_32_FLOAT
where D24 is stored as D32), so the override from f9addf5 is dropped and the
D24 comparison test expects the backing format's code. The family refusal and
bind_image are main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:45:53 +01:00
bbbed2e097 CI: use deny-list path filtering in Runtime and generalize test discovery 2026-11-22 00:32:31 -03:00
0251789a8b Merge remote-tracking branch 'origin/main' into d24-on-d32
# Conflicts:
#	runtime/src/vulkan_backend.h
2026-11-22 04:10:13 +01:00