[PR #211] test_bvh_shaders_stage: give the fake FSPX translation its fspx_code_sha256 #263

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

📋 Pull Request Information

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

Base: main ← Head: old-pr/9946


📝 Commits (1)

  • b3dec3a test_bvh_shaders_stage: give the fake FSPX translation its fspx_code_sha256

📊 Changes

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

View changed files

📝 tests/test_bvh_shaders_stage.py (+1 -1)

📄 Description

Carried over from old PR 9946 by icecreammule277-dot in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9946, 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.
icecreammule277-dot: 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):

Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116875154 (test fix, no ID assigned)

Depends on: none.

What and why

cc495ee43 ("Rebuild an FSPX cache without a compute lookup key") made make_game.fspx_cache_complete require at least one stage == "cs" entry carrying a 64-hex fspx_code_sha256, and updated the fake translator in tests/test_fspx_shaders_stage.py to match. tests/test_bvh_shaders_stage.py models the FSPX index separately, in its own fake rdna2spirv.py, and still wrote {"Upscale": {"stage": "cs"}} with no key. The FSPX step therefore never counts as cached, and the second stage() call reruns fspx_unpack.py and rdna2spirv.py, so test_the_builder_runs_after_fspx_and_alone_when_only_its_dll_changes fails on main ("Lists differ: ['fspx_unpack.py', 'rdna2spirv.py'] != []").

The fake now writes {"stage": "cs", "fspx_code_sha256": "e" * 64} for the FSPX program, as the other file's fake does. Test only; no production change. The builder (BVH) entry is untouched.

Tested

Windows 11 (10.0.26300), CPython 3.15.2, no GPU or game files, on main d083a2cc3:

test main this branch
tests/test_bvh_shaders_stage.py FAIL (1 failure of 13) OK (13 tests)
tests/test_fspx_shaders_stage.py OK OK
tests/test_shader_stage_resume.py OK OK

AI-assisted: yes (Claude Code, Claude Sonnet 5.5).

Checklist

  • 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/211 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9946` --- ### 📝 Commits (1) - [`b3dec3a`](https://github.com/ubiquitarianism/leonida/commit/b3dec3ab2ad364bf2454ce1e14d9831106d9dabe) test_bvh_shaders_stage: give the fake FSPX translation its fspx_code_sha256 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bvh_shaders_stage.py` (+1 -1) </details> ### 📄 Description > Carried over from **old PR 9946** by `icecreammule277-dot` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9946`, 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. > `icecreammule277-dot`: 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): Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116875154 (test fix, no ID assigned) Depends on: none. ### What and why `cc495ee43` ("Rebuild an FSPX cache without a compute lookup key") made `make_game.fspx_cache_complete` require at least one `stage == "cs"` entry carrying a 64-hex `fspx_code_sha256`, and updated the fake translator in `tests/test_fspx_shaders_stage.py` to match. `tests/test_bvh_shaders_stage.py` models the FSPX index separately, in its own fake `rdna2spirv.py`, and still wrote `{"Upscale": {"stage": "cs"}}` with no key. The FSPX step therefore never counts as cached, and the second `stage()` call reruns `fspx_unpack.py` and `rdna2spirv.py`, so `test_the_builder_runs_after_fspx_and_alone_when_only_its_dll_changes` fails on `main` ("Lists differ: ['fspx_unpack.py', 'rdna2spirv.py'] != []"). The fake now writes `{"stage": "cs", "fspx_code_sha256": "e" * 64}` for the FSPX program, as the other file's fake does. Test only; no production change. The builder (BVH) entry is untouched. ### Tested Windows 11 (10.0.26300), CPython 3.15.2, no GPU or game files, on `main` d083a2cc3: | test | `main` | this branch | |---|---|---| | `tests/test_bvh_shaders_stage.py` | FAIL (1 failure of 13) | OK (13 tests) | | `tests/test_fspx_shaders_stage.py` | OK | OK | | `tests/test_shader_stage_resume.py` | OK | OK | AI-assisted: yes (Claude Code, Claude Sonnet 5.5). ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] 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#263
No description provided.