Repository navigation
build: define INTAKE_PYTHON before its first use - #1364
Merged
Merged
Conversation
The xmem_page_stats and startup_heartbeat_commit tests are registered
under if(EXISTS "${INTAKE_PYTHON}") at line 138, but the cache variable
was only set at line 1061. A fresh configure therefore left both tests
out; they appeared only after a second configure. Set the variable
right after enable_testing() so the first configure registers them.
Refs R0Y00#1199
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Change
CMakeLists.txtchecksif(EXISTS "${INTAKE_PYTHON}")at line 153 to registerxmem_page_statsandstartup_heartbeat_commit(#1199). TheINTAKE_PYTHONcache variable was only set at line 1155. On a fresh configure the variable is still empty at line 153, so both tests are left out without a message. They appear only after a second configure, once the cache holds the value.CI configures once in a clean checkout (only
out/tools/spirv/binis cached), so the Debug and Release full-suite jobs onmaindo not register these two tests.This change moves the
set(INTAKE_PYTHON ... CACHE FILEPATH ...)line directly afterenable_testing(). The default value and docstring are unchanged. No test is added, removed or changed. A value passed with-DINTAKE_PYTHON=...behaves as before.Open PR #1251 also registers Python tests above the old definition (around its line 287), so on a fresh configure they would be skipped in the same way. With this change they are registered on the first configure. No open PR edits the definition line or the lines around
enable_testing().Refs #1199
Verification
Windows 11, Build Tools 2026 (MSVC 14.51.36231), Windows SDK 10.0.26100, Python 3.14.5 venv at
out/pe-envwithrequirements-dev.txt. Base:623e2112.Full test list, each in a new empty build directory:
Comparing the two sorted lists: the only difference is
xmem_page_statsandstartup_heartbeat_commitadded. A freshcmake --preset releaseon this branch also registers 843.The two tests:
PR subset:
Not run: the full
ctest --preset devsuite, and these two tests on the hostedwindows-2025image. Theprpreset does not select them, so the PR check does not exercise them. They first run in CI on the next full Debug/Release run onmain, or in a manual Windows checks run on this branch.AI-assisted.