Commit Graph

9534 Commits

Author SHA1 Message Date
c3bedd5526 tests: list ttpf_mips in SHARED
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
2026-12-01 19:44:41 -05:00
d50e0baede tests: list shader_profile in SHARED
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
2026-12-01 19:44:40 -05:00
d55404f5f5 tests: list tex_headers in SHARED
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
2026-12-01 19:44:40 -05:00
1cff737c47 tests: list vertex_types in SHARED
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
2026-12-01 19:44:40 -05:00
83e69c1d81 tests: list bvh_index in SHARED
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
2026-12-01 19:44:40 -05:00
4fe371f903 Merge pull request #2968 from aznohonza/tools/summary-end-names
tools/game_run_summary.py: name device lost and title breakpoint in the END words (GAME-RUN-SUMMARY-END-NAMES)
2026-12-02 00:34:35 +00:00
d741a9f8f6 Merge pull request #2992 from MoonEyes/carry/632
exe_checklist: colon-less markers and BOM/shape checks (EXE-CHECKLIST-PARSE, carry of #632)
2026-12-02 00:17:53 +00:00
5d06e4793e Merge pull request #2967 from aznohonza/tools/cgroup-memory-peak
game_run_summary: record the run cgroup's memory peak
2026-12-02 00:07:43 +00:00
7adb42f7a8 Merge pull request #2991 from MoonEyes/carry/495
tests: cover probe collision retries and fallback in file_mode (carry of #495)
2026-12-01 23:50:23 +00:00
c18437b32c exe_checklist: a bold marker run without a colon keeps its words; reject class_id 0
Independent verdict on the carry PR: '**VERIFY the stride on a real exe**' became an
empty entry and '**Unverified fixed quota** on hardware' lost its words. With no colon
to say where a label ends, the bold words may be the note, so they stay. The
class_id string check also gets a payload (0) that kills its mutation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 00:50:01 +01:00
9360f46726 tests: drop version-dependent llvm-mc exact-byte check from partial_swizzle 2026-12-01 17:15:08 -06:00
ef4100f545 tests: verify cs_w64x_partial_swizzle encoding lengths and branch displacement 2026-12-01 17:07:07 -06:00
facd4fb122 tests: the retry test needs a real collision and a fresh probe name
The mocked open succeeded on its third call whatever the path, so generating the
probe name once before the loop still passed. The test now pre-creates the first
probe, patches secrets.token_hex with two names and keeps the real os.open.
Reported by andrew-ai on the carry PR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 00:05:41 +01:00
97868b9ce8 exe_checklist: keep the note when a bold marker run closes after it
**VERIFY: check the stride** before release lost its whole note (the bold branch
of without_marker() dropped everything up to the closing **). A bold run that is
only the label still goes whole; a bold run that holds the note keeps it.
Reported by andrew-ai on the carry PR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 00:05:00 +01:00
4058dc8970 tests: include gfx1013 encodings in cs_w64x_partial_swizzle disasm fixture 2026-12-01 16:54:10 -06:00
f483189624 game_run_summary: the caller-cgroup peak is a lifetime peak
Without a systemd scope the saved value is the caller cgroup's lifetime
peak, not the run's; the summary line says so now.

AI-assisted.
2026-12-01 23:52:29 +01:00
8642cbe542 game_run_summary: pair each skipped int3 with its own breakpoint
A trace can skip an assert and later stop on a real breakpoint. The global
`int3_skipped` veto hid the later one; each skip now consumes one preceding
`0x80000003` exception at the same recorded address, so only a breakpoint
the trace actually skipped stops naming the end. The test covers a later
breakpoint at another address and a repeat at the same one.

AI-assisted.
2026-12-01 23:41:19 +01:00
56e112a060 Merge main into #632: keep main's doc_notes list handling, the PR's other fixes apply
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:37:05 +01:00
002bd88f86 Merge pull request #2876 from kirigayakazima/fix/rpf9dump-util-safe-names
rpf9dump: harden Util.Safe for cross-platform and Windows filenames
2026-12-01 22:35:42 +00:00
7d05a02dea tests: make the published_mode fallback test check what it claims
The old assertion (S_IMODE(mode) == mode) passes for any 9-bit integer, even 0.
The test now mocks new_file_mode, checks the target's own directory is probed and
the sentinel is returned, and a second test checks an existing file keeps its mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:35:10 +01:00
4671c9aee1 Merge #495 head into main 2026-12-01 23:34:40 +01:00
06e0c16433 Merge pull request #2973 from MoonEyes/carry/278
rdna2spirv: decode gfx1013 VOP3 0x16b opcode (BUILD-1529, carry of #278)
2026-12-01 22:34:11 +00:00
afe0b798f4 Launcher tests and docs for -PrecompileAll
- tests: -PrecompileAll is among the switches checked against play-d3d12.ps1,
  and it is passed only with the precompile on.
- README.md, docs/launcher.md, d3d12/README.md: the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:30:37 -05:00
ddee96da7e game_run_summary: a skipped int3 is not the title breakpoint
`LEONIDA_SKIP_ASSERTS` records each stepped-over int3 as an exception and
`int3_skipped`, and `LEONIDA_UNIMPLEMENTED=stop` also exits 3, so the old
condition reported such a run as a title breakpoint. The trace's
`int3_skipped` event now vetoes the word, and the docstring says a device
loss and a skipped int3 both win over it.

AI-assisted.
2026-12-01 23:26:39 +01:00
1abef08d09 Merge pull request #2902 from budanga/fix/boot-ps1-python-alias
boot.ps1: take a Python that starts and is 3.12+, not the Microsoft Store alias (BOOT-PS1-PYTHON-ALIAS)
2026-12-01 22:15:01 +00:00
2b32249727 game_run_summary: a 0X-prefixed exception code is the same code
The startup trace's exception-code filter accepted `0x` but not `0X`, so a
trace spelling the breakpoint `0X80000003` classified the exception as
`(other)` and the end fell back to the generic process exit. `_same_code`
already lowercased, so only the filter was strict. The test now covers all
three spellings; it fails on the old filter and passes with it.

AI-assisted.
2026-12-01 23:14:22 +01:00
c37e311384 Merge main into #278: keep both new decode tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:13:03 +01:00
9fc7de03e3 game-gate: the DLSS preflight follows the switch PowerShell binds (D3D12-F1-DLSS-REBUILD)
The preflight added in 218b0328b read -NoDlss out of -PlayArgs with a pattern over
the text. Two reviews of the pull request showed where that goes wrong:

- `-NoDlss: $true`, a space after the colon, binds true, and the gate refused the
  run and asked for a DLSS rebuild (andrew-ai, PowerShell 7.6.9);
- `-Adapter 'Fixture -NoDlss Adapter'` binds no switch, and the gate let the run
  go on into a build inside the run (merzleckeier, PowerShell 7.4.21).

The gate now asks PowerShell itself: Test-NoDlssBound takes the param block of
scripts\play-d3d12.ps1 and lets it bind the arguments the launch line gives the
script (-Game, -Data, -More, then -PlayArgs); nothing of the play script runs.
The first thing the probe writes is the answer, so text behind a `;` in
-PlayArgs cannot stand in for it. Arguments PowerShell cannot bind (an ambiguous
-No, a switch that does not exist, a value outside a ValidateSet) count as
-NoDlss not said, as the start itself fails on them, and the refusal then says
that they did not bind and with which error. The probe is reached only when the
build's note, the SDK and cargo already say the play script would build.

tests/test_game_gate.py takes the function out of the script and puts 19 lines of
-PlayArgs to PowerShell 7 against the real play script's parameters: bare,
shortened, :$true, : $true, :$false, : $false, alone and among other switches,
the quoted adapter name alone, with -NoDlss:$false and with a real -NoDlss, an
argument that does not bind, and a `; $true` behind the arguments (skipped where
there is no pwsh). A second test holds that no pattern is matched against
-PlayArgs any more.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 00:05:03 +02:00
1228aad135 scripts: the help tests cover -h too, and play-linux names LEONIDA_GAME_DIR
Dropping -h from run_wine_session.sh or check_no_game_data.py now fails the
test that covers it, and play-linux.sh's usage lists LEONIDA_GAME_DIR with
the other path variables (it already honours it).

AI-assisted.
2026-12-01 22:45:38 +01:00
2190bf988f tests: verify tracked d3d12/docs/switches.md matches d3d12_switches.py --check 2026-12-01 13:56:28 -06:00
5586f9b003 d3d12: the DLSS build is asked for once NVIDIA's SDK is here, whatever the switches (D3D12-F1-DLSS-REBUILD)
play-nvidia.ps1 made the layer again with DLSS only when the start's own
switches wanted DLSS ($wantDlss), and it decides that before it reads the
F1 menu's saved settings. A DLSS choice the menu saved behind a replayed
-Resolution (the menu's SAVE AND RESTART) therefore asked for no build: with
a build noted as made without DLSS and NVIDIA's SDK installed afterwards,
every such start fell back from DLSS. get-nvidia-sdks.ps1 says the next
start builds the layer with DLSS; that held only for some switches.

The check now follows the SDK alone: a diag build noted as made without DLSS
is made again when nvsdk_ngx_d.lib is here, unless -NoDlss. It stays the one
check it was; no second one behind the menu.

Two things follow from asking more starts for that build:
- without cargo such a start no longer stops with "No build and no cargo":
  it says DLSS waits for cargo and runs the build that is here (a start with
  no build at all still stops, as before);
- a dry run, which builds nothing, says that a start builds first and prints
  the settings of the start after it; it printed the settings from before
  the build without a word.

Test: tests/test_play_nvidia_menu_choice.py, ten cases of launcher dry runs
against a synthetic folder with a stand-in cargo on the PATH (no game files,
no GPU), and one more run for a note whose exe is gone. On main six of the
ten fail (the five that expect the build and the one without cargo); with
this change all pass.

Not in this change: scripts/game-gate.ps1 refuses to run without a build so
that none is made inside a run. A build noted as made without DLSS, with the
SDK there, is now made again by starts that did not ask for it before (the
gate's default Series X start among them), inside the run. A guard there is
a follow-up: the gate needs PowerShell 7, which the PC this was written on
does not have.

Found by ubiquitarianism (ProjectLeonida/mandy#2570, 1 Dec 2026).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 21:38:29 +02:00
ab374c7d5e Merge pull request #2924 from OreoFR/ci/standalone-j8
ci: the standard-library test steps run 8 files at a time instead of 4 (CI-STANDALONE-J8)
2026-12-01 20:30:08 +01:00
4afb713165 tests: rename the address guard unit test so discovery does not import two test_address_guard modules 2026-12-01 14:12:53 -05:00
be4e237e00 tests: the CI registration test reads the standard-library step at -j 8 (CI-STANDALONE-J8)
`test_step_script_reads_the_check_loop` pins the runner line of the step; it
follows the workflow's new value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:58:04 +01:00
7ab2e6d3f8 Merge remote-tracking branch 'origin/main' into fix/series-s-f1-dlss 2026-12-01 13:47:17 -05:00
0b1f6b5887 d3d12: preserve explicit render scale on F1 restart 2026-12-01 13:47:17 -05:00
298313282a test_boot_ps1_python: test the 3.12 floor and that a hanging candidate leaves no process (BOOT-PS1-PYTHON-ALIAS)
The older-Python stand-in only exited 1, so changing (3, 12) in Test-Python left every test green. A stand-in now
runs Test-Python's own check with sys.version_info set: 3.11.9 is passed over for py -3 and 3.12.0 is taken. The
hanging stand-in sleeps in a Python child with a unique tag on its command line, and the test asserts that no
process holding the tag is left once Resolve-Python returns.

Test-Python's comment now gives the requirement it follows: the repository needs 3.12+ (README.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:46:47 -03:00
ea6caf88d3 Merge pull request #726 from ProjectLeonida/asset-audio-skip-current
assets: allow skipping audio export
2026-12-01 19:35:43 +01:00
ebb9ecb983 d3d12: honor saved DLSS at stock Series S resolution 2026-12-01 13:30:30 -05:00
7fbdf85110 Merge pull request #2913 from ProjectLeonida/ci/exclude-legacy-cpp-runtime-tests
ci: exclude deprecated legacy C++ runtime/ from automatic CI runs
2026-12-01 19:00:46 +01:00
dcda41f769 Merge pull request #952 from barkodr/fix/census-tools-wrong-input
gbuffer_census, navmesh_cell_fit, root_spill_census: a wrong input is one ERROR line, not a traceback
2026-12-01 18:58:03 +01:00
fe0fb68460 ASSET-AUDIO-SKIP: allow skipping audio export
Add an opt-in assets-stage switch to skip audio extraction and conversion, preserve existing audio outputs, and account for the lower disk requirement. AI-assisted implementation; focused tests passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-12-01 12:49:31 -05:00
dfce074a05 ci: exclude deprecated legacy C++ runtime/ from automatic CI runs 2026-12-01 12:43:58 -05:00
51f94c885d gbuffer_census, navmesh_cell_fit, root_spill_census: a wrong input is one ERROR line, not a traceback 2026-12-01 12:40:33 -05:00
27613ab6b8 Merge pull request #249 from ProjectLeonida/old-pr/9983
test: exercise AWC manifest staged cleanup on all hosts
2026-12-01 18:39:18 +01:00
9f0d351cc8 Merge pull request #2880 from alpfilho/d3d12/menu-last-choice-wins
d3d12: the last choice wins between the command line and the F1 menu (D3D12-MENU-LAST-CHOICE-WINS)
2026-12-01 18:38:35 +01:00
15396d1113 test: exercise AWC manifest staged cleanup on all hosts 2026-12-01 12:25:51 -05:00
d2a564b66a Merge pull request #2865 from azsekazvamdimitar/feat/rtx3090-vram-perf-and-translator
d3d12/vulkan + rdna2spirv: staged VRAM arena, DMA readback batching, parallel shadows, stream-pool fix & wave64 perf (RT-ARENA-DEVICE-LOCAL-STAGED)
2026-12-01 18:17:55 +01:00
74da6c8a4b conftest: install the piecewise finder before the translator is imported
test_support_installs_the_finder_only_where_the_tokenizer_is_slow is the one
test keeping the CI workflow red on 85ec1d33b, and it is red for a reason that
has nothing to do with the translator:

  AssertionError: <class '_frozen_importlib_external.SourceFileLoader'> is not
                  <class 'support.PiecewiseLoader'>

support.py installs ToolsFinder just before PathFinder and then imports
rdna2spirv through it, but tests/conftest.py imports rdna2spirv first, for its
own fixtures. A finder can only take an import it is in sys.meta_path for, so
under pytest the module is loaded by PathFinder and stays that way; run as
`python tests/test_piecewise_parse.py` there is no conftest and the test passes.
Green one way, red the other, for the same code.

So conftest now puts tests/semantic on the path and imports support first.
support.py imports rdna2spirv itself, so the line after it stays as it is and
becomes the import that already happened.

Measured, main 85ec1d33b, this machine (CPython 3.14, where needed() is true):

  python -m pytest tests/test_piecewise_parse.py     1 failed, 25 passed -> 26 passed
  python tests/test_piecewise_parse.py               OK, still
  the five files ci.yml runs for this area + test_cpu_ref
                                                     81 passed, 34 skipped

Written with an AI assistant.
2026-12-01 18:00:04 +01:00
ace83ae110 game_run_summary: say whose peak the line is, and make the v2 path guard bite
KelboLive's review of #2845: without a systemd scope the peak is the caller
cgroup's lifetime peak, so the one-line summary now says so, which keeps a
comparison table from reading it as the run's own.

The `[ -n "$cg_rel" ]` guard was untested: removing it still passed, because the
fake root had no memory.peak to pick up. The v1 test now has one at the root, so an
empty v2 path reads nothing and dropping the guard fails it (checked: mutation
gives 1 failure).

AI-assisted: yes
2026-12-01 17:56:00 +01:00