fix(ci): complete weekly scan of NCCL preflight images #3431
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 #3431"
general
weight: 0.35
yuanchen8911
Summary
The weekly image scan now completes for the two NVSentinel NCCL preflight images by scanning them on a larger runner, and the Slack summary reports any scan leg that dies instead of omitting it.
Motivation / Context
Recent weekly runs have lost both NCCL legs: the runner receives a shutdown signal partway through the scan and the images go unchecked. Sampling memory and disk every 15 seconds in two diagnostic dispatches showed the cause is memory, not disk. grype holds about 28 GiB while it catalogs these images (peak RSS about 15 GiB plus 13 GiB swapped), and a 16 GiB
ubuntu-24.04runner with 3 GiB of swap is killed once swap fills. Disk never dropped below 75 GiB free.With enough memory the scans finish, and they surface findings the weekly report has been missing: 52 HIGH/CRITICAL fixable matches in
preflight-nccl-loopbackand 151 inpreflight-nccl-allreduce.The summary also hid the failure. A leg that dies before uploading leaves no artifact, so the Slack post never named it, and a leg that hits its timeout concludes
cancelled, which madeneeds.scan.resultcancelledand skipped the summary job entirely.Fixes: #3249
Related: N/A
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/).github/workflows/vuln-scan-images.yaml,.github/actionlint.yamlImplementation Notes
large: truein the matrix and run onlinux-amd64-cpu16(NVIDIA self-hosted, 16 vCPU, 61 GiB RAM, 141 GiB disk); every other image stays onubuntu-24.04.cpu8(30 GiB) is too close to the 28 GiB working set. The workflow runs only on its schedule or a manual dispatch, so no pull-request code reaches the self-hosted runner, and the scan job's token iscontents: read/packages: read.registry:makes grype fetch layers directly rather than pull,docker saveand extract, which halved the scan time in the diagnostic runs.Scan (...)jobs through the API (actions: read) and adds each one that did not succeed as "scan did not complete (<conclusion>)". It posts when any leg is incomplete, even with no HIGH findings.if: ${{ !cancelled() }}replacesalways() && needs.scan.result != 'cancelled', so a single leg timing out no longer suppresses the report.Testing
CI evidence, all dispatched from temporary branches:
| Run | Setup | loopback | allreduce |
|---|---|---|---|
| 40033072898 | hosted, as on
main| killed (OOM) | killed (OOM) || 40039453493 | hosted + 48 GiB swap, docker daemon | 20m 31s | 22m 34s |
| 40039453493 | hosted + 48 GiB swap, registry | 9m 59s | 9m 56s |
| 40427248166 | this workflow file,
cpu16, registry | 4m 50s | 4m 34s |Run 40427248166 ran this PR's workflow file end to end (minus the event-exporter entry from #3371, which landed meanwhile) and every job succeeded; the whole workflow took 13 minutes. The notify logic was exercised locally with a stubbed
ghagainst the real jobs JSON of run 39732382492: it lists both dead NCCL legs and posts with zero HIGH findings, and still skips on a clean run.make qualifydoes not complete in my local sandbox (shell tests needmktempoutside the sandbox; 13 release-policy tests need GNUtimeout, and fail identically onmain). This PR changes no Go code.Risk Assessment
Rollout notes: First dependency on a self-hosted CPU runner label in this repo. If
linux-amd64-cpu16capacity is unavailable, the two NCCL legs queue rather than fail, which delays the weekly summary until they are picked up.Checklist
make testwith-race) (no Go changes; ran the workflow-parsing tests, see Testing)make lint) (ran the YAML-relevant gates: actionlint, yamllint, runner labels)git commit -s -S) — GPG signing info