tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 now runs (TEST-1421) #209

Closed
github-bot wants to merge 3 commits from gh-pr/209/head into gh-pr/209/base
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:44 UTC · original
ubiquitarianism:old-pr/9942 → main · +17 −15 · 1 files · 3 commits · closed without merging

Carried over from old PR 9942 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9942, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
LouisRiverstone: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

TEST-1421 (found by @PeterGrieffindor). Update: #6133 has since fixed the Windows failure on main with its own stubs for the three tools. After the merge with main, this PR is a coverage change only.

What it adds on top of #6133. Test only:

  • The stub: the three per-tool stubs are replaced by one shared stub. It writes the file its --json / --out names, and it appends its tool name to tools_called.txt.
  • The new check: run_case asserts that gdk_runtime_calls.py, find_hash_lookup.py and exe_checklist.py are all called, in that order. On main, if first_look.ps1 stops running one of them, the tests still pass. With this PR, they fail.

Re-submission of #5870. #5870 was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current main.

Checked on #5870 by: kapitche (Windows).

No game files.

AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with main.

**@⁠Andretuta** on GitHub · 2026-11-24 02:44 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/209) `ubiquitarianism:old-pr/9942` → `main` · +17 −15 · 1 files · 3 commits · closed without merging > Carried over from **old PR 9942** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9942`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `LouisRiverstone`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): TEST-1421 (found by `@PeterGrieffindor`). **Update:** `#6133` has since fixed the Windows failure on `main` with its own stubs for the three tools. After the merge with `main`, this PR is a coverage change only. **What it adds on top of `#6133`.** Test only: - **The stub:** the three per-tool stubs are replaced by one shared stub. It writes the file its `--json` / `--out` names, and it appends its tool name to `tools_called.txt`. - **The new check:** `run_case` asserts that `gdk_runtime_calls.py`, `find_hash_lookup.py` and `exe_checklist.py` are all called, in that order. On `main`, if `first_look.ps1` stops running one of them, the tests still pass. With this PR, they fail. Re-submission of `#5870`. `#5870` was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current `main`. Checked on `#5870` by: kapitche (Windows). No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`.
first_look.ps1 also runs gdk_runtime_calls.py, find_hash_lookup.py and
exe_checklist.py before the dry run. The test's sandbox stubbed only
pe_inspect.py, so on Windows the missing tools' python exit code 2 became
$LASTEXITCODE and three of the four cases failed with 1 != 0 (found by
@PeterGrieffindor). Each is now a stub that writes the file its --json/--out
names and records its call; the test also checks that all three are called,
in order. Windows 11, PowerShell 5.1, CPython 3.11: 4 failed before, 4 OK now.
Linux skips the test as before.
# Conflicts:
#	tests/test_first_look_rebuild.py
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:48:50 +00:00
github-bot closed this pull request 2026-11-26 08:48:50 +00:00
Author
Owner

@⁠LouisRiverstone on GitHub · 2026-11-24 11:20 UTC · original

Taken over by its author in #669 (rebased on main). This draft can be closed.

**@⁠LouisRiverstone** on GitHub · 2026-11-24 11:20 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/209#issuecomment-7129978866) Taken over by its author in #669 (rebased on main). This draft can be closed.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 19:18 UTC · original

This carry-over of old upstream PR 9942 has been taken over in #669, so I'm closing this draft as #17 describes. The branch old-pr/9942 stays.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 19:18 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/209#issuecomment-7141900306) This carry-over of old upstream PR 9942 has been taken over in #669, so I'm closing this draft as #17 describes. The branch `old-pr/9942` stays. AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.