ci(e2e): rebuild the image artifact when a retest cannot download it #8094
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 301 lines diff across 3 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.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8094"
general
weight: 0.35
yuluo-yx
Problem
/retestretries a run withreRunWorkflowFailedJobs, which re-executes only the failed jobs. In thee2eworkflow the jobs that fail aree2e-case/e2e-storage, and both need theshenyu-imagesartifact produced by
build-docker-images, which is uploaded withretention-days: 1.The producer job is
successin the original run, so a failed-job rerun leaves it untouched and theartifact is never rebuilt. Once it expires, every retry dies on
Observed on run
39037187784(PR #7766):run_attempt=4,created_at=2026-10-17, and/actions/runs/39037187784/artifactsreturns an empty list. Thee2egate then fails onneeds.e2e-case.result == failure, so the check can never turn green again — the PR has to bere-pushed even though nothing in it is broken. This is behind a large share of the 26 open PRs whose
only red check is
e2e.What this changes
retest.yml— before retrying a run, probe its artifacts. If it is ane2erun andshenyu-imagesis missing or expired, request a full workflow rerun instead of a failed-job rerun,so
build-docker-imagesruns again and regenerates the artifact. Runs that still hold the artifactkeep the cheaper failed-job rerun, and every other workflow is unaffected.
e2e-k8s.yml— after downloading, check that the two image tarballs are actually there and failwith an actionable message. A manual "Re-run failed jobs" from the UI now says what is wrong and what
to do, instead of surfacing a
docker loaderror.Verification
YAML.load_file), and the embeddedgithub-scriptpassesnode --checkwhen wrapped in an async function.
the missing one and exits non-zero; with both present it passes.
merge is to
/retestan old e2e-failed PR and watch for a full rerun instead of a failed-jobrerun.
Notes
I did not raise
retention-days, although that would also help: two tarballs per run times thenumber of active PRs makes artifact storage grow quickly, and the fallback above is correct without
it. Say the word if you would rather trade storage for fewer full reruns.