[PR #669] tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 runs, and check they are called (TEST-1421) (OLD-9942) #709

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/669
Author: @LouisRiverstone
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry-old-9942


📝 Commits (2)

  • fbde472 tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 now runs (TEST-1421)
  • e68fd7f Merge remote-tracking branch 'ubq/main' into HEAD

📊 Changes

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

View changed files

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

📄 Description

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.py and exe_checklist.py, the three report tools scripts/first_look.ps1 runs after pe_inspect. On main, 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 in tools_called.txt and writes the file its --json/--out names, using newline="\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 of tests/, scripts/ and tools/:

  • main: 5 tests OK
  • this branch: 5 tests OK, including the new assertion that the three tools were called

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: test only)

🔄 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/669 **Author:** [@LouisRiverstone](https://github.com/LouisRiverstone) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry-old-9942` --- ### 📝 Commits (2) - [`fbde472`](https://github.com/ubiquitarianism/leonida/commit/fbde472118560c5e0e21d70333c2c5812533d3b4) tests/test_first_look_rebuild.py: stub the three report tools first_look.ps1 now runs (TEST-1421) - [`e68fd7f`](https://github.com/ubiquitarianism/leonida/commit/e68fd7f373dd2c6c6b027e53a2a62b24eaacc11d) Merge remote-tracking branch 'ubq/main' into HEAD ### 📊 Changes **1 file changed** (+17 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_first_look_rebuild.py` (+17 -15) </details> ### 📄 Description 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.py` and `exe_checklist.py`, the three report tools `scripts/first_look.ps1` runs after `pe_inspect`. On `main`, 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 in `tools_called.txt` and writes the file its `--json`/`--out` names, using `newline="\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 of `tests/`, `scripts/` and `tools/`: - `main`: 5 tests OK - this branch: 5 tests OK, including the new assertion that the three tools were called GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: test only) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#709
No description provided.