test: unit tests for tools/hw_oracle/runner.py #342
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!342
Loading…
Reference in a new issue
No description provided.
Delete branch "work/test-hw-oracle-runner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: TEST-HW-ORACLE-RUNNER (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149)
What and why
main.tools/hw_oracle/runner.pyintests/test_hw_oracle_runner.py.Tested
python -m pytest tests/test_hw_oracle_runner.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.One test fails off Windows:
test_is_msvc_recognizes_cl_variantsassertsrunner._is_msvc(r"C:\VS\cl.exe"), but on Linux and macOSos.path.basenamedoesn't split on\, so it returns the whole string and the test fails (reproduced on Linux, Python 3.13). Useos.path.join("VS", "cl.exe")in the test, or keep the Windows path and skip it with@unittest.skipUnless(os.name == "nt", …). The other 6 tests pass. No claim in #14 either. AI-assisted review.Fixed in
c9e1bffe5:_is_msvcnow normalizes\to/beforeos.path.basename, soC:\VS\cl.exeis recognized on any host and the test passes off Windows without a skip.python -I tests/test_hw_oracle_runner.py: 7/7 OK.AI-assisted: yes
Red/green: test_hw_oracle_runner.py failed one real assertion (a Windows path to cl.exe not recognized as MSVC) on main and passes with the backslash-normalizing fix.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 4f9199d09 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)