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

Closed
opened 2026-11-26 20:17:18 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/209
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/9942


📝 Commits (3)

  • 7841d69 tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 now runs (TEST-1421)
  • eb6563d Merge remote-tracking branch 'origin/main' into HEAD
  • 633f520 tests/test_first_look_rebuild.py: the stub writes its call log and outputs with newline="\n" (tikD1337 on #9942)

📊 Changes

1 file changed (+17 additions, -15 deletions)

View changed files

📝 tests/test_first_look_rebuild.py (+17 -15)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/209 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/9942` --- ### 📝 Commits (3) - [`7841d69`](https://github.com/ubiquitarianism/leonida/commit/7841d690b79aa975ed91b727507ba6948bc3c63a) tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 now runs (TEST-1421) - [`eb6563d`](https://github.com/ubiquitarianism/leonida/commit/eb6563d4903490efc75969d7ecfde9595b5016a7) Merge remote-tracking branch 'origin/main' into HEAD - [`633f520`](https://github.com/ubiquitarianism/leonida/commit/633f5208ba0754d8be685e9288cc9e04c8e51588) tests/test_first_look_rebuild.py: the stub writes its call log and outputs with newline="\n" (tikD1337 on #9942) ### 📊 Changes **1 file changed** (+17 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_first_look_rebuild.py` (+17 -15) </details> ### 📄 Description > 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`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:18 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#261
No description provided.