test: unit tests for tools/hw_oracle/runner.py #342
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/342"
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?
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T03:31:02Z.
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.Imported from ubiquitarianism/leonida. Originally posted by Oliwettoo on 2026-11-24T10:26:49Z.
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.Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T07:52:23Z.
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
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T14:47:42Z.
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
4f9199d09in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)