fix(ci): validate baseline artifacts per reusable stage #8473
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
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 #8473"
general
weight: 0.35
ammallya
Summary
Evaluate baseline artifact availability independently for each unaffected stage.
Select a baseline when it contains the complete artifact requirements for at least one candidate stage, then classify every stage as reusable or rebuilding based on its own requirements.
This continues to run in dry-run mode and does not enable stage skipping.
Motivation
Baseline selection currently combines the requirements of all unaffected stages into one strict artifact list. A missing artifact for one stage therefore rejects the baseline for every stage.
For example:
compiler-runtimerequirements are complete;profiler-appsis missingrocprofiler-systems/generic.The current behavior rejects the entire baseline, preventing
compiler-runtimefrom being identified as reusable.The desired behavior is:
compiler-runtime→ available for reuse;profiler-apps→ rebuild.This supports the baseline-selection and artifact-validation work in #7420.
Behavior change
Before: all-or-nothing artifact validation
Unaffected stages
|
+--> compiler-runtime
| required: base/generic
| result: PRESENT
|
+--> profiler-apps
required: rocprofiler-sdk/generic
rocprofiler-systems/generic
result: rocprofiler-systems/generic MISSING
|
v
Flatten every stage requirement into one list
|
v
Require every artifact pair to be present
|
+--> one pair is missing
|
v
Reject the entire baseline
|
+--> compiler-runtime -> rebuild
+--> profiler-apps -> rebuild
Even though
compiler-runtimewas complete, the incompleteprofiler-appsrequirements prevented the baseline from being selected.
After: validate independently reusable stage groups
Candidate baseline
|
v
Compatibility, recency, and build-health gates
|
v
Keep requirements grouped by stage
|
+--> compiler-runtime
| required: base/generic
| result: COMPLETE
|
+--> profiler-apps
required: rocprofiler-sdk/generic
rocprofiler-systems/generic
result: INCOMPLETE
|
v
Is at least one complete stage group available?
|
+--> No -> reject the baseline
|
+--> Yes -> select the baseline
|
v
Classify each stage independently
|
+--> compiler-runtime -> available for reuse
+--> profiler-apps -> rebuild
Multi-platform behavior
Linux requirements -> select and validate Linux baseline artifacts
Windows requirements -> select and validate Windows baseline artifacts
|
v
Did both platforms select the same run?
|
+--> No -> disable automatic reuse safely
|
+--> Yes -> continue
|
v
Stage complete on every platform?
|
+--> Yes -> reusable
+--> No -> rebuild
Preserved safety behavior
artifact type, and concrete target expansion from #8383.
required_artifactsretain strict all-artifacts-requiredbehavior.
Changes
required_artifacts.The valid artifact requirements continue to be derived using the topology, platform restrictions, artifact type, and concrete target expansion added by #8383.
Validation