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>
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.
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>
Reviewers on #3371 (paratustra, Maraco91) pointed out that with Git
installed the old text still said "Install Git", and that a failed
'git submodule update' in a real clone (offline, proxy) was reported as
a ZIP download. Each case now gets its own message, with tests.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A "Download ZIP" from GitHub leaves out the submodule, and the error
said "git clone --recursive <this repository's URL>" with a literal
placeholder, which left non-developers stuck (#3276).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A changed decoder removed the old models or textures folder and only then built rpf9dump. With a build
that fails (rpf9-explorer not initialised, no dotnet) the folder was left with only decoder.sha256. The
exporter is now built first, so a failed build keeps the old export and its record.
Review of #2790: the discount counted every regular file under <work>/assets,
so unrelated files or a step that stopped before its marker could let a short
drive through, and an NTFS junction (is_dir(follow_symlinks=False) is true for
one) was walked and counted.
assets_bytes_on_disk() now counts only the output of steps assets() skips on a
rerun: an archive's models/textures folder with its manifest.json, a texture
pool whose manifest ttpf_manifest() accepts, the audio banks once
audio_manifest.json exists, and audio/ogg or audio/xma once their .done marker
is there. Symbolic links and junctions are skipped, including <work>/assets
itself.
On a real stopped export the credit drops from 319.0 to 294.6 GiB; the
difference is the audio bank step that stopped before its manifest.