tests: mem_trim accepts the BC3 scratch's even-size argument #799

Closed
madebyjordan wants to merge 1 commit from fix/mem-trim-bc-scratch-arg into main
madebyjordan commented 2026-11-08 21:48:58 +00:00 (Migrated from github.com)

#705 broke tests/test_mem_trim.py, sorry about that. Its merge with #585 made both BC3 uploads call bc_scratch_layout(cmd, resized) so an upload encoded at an even size also gets the second scratch. The test looks for the exact text if (!bc_scratch_layout(cmd)) return false; twice, finds none, and "Game-free source regressions" has been red on main since f2223df (it was green at 58af2c0). #705's own CI never ran because the fork workflow approval expired.

The check now matches the call with or without the second argument. It still fails if either upload stops asking for the scratch (checked by removing one guard: the count drops to 1).

Tested: python -I -B tests/run_all.py on 232eecb + this change. test_mem_trim passes. The only other local failures are Windows-environment ones (symlink privilege in test_nup_paths, clang/<initializer_list> in test_fps_overlay_order).

🤖 Generated with Claude Code

#705 broke `tests/test_mem_trim.py`, sorry about that. Its merge with #585 made both BC3 uploads call `bc_scratch_layout(cmd, resized)` so an upload encoded at an even size also gets the second scratch. The test looks for the exact text `if (!bc_scratch_layout(cmd)) return false;` twice, finds none, and "Game-free source regressions" has been red on main since f2223df (it was green at 58af2c0). #705's own CI never ran because the fork workflow approval expired. The check now matches the call with or without the second argument. It still fails if either upload stops asking for the scratch (checked by removing one guard: the count drops to 1). Tested: `python -I -B tests/run_all.py` on 232eecb + this change. `test_mem_trim` passes. The only other local failures are Windows-environment ones (symlink privilege in `test_nup_paths`, clang/`<initializer_list>` in `test_fps_overlay_order`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
klimovich008 commented 2026-11-08 21:51:00 +00:00 (Migrated from github.com)

Confirmed independently: the unchanged current base reproduces the BC3 assertion failure. This patch passes with both the prior one-argument calls and the current resize-argument calls. Removing either current upload or copy guard makes it fail again.

The same base issue is the only source-test failure in #793; its new shader-stamp check passes on Windows and Linux. CPU source checks only; no GPU behavior claim.

Confirmed independently: the unchanged current base reproduces the BC3 assertion failure. This patch passes with both the prior one-argument calls and the current resize-argument calls. Removing either current upload or copy guard makes it fail again. The same base issue is the only source-test failure in #793; its new shader-stamp check passes on Windows and Linux. CPU source checks only; no GPU behavior claim.
NotRexed commented 2026-11-08 23:17:21 +00:00 (Migrated from github.com)

Thank you for the fix! #806 made the same repair to tests/test_mem_trim.py (it checks each upload's resize argument separately) and has now been merged, so main's test passes. Closing this one as a duplicate.

Thank you for the fix! #806 made the same repair to tests/test_mem_trim.py (it checks each upload's resize argument separately) and has now been merged, so main's test passes. Closing this one as a duplicate.
Commenting is not possible because the repository is archived.
No description provided.