Repository navigation
native_pso_hashes: exit 0 on --help (test_tool_startup red on main since #497) - #776
Merged
ubiquitarianism merged 1 commit intoNov 24, 2026
Conversation
tools/native_pso_hashes.py (ProjectLeonida#497) imports shader_carve, so test_tool_startup runs it with --help; it took that as a wrong argument count and exited 2, which fails the test on main. -h/--help now print the docstring to stdout and return 0, like mesh_compute_vs.py.
KernelSmoker
left a comment
Contributor
There was a problem hiding this comment.
Independent Linux verification of PR head 116de82f6ddaa226cf942da17749345c5e5dc87d on current base 47c6511747c93aa3fb908d7782ca96173d0eead3: tests/test_native_pso_hashes.py passed 9/9 and tests/test_tool_startup.py passed 2/2, including the previously failing sibling-startup case. Direct python3 -I tools/native_pso_hashes.py --help exited successfully and displayed the expected usage; git diff --check passed. Synthetic fixtures only, no game data or GPU. At the latest hosted-check refresh, all reported checks were still queued. AI-assisted independent verification.
4 tasks done
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.
Claimed in the coordination issue as: #14 (comment)
What and why
#497 (
1740e093c) addedtools/native_pso_hashes.py, which imports its siblingshader_carve.tests/test_tool_startup.pyderives its list from such imports and runs each tool with--help. This one took--helpas a wrong argument count, printed the usage and exited 2, sotest_each_sibling_importing_tool_startsfails onmain647affe2a(tool='native_pso_hashes').main()now treats-h/--helpliketools/mesh_compute_vs.pydoes: it prints the docstring to stdout and returns 0. A wrong argument count still returns 2. A unit test intests/test_native_pso_hashes.pycovers both flags.Tested
Apple M4, macOS 26.5.1, Python 3.14.8 and 3.12.10, CPU only, no game files.
tests/test_tool_startup.py: fails onmain647affe2a. With this change, OK on both versions.tests/test_native_pso_hashes.py(with the new test): OK on both versions. Negative control: without the change to the tool, the new test fails and so doestest_tool_startup.py.python -m compileall,git diff --checkandscripts/check_no_game_data.pyon the changed files: clean.GPUs tested: n/a (no GPU tests involved)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule changes)