Skip to content

progress dashboard: track assembly fixtures for test freshness - #7566

Open
realmarkas wants to merge 1 commit into
ItsNotRexed:mainfrom
realmarkas:codex/dashboard-assembly-fixtures
Open

realmarkas wants to merge 1 commit into
ItsNotRexed:mainfrom
realmarkas:codex/dashboard-assembly-fixtures

Conversation

@realmarkas

Copy link
Copy Markdown

Claimed in the coordination issue (#7496 comment). Follow-up to merged #6683 and the reproduction in its review.

What and why

The dashboard's freshness digest tracks Python helpers in runtime/test/shaders/, but some unit tests also depend on hand-written .asm fixtures there. Include those fixtures in the digest so editing or removing one makes cached results require revalidation. Update the metric definition and documentation to match.

Tested

Windows, Python 3.12.10. No GPU was used.

  • The new regression failed on 9f53c502 and passed with the fix. python -I tests/test_progress_dashboard.py passed all 41 tests.
  • Ran the dashboard against only test_bary_persp_oracle.py. Temporarily moving ps_persp_bary.asm made the direct test fail and the cached current count drop from 1/1 to 0/1. Restoring the fixture returned the count to 1/1.
  • Scoped compileall, scripts/check_no_game_data.py and git diff --check passed.

AI-assisted (Codex).

Checklist

  • No game data, keys or decryption.

@senyurah

Copy link
Copy Markdown

Could the digest also cover .asm files under tests/semantic/fixtures/? The dashboard selects tests/test_image_load_typed.py, whose LoadOnlyShaders.test_a16_2d_mip_address reads tests/semantic/fixtures/packed_mip_load_2d.asm directly.

On 1d63f23f7, I cached a passing run, temporarily moved that fixture out of the way, and reran the named test. It failed with FileNotFoundError, while the dashboard still marked the cached result verified / current. The existing fixture-change test could cover both directories. This reproduces without game data or a GPU.

@airp1ane

Copy link
Copy Markdown
Contributor

Tested 1d63f23 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass.

Ran the test files this PR adds or changes, from a clean checkout of the PR head: test_progress_dashboard.py - all exit 0.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants