fix: Include subproject CMake arguments in fingerprints #10338
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10338"
general
weight: 0.35
erman-gurses
Description
Splits the CMake-argument part out of #9907, as requested in review; follows #10268, which scoped source fingerprints. A subproject's fingerprint did not include the arguments TheRock passes when it configures the subproject, so changing one (for example
-DBUILD_SHARED_LIBS=ONtoOFF) left the fingerprint unchanged and a cache could reuse an artifact built with different options. This PR adds those arguments to the fingerprint.ISSUE ID: #9525
Changes
therock_cmake_subproject_activatehashes the final argument list (declaredCMAKE_ARGSplus any<name>_CMAKE_ARGSoverride), in configure-command order, and adds it to the fingerprint asCMAKE_ARGS_V1=.... Each argument is hashed separately, so argument boundaries, order and repeats count.THEROCK_VERBOSEconfigure printsFPRINT invalid: CMake argument '...' contains a generator expression. #10402 and <rocgdb PR> replaced the generator expressions inCMAKE_ARGSwith regular variables, so no real fingerprint is invalidated.Testing
New
cmake/tests/therock_subproject_cmake_args_test.py: 7 tests, they use the shared helpers from #10268 to configure a small superproject with three subprojects (one that gets the arguments, one that depends on it, and an unrelated control), check that the inner configure received the argument, and check that the right fingerprints changed while the control did not. Cases: changed, added and removed arguments; a per-project override; reordered repeated arguments;-DVALUE=versus no argument; a prebuilt stage; and$<TARGET_PROPERTY:...>, whose value changes while its text does not (fingerprint invalid both times). All 7 fail without the change, and removing the invalidation is also caught.<details>
<summary>Test output (Linux)</summary>
</details>
Full configure on Linux (
-DTHEROCK_ENABLE_ALL=ON -DTHEROCK_VERBOSE=ON): 119 subprojects fingerprinted, noFPRINT invalid: CMake argumentmessages.Limitations
CMAKE_ARGSare not supported yet: an argument using one loses caching for the subproject and its dependents. Pass a value computed at configure time instead.