Repository navigation
docs: two usage lines that contradict their scripts (testing.md build.py arguments, meta_to_xml.ps1 output names) - #4212
Open
Pierre-Kookis wants to merge 1 commit into
Open
Pierre-Kookis wants to merge 1 commit into
Pierre-Kookis wants to merge 1 commit into
Conversation
- docs/testing.md said build.py and check.py both take the runtime folder as their second argument. Only check.py does; build.py reads everything after the output folder as test shader names and stops with "Unknown test shaders: <folder>". A test in test_shader_build_fallbacks.py pins that. - scripts/meta_to_xml.ps1's header said each blob becomes <offset>.xml; it writes <offset>.pso.xml or <offset>.rbf.xml (test_meta_to_xml_paths.py already checks the .pso.xml name). AI-assisted (Claude Code).
|
Independent Windows check of
Synthetic fixtures only. AI-assisted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claim: #4084 (comment) (new BUILD item, no ID assigned yet)
What changed and why
Two usage lines said something their scripts don't do:
docs/testing.md~line 96 saidbuild.pyandcheck.py"take the same folder as their second argument". Onlycheck.pydoes (runtime/test/shaders/check.py~1503).build.pyreads everything after the output folder as test shader names (~188), sobuild.py <out> <runtime-windows>stops withUnknown test shaders: <runtime-windows>(~192). The line now says so; the example under it was already right.scripts/meta_to_xml.ps1line 4 said each blob becomes<offset>.xml. Line 42 writes<offset>.pso.xmlor<offset>.rbf.xml, andtests/test_meta_to_xml_paths.pyalready checks the.pso.xmlname.Test:
test_a_runtime_folder_as_second_argument_is_refused_as_a_shader_nameintests/test_shader_build_fallbacks.pyrunsbuild.py(translator stubbed, as the other tests in that file do) with a folder as its second argument and checks that it exits withUnknown test shaders: <folder>without asking the translator for anything. It passes onmaintoo: it pins the behaviour the corrected line describes.Tests
Windows 11, Python 3.13.14, no GPU, no game files.
python -I tests/test_shader_build_fallbacks.py: 5 tests, OK.python -I tests/test_meta_to_xml_paths.py: OK (Windows PowerShell 5.1).python -I tests/test_docs_links.py,test_docs_table_rows.py,test_docs_design_rows.py,test_text_write_line_endings.py: OK.python -m compileall -q make_game.py tools testsandgit diff --check: clean.AI-assisted (Claude Code; the two mismatches were first spotted by a Codex read of the docs, then checked by hand).