tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 runs, and check they are called (TEST-1421) (OLD-9942) #669
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!669
Loading…
Reference in a new issue
No description provided.
Delete branch "carry-old-9942"
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: OLD-9942 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129925439)
Replaces the carried-over draft #209. I'm the original author of old upstream PR 9942.
What and why
TEST-1421. The rebuild test stubs
gdk_runtime_calls.py,find_hash_lookup.pyandexe_checklist.py, the three report toolsscripts/first_look.ps1runs afterpe_inspect. Onmain, two of those stubs do nothing at all, so the test can't tell whether the script ran them. Now all three use one stub. It records its name intools_called.txtand writes the file its--json/--outnames, usingnewline="\n"(pointed out by tikD1337 on the old PR). The test then asserts that the script called the three tools, in order. This tightens an existing test; it doesn't fix a failure.The old branch's final diff, applied on current
main(21625bca8) as one commit. It applied cleanly.Tested
The test is Windows-only (
skipUnless(os.name == "nt")). On Linux it reports 5 skipped. I ran it with Windows Python 3.11 and Windows PowerShell 5.1 (Windows 11, from WSL) on an export oftests/,scripts/andtools/:main: 5 tests OKGPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: test only)Red/green: No red test; this tests-only PR's tests/test_first_look_rebuild.py passes 5/5 on main and with the PR, natively on Windows (skipped on GitHub Actions Linux, which has no powershell.exe).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)