Repository navigation
docs: README says deleted disassembly listings are disassembled again - #4159
Pierre-Kookis wants to merge 2 commits into
Conversation
The low-disk note in README.md said that deleting the .s listings in work/shaders/dxbc/disasm together with work/shaders/spirv/index.json "can leave the shaders stage looking finished with zero shaders". Since BUILD-667 (bf6c371), disassembly_status() requires a listing for every shader that disasm.done records, so shaders() disassembles the missing ones again and translates again (or fails with "Shader disassembly did not restore all expected listings"). Say what happens instead, and pin that exact case in tests/test_shader_stage_resume.py. AI-assisted (Claude Code).
|
Code read of |
Review follow-up: a disasm.done that records only the llvm-mc signature takes the `listings == active` branch of disassembly_status(), so a missing listing reruns the whole disassembly rather than resuming. Say so in the README and pin it with a test (it fails if that check is replaced by True). AI-assisted (Claude Code).
|
@iurysf thanks, both notes were right. |
|
Tested d656359 merged with main 98fa503 on Linux (WSL2), Python 3.12.16: pass
|
Claim: #4084 (comment) (new BUILD item, no ID assigned yet)
What changed and why
The low-disk note in
README.mdsaid that deleting the.slistings inwork/shaders/dxbc/disasm"along with the translatedwork/shaders/spirv/index.json, can leave the shaders stage looking finished with zero shaders". That stopped being true with BUILD-667 (bf6c371):disassembly_status()(make_game.py~859-885) requires a listing for every shader thatdisasm.donerecords, soshaders()disassembles the missing ones again and translates again, or stops with "Shader disassembly did not restore all expected listings" (~965).README.md: the sentence now says what the next run does (checks the listings againstdisasm.done, disassembles the missing ones, translates again). The symlink sentence is unchanged.tests/test_shader_stage_resume.py:test_deleting_every_listing_and_the_translation_disassembles_againruns the mocked stage, deletes every.sandspirv/index.json, and checks that the folder is not reusable, that the next run isshader_disasm.py,translate, that the listing is back, and that a third run does nothing.The new test passes on
maintoo: it pins current behaviour so the README can't drift again; the fix itself is the doc line.docs/i18n/pt-BR/quickstart.mdline 58 has the same old sentence; I left it alone because #3166 and #3769 are syncing that file.Tests
Windows 11, Python 3.13.14, no GPU, no game files.
python -I tests/test_shader_stage_resume.py: 45 tests, OK.python -I tests/test_docs_table_rows.py,test_docs_links.py,test_docs_design_rows.py: OK.python -m compileall -q make_game.py tools tests: OK.python -I tests/test_*.py, the files with a__main__block and no pytest) onmainaa2988cc: 297 of 301 pass. The 4 that fail are in files this PR doesn't touch and are local to this machine:test_hw_oracleandtest_progress_dashboardpass from a checkout whose path has no space (mine has one), andtest_build_llvm_mc_batch(the unicode-path.cmdcase, French-locale Windows) andtest_check_no_game_data(PermissionErroron a temp file) fail with or without the space.AI-assisted (Claude Code).