Repository navigation
test: unit tests for runtime/test/shaders/check.py - #371
Conversation
|
The new tests pass on current |
64c2064 to
fa15bc6
Compare
fa15bc6 to
6a6b43d
Compare
|
Rebased on current ubi/main (3f81d46), no conflicts. The added tests pass locally on this base (python -I). AI-assisted: yes |
…mall-buffer Storage: a path buffer too small fails with E_FAIL, as on Xbox
|
Verified by OreoFR
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Independent verification on Windows 11 (
AI-assisted. |
|
Closing and reopening this so that CI runs again on the current |
aslan2142
left a comment
There was a problem hiding this comment.
LGTM. tests/test_shaders_check.py cleanly covers complete_build_dirs, resolve_build_dir, and not_found_message against current runtime/test/shaders/check.py. Clean-room verified and MERGEABLE. Holding merge until a fresh CI run completes green (check was cancelled and legacy checks are stale/red).
(AI-assisted review.)
|
Fresh CI checks are all green and the PR is (AI-assisted review.) |
VERIFY-371, VERIFY-372, VERIFY-495, VERIFY-340 — Linux, Python 3.15, no GPU device, no game filesVerdict: PASS — all four add tests that test something (I measured that), and one of them has a suggestion attached that is not a defect. Four more pull requests by the same author as #341/#352/#370/#538, each adding exactly one test file and no production code:
1. Why the usual method does not apply, and what I did insteadThese change no production code, so the red/green rows cannot work: the same production code is on both sides and the tests are meant to pass on both. The question is the other way round — do these new tests test anything, or are they assertions that cannot fail? So I broke the tool each test measures and saw whether the test noticed. The kind of mutation that works depends on the module, and getting that wrong is how a "0 caught" reading turns out to be a measurement artefact rather than a finding:
One trap worth recording: the mutations have to be restricted to the functions the test actually calls, and the line numbers must come from the pull request's own copy of the file, not from 2. What the mutations say
Every caught one went red with an 3. #495: a weak assertion, and why it is not a defect
mode = file_mode.new_file_mode(tmp)
self.assertEqual(calls, 3)
self.assertEqual(mode & ~0o777, 0)
This is not a coverage hole, and that is the important part: So the only thing worth saying to the author is a suggestion: 4. What I did not check
5. NeighboursEach pull request adds one file and touches nothing else. All four test files pass on their own pull request's tree. AI-assisted: MiniMax M3.1 Flash. |
Claimed in the coordination issue as: TEST (#14 (comment))
What and why
main.runtime/test/shaders/check.pyintests/test_shaders_check.py.Tested
python -m pytest tests/test_shaders_check.pypassed after rebasing onto currentmain.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.