← Back to Pull requests

ci(e2e): rebuild the image artifact when a retest cannot download it #8094

Closed
unknown closed this pull request without merging on Oct 24, 2026 14:54 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 14:07 UTC
Author

Problem

/retest retries a run with reRunWorkflowFailedJobs, which re-executes only the failed jobs. In the
e2e workflow the jobs that fail are e2e-case / e2e-storage, and both need the shenyu-images
artifact produced by build-docker-images, which is uploaded with retention-days: 1.

The producer job is success in the original run, so a failed-job rerun leaves it untouched and the
artifact is never rebuilt. Once it expires, every retry dies on

##[error]Unable to download artifact(s): Artifact not found for name: shenyu-images

Observed on run 39037187784 (PR #7766): run_attempt=4, created_at=2026-10-17, and
/actions/runs/39037187784/artifacts returns an empty list. The e2e gate then fails on
needs.e2e-case.result == failure, so the check can never turn green again — the PR has to be
re-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 an e2e run and
shenyu-images is missing or expired, request a full workflow rerun instead of a failed-job rerun,
so build-docker-images runs again and regenerates the artifact. Runs that still hold the artifact
keep 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 fail
with 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 load error.

Verification

  • Both workflows parse (YAML.load_file), and the embedded github-script passes node --check

  • when wrapped in an async function.
  • The preflight was exercised against a directory holding only one of the two tarballs: it reports

  • the missing one and exits non-zero; with both present it passes.
  • Not exercised end to end here: it needs a real expired artifact. The cheapest way to confirm after

  • merge is to /retest an old e2e-failed PR and watch for a full rerun instead of a failed-job
    rerun.

    Notes

    I did not raise retention-days, although that would also help: two tarballs per run times the
    number 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.

    Diff: 301 lines (+225 / -76) across 3 files Reviewer: yuluo-yx Review duration: 47m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.1% (MEDIUM) · Higher = larger blast radius
    40.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.8% · Safe to merge
    15.8%
    Repository