Squash-merged after diff review of PR #6827 - make_game: a broken bcpack calibration profile is one ERROR line, not a JSON traceback (EGEN-TTPF-CALIB-PROFILE-BADJSON)
macOS mounts drives and mount_smbfs shares under /Volumes, and Fedora and openSUSE put removable media in
/run/media, so a package on an external disk or on another machine's share never showed up in discovery and had
to be passed to --game. Both roots are now searched, the list moves into discovery_roots() so each platform's
answer is testable, and the --game help says that a share path goes there because it can't be listed.
AI-assisted.
Main's suites model two neighbouring cases differently: an FSPX build that translates no programs is a
finished step, and the resume fixtures save an unreadable stand-in index. Keep the `{}` that --merge
publishes when it produced nothing (drop it, and translate again next run) and the pipeline preflight
that refuses an empty or unreadable index; drop the wider "0 programs" and "unreadable saved index"
premises, which broke tests/test_fspx_shaders_stage.py and tests/test_shader_stage_resume.py.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Merges that each passed alone but clash together:
- v_cmp_class_f64: the earlier cmp_class_f64 (685d16ed9) (operand-form checks, test_cmp_class_f64) and the later f64 branch
in cmp_class both handled the opcode; f64 goes to cmp_class_f64 again, f16 stays in cmp_class.
- rdna2spirv CLI tests: spirv-as/spirv-val now run in the output folder with the staging file's bare name, so
the test doubles resolve it against cwd; assemble_spirv decodes the output only when it is bytes. (The doubles
had been writing .spirv-*.tmp files into the repository root.)
- ps_w64 fixtures (TEST-722): an 18th fixture (ps_w64_a_discard) landed; its killed lanes export nothing and
keep the clear value.
- first_light: a run without an OBJ removes mesh.bin, and harness_env reads manifest["files"]; batch_glb's stats
name failures and dropped textures; run_gpu_tests reports a frame never written as a missing readback
(TEST-837).
- make_game TRANSLATION_SOURCES and runtime.yml's paths include spirv_opt.py and report_paths.py (and
wave64_emulate_opt.py), which the translator imports.
Repo rules: stdout guard on six tools; encoding on two opens (gen_gdk_runtime_classes' helper is read_utf8);
newline on one write; anim_skeleton_match's joaat encodes like hashdict.joaat; test_feature_scan's new test is
listed with the others its globals() runner reaches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rdna2spirv.py drops a shader that is refused or whose module fails
spirv-val and still exits 0, so a full run can carve 26,503 shaders and
finish done with an index of 26,473 (measured end to end at aa2988cc,
--wave64-emulate, 6 jobs): a port built from it silently lacks the rest.
The shaders stage now compares the merged index with the carve and fails
naming the gap, the way the disassembly step already refuses an
incomplete listing set. An empty index stays #3328's, a missing one
stays with the merge and translate failures that own it.
A git checkout without third_party/rpf9-explorer/Core computes the same no-pin digest a source zip legitimately
holds, so records written from that digest matched in preflight; ensure_submodule() then fetches Core, the digest
changes, and assets() deletes those folders. submodule_ready() is now the predicate ensure_submodule() itself uses (a
non-empty Core), and assets_bytes_on_disk() credits no model or texture folder, and hashes nothing, while it is
false. A source zip with a non-empty Core is ready and unaffected (it has no git pin either way).
Tests: matching records with Core missing credit nothing and never hash; submodule_ready needs a non-empty Core;
the cache test now uses a cached stand-in that would match the records, so it fails when the credit calls the cached
decoder_digest(). Each test fails with its guard removed.
Tested: python -I tests/test_make_game_*.py (preflight 87 tests) on CPython 3.12.13, Windows. AI-assisted.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
preflight credits the exports before ensure_submodule() fetches third_party/rpf9-explorer, and decoder_digest() is
cached: a digest made from a missing checkout (no git pin yet) would be the one assets() compares afterwards, so
every folder would look stale and be exported again. The digest is now computed by compute_decoder_digest();
decoder_digest() is its cached wrapper that assets() uses, and assets_bytes_on_disk() calls the uncached one, only
when a folder has a decoder.sha256 (so the free-space fast path and a work folder without exports hash nothing). A
digest that cannot be computed (OSError) credits nothing; an unreadable or mismatching record already credits none.
Tests: the cache stays empty after the credit; an unhashable decoder credits nothing and preflight still answers; no
hashing with room to spare or without exports. The mixed 179/180 tests are unchanged.
Tested: python -I tests/test_make_game_*.py (preflight 85 tests) on CPython 3.12.13, Windows. AI-assisted.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Review of #4320: dropping the whole-tree walk removed the credit for a stopped model/texture step that rpf9dump
resumes. assets() keeps a folder only when its decoder.sha256 matches the current decoder (else it deletes the folder
and exports again), and rpf9dump skips every output that already exists; Util.WriteAtomic leaves only complete files
under their final names and deletes a leftover *.partial. assets_bytes_on_disk now credits a model or texture folder,
finished or not, exactly when its fingerprint matches, once, without *.partial files. A folder with another or no
fingerprint is credited nothing, which also stops crediting a finished step that assets() would delete. Pools, audio
and the other steps are unchanged: only finished output counts, the conservative choice.
Mixed resume (96 GiB finished models + 54 GiB unfinished textures): 180 GiB is accepted, 179 refused (234 before).
Tests: the mixed 179/180 case, a mismatching fingerprint on the unfinished and on the finished step, and --wav;
sizes come from a faked os.scandir, nothing large is written.
Tested: python -I tests/test_make_game_*.py on CPython 3.12.13, Windows. AI-assisted.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
#4279 added a whole-tree credit (tree_bytes) next to the finished-step credit from d49b8e78 (assets_bytes_on_disk),
so output of finished steps lowered the estimate twice: 150 GB finished with 60 GB free passed although 180 GB is
needed. The finished-step credit already covers a stopped export and deliberately leaves out steps without a
manifest or marker, which the rerun writes again, and it only walks the folder when space is short. Drop tree_bytes
and its branch; the complete-assets (xma.done), shaders-reuse and --wav paths are unchanged.
Tests: the two #4279 tests that mocked or exercised tree_bytes are replaced by one that fails before this change.
Tested: python -I tests/test_make_game_preflight.py (78 tests) on CPython 3.12.13, Windows. AI-assisted.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The preflight asked for all 300 GB of the assets stage free unless xma.done said the exports were finished, so a
build stopped part-way through the assets (279 GB written, 280 GB free) refused to resume. tree_bytes() sums what
is already under <work>/assets and the preflight subtracts it. Two tests: the subtraction and tree_bytes itself.
Tested: python3 -I tests/test_make_game_preflight.py (67 tests); a real resume on Fedora 43 that had been refused.
AI-assisted.
BUILD-866 gave the model and texture exports a decoder.sha256 record.
The texture-pool loop still took any complete pool manifest.json as
done, although rpf9dump ttpf decodes with the same rpf9-explorer Core
and keeps the DDS files it finds. After a submodule or tools/rpf9dump
change, assets/ttpf/** and assets/ttpf_pack/** kept the old decoder's
output.
Each pool folder now gets the same record, written before its export.
A folder with another record, or without one, is removed and exported
again, as the model and texture folders are.
The runtime stage ran scripts/build_runtime.ps1 through the bare name
"powershell". CreateProcess searches System32 but not
System32\WindowsPowerShell\v1.0, so on a PC whose PATH no longer lists
that folder the stage ended in a FileNotFoundError traceback, after the
shader and asset stages had already run.
windows_powershell() returns the file under %SystemRoot%, and the bare
name where the file is not at its usual place.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
main() turns --f16-interp-fallback and --pc-tail-ubo on when
vk_subgroup_info.py says the runtime's GPU needs them. When the probe could
not tell (any error, or its 60 s timeout) the flags were simply absent, so
shaders() saw a changed flag set, logged "the fallback flags are now none
...: translating again" and translated the whole corpus without them; the
next run that could ask translated it a third time.
When the probe can't tell, a flag the existing translation was made with
now stays on, and the log says so. A probe that answers still decides, a
folder translated without the flag gets none from a failed probe, and the
flags the user passes are compared as before. wave64 `auto` already keeps
its mode for the same reason.
The main() wiring tests now build into an empty --out instead of the
user's default folder, since main() reads the recorded flags.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>