[PR #1315] [MERGED] exe_sha: report the explicit hash source when --expect overrides --manifest (EXE-SHA-SOURCE) #1345

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1315
Author: @fin-github
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD

Base: main ← Head: codex/exe-sha-source


📝 Commits (1)

  • 1d983bc exe_sha: report --expect as the explicit hash source

📊 Changes

2 files changed (+12 additions, -4 deletions)

View changed files

📝 tests/test_exe_sha.py (+11 -3)
📝 tools/exe_sha.py (+1 -1)

📄 Description

Claimed in the coordination issue as: EXE-SHA-SOURCE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145320825)

What and why

When both options are supplied, the tool compares the file with the hash from --expect. The text verdict and JSON source now identify --expect. Previously both could credit a manifest the tool never read, even when the file was missing. The regression covers an existing manifest with a different size and hash and a missing manifest, in both output formats.

Tested

Windows 11 (build 26200.9974), Python 3.14.4. Synthetic files only.

  • Before, on upstream/main at 4a50cafc7 with only the test change, python -I tests/test_exe_sha.py -v ran 11 tests and failed all four new subtests.
  • After the fix, python -I tests/test_exe_sha.py -v passed all 11 tests and all four new subtests.
  • python -I tests/test_text_write_line_endings.py passed all 3 tests.
  • python -I scripts/check_no_game_data.py tools/exe_sha.py tests/test_exe_sha.py and git diff --check exited 0.

GPUs tested: no GPU

AI-assisted (Codex)


🔄 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/1315 **Author:** [@fin-github](https://github.com/fin-github) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `codex/exe-sha-source` --- ### 📝 Commits (1) - [`1d983bc`](https://github.com/ubiquitarianism/leonida/commit/1d983bcb24ec7b5e6db046a4dc71ff372f27f8b9) exe_sha: report --expect as the explicit hash source ### 📊 Changes **2 files changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_exe_sha.py` (+11 -3) 📝 `tools/exe_sha.py` (+1 -1) </details> ### 📄 Description Claimed in the coordination issue as: EXE-SHA-SOURCE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145320825) ### What and why When both options are supplied, the tool compares the file with the hash from `--expect`. The text verdict and JSON `source` now identify `--expect`. Previously both could credit a manifest the tool never read, even when the file was missing. The regression covers an existing manifest with a different size and hash and a missing manifest, in both output formats. ### Tested Windows 11 (build 26200.9974), Python 3.14.4. Synthetic files only. - Before, on `upstream/main` at `4a50cafc7` with only the test change, `python -I tests/test_exe_sha.py -v` ran 11 tests and failed all four new subtests. - After the fix, `python -I tests/test_exe_sha.py -v` passed all 11 tests and all four new subtests. - `python -I tests/test_text_write_line_endings.py` passed all 3 tests. - `python -I scripts/check_no_game_data.py tools/exe_sha.py tests/test_exe_sha.py` and `git diff --check` exited 0. GPUs tested: no GPU AI-assisted (Codex) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:56 +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#1345
No description provided.