Repository navigation
Conversation
|
Independent discovery comparison for the two rename approaches at For comparison, the current #2869 head I also combined this PR with #2905 ( MEASURED with synthetic test inputs. AI-assisted (Codex). |
|
Verified on Windows 11, Python 3.13.12. pytest is not installed on this machine, so this covers the Discovery only (
On the PR, discovery records 31 load errors. 30 are The renamed file still runs on its own: Not checked: GPUs tested: n/a. AI-assisted: yes (Claude Code). |
…t two test_address_guard modules
5d77820 to
eb4bedc
Compare
|
Rebased onto current So the collision is still live on main and the rename still resolves both commands. The branch is now 0 commits behind; force-pushed as CI still shows no workflow runs for this head — same fork approval gate as before, nothing on our side can start them. |
|
One scope note, since the deprecation sweep is closing legacy-Python PRs: this one is not a change to the legacy shader compiler's behaviour. It renames a test file so that repo-wide test discovery works at all — If you would rather the address-guard oracle go away with the legacy compiler, that is a different change (deleting the file and its semantic sibling), and I am happy to prepare it — but until then, main cannot run either discovery command. Flagging so it is not closed as legacy by reflex; if you still consider it out of scope, close it and I will not reopen. |
What and why
python -m pytest tests/andpython -m unittest discover -s testsboth fail on currentmainbecause two test modules share a basename:Discovery imports one as
test_address_guardand then refuses the other (import file mismatchfor pytest;module incorrectly imported from …for unittest). Onmain85ec1d33b:The two files are not duplicates — the top-level one is the stdlib oracle for
tools/address_guard.py(7 tests), the semantic one is the end-to-endrdna2spirv.py --address-guardtest (12 tests) — so the fix is a rename, not a merge.This renames only the top-level file to
tests/test_address_guard_oracle.py(R100, zero content change). That name matches its role and itsAddressGuardOracleTestclass, and it needs no reference updates: the three references in the tree (docs/design.md:384,docs/d3d12_vulkan.md:2095,runtime/src/address_guard.h:22) all point at the semantic path.Evidence
On this branch (same tree otherwise), Windows 11 / Python 3.12:
python -m pytest tests/semantic/is unchanged, and the rename works whether or not #2869'stests/semantic/__init__.pylands (that fixes pytest collection only;unittest discoverstill fails on the collision).Tested
The four commands above, plus
tests/test_ci_registration.py,test_test_inventory.py,test_docs_links.py,test_docs_repo_paths.py(47 tests) andpython -I scripts/check_no_game_data.pyon the renamed file. The full semantic suite is 554 files / 6,743 tests, 0 failed.Notes
git merge-treeagainst currentmainis clean.AI-assisted: yes