feat: Add exact CI artifact inspection by ref and workflow run #7135
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 #7135"
general
weight: 0.35
ammallya
Summary
Related Issue: https://github.com/ROCm/TheRock/issues/3399
Based on suggestion here: https://github.com/ROCm/TheRock/pull/6760#pullrequestreview-4858406762
Improve the artifact lookup tools so they inspect concrete artifact archives instead of checking only whether an S3
index.htmlpage exists.The tools can now inspect artifacts from recent commits on a branch, an exact ref, or an explicit GitHub Actions workflow run ID. Results can be displayed in a human-readable format or emitted as JSON.
Motivation
The previous implementation checked whether the workflow run's S3 index page existed. The index could exist before the requested artifact group had been uploaded, causing the lookup to report artifacts as available when only early or generic artifacts were present.
The new implementation lists and validates the actual archives stored for the workflow run.
Changes
index.htmlavailability check withS3Backend.list_artifacts().gfx942archives for agfx94X-dcgpurequest.--refand--run-id.--require-single-runto require all requested groups to come from one workflow run.--require-successful-runto accept only completed and successful runs.--require-artifact REGEXto verify that specific archives are present.--json.Without required filename patterns, a successful result confirms that the requested artifact group is represented. It does not prove that every artifact required by a build stage is present.
Relationship to artifact reuse
This PR provides artifact discovery and validation. It does not download or reuse artifacts.
This supports follow-on experiments such as reusing ROCgdb artifacts for the
debug-toolsstage and reusing selectedrocm-librariesslices before tackling a generalized artifact-reuse solution.Compatibility
The existing branch-search behavior remains the default.
--require-single-runand--require-successful-run.Testing
Added tests covering:
.tar.xzartifact handling, including ASAN artifact names.Unit tests
All focused artifact lookup tests pass.
Successful workflow-run inspection
Also tested against live GitHub Actions and S3 data using an explicit workflow run:
The lookup:
gfx942archives for the requestedgfx94X-dcgpufamily.rccl_lib_gfx942.tar.zstwas present.<details>
<summary>Show relevant output</summary>
</details>
The returned artifact inventory included:
Explicit workflow-run rejection
No matching artifacts were returned because the selected workflow run did not satisfy the completed-and-successful requirement.
<details>
<summary>Show command output</summary>
</details>