Skip to content

tests: program cache cleanup builds again with PROF_EXACT in program_cache_load - #1257

Closed
bronze-ff wants to merge 2 commits into
NotRexed:mainfrom
bronze-ff:fix/cache-cleanup-test-prof
Closed

bronze-ff wants to merge 2 commits into
NotRexed:mainfrom
bronze-ff:fix/cache-cleanup-test-prof

Conversation

@bronze-ff

@bronze-ff bronze-ff commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

tests/test_program_cache_cleanup.py, added in #1082, lifts program_cache_load from gpu/vk/vk_shader.cpp and compiles it against the stand-ins in tests/program_cache_cleanup_test.cpp. That function has called PROF_EXACT(); since f226108 (#989), which the fixture does not define, so since #1082 was merged the check stops at compile time on main:

cache_functions.inc:241:5: error: 'PROF_EXACT' was not declared in this scope

The fixture now defines PROF_EXACT() as a no-op beside its other stand-ins (logf, disk_init). One line, test only.

Tested on CachyOS (GCC 16.2.1, Clang 23.1.4, Python 3.14) at fe611e4: the check fails before the change and its 6 tests pass after it with --cxx g++, --cxx clang++, and both with --sanitize. Not run with MSVC here.

Not covered: tests/test_output_resolution.py also fails on main; #1254 already fixes it.

🤖 Generated with Claude Code

…cache_load

The check NotRexed#1082 added (2838e89) lifts program_cache_load from
gpu/vk/vk_shader.cpp and compiles it against its own stand-ins. That
function has called PROF_EXACT() since f226108, which the fixture does not
define, so the check stops at compile time on main: "'PROF_EXACT' was not
declared in this scope". The fixture now defines it as a no-op beside its
other stand-ins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bronze-ff
bronze-ff force-pushed the fix/cache-cleanup-test-prof branch from 4afabcd to a8c4ebd Compare November 9, 2026 19:13
@bronze-ff

Copy link
Copy Markdown
Contributor Author

Closing: 96fece9 fixed the same fixture on main, so this change is no longer needed (merging main into this branch defined PROF_EXACT twice). Thanks!

@bronze-ff bronze-ff closed this Nov 9, 2026
@bronze-ff
bronze-ff deleted the fix/cache-cleanup-test-prof branch November 9, 2026 19:28
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.

1 participant