You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
progress dashboard: track assembly fixtures for test freshness - #7566
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.
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.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.asmfixtures 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.
9f53c502and passed with the fix.python -I tests/test_progress_dashboard.pypassed all 41 tests.test_bary_persp_oracle.py. Temporarily movingps_persp_bary.asmmade 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.compileall,scripts/check_no_game_data.pyandgit diff --checkpassed.AI-assisted (Codex).
Checklist