← Back to Pull requests

[tooling] Restore shared Go caches for E2E jobs #3637

Closed
unknown closed this pull request without merging on Oct 21, 2026 12:20 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 08:53 UTC
Author

What does this PR do?

Restore shared Go module and build caches for E2E jobs while keeping the consolidated core CI checks independent.

prepare_e2e_plugins now downloads the E2E module graph and compiles the packages with coverage enabled and -p 2, without executing tests. It publishes the module/build caches as a compressed, one-day pipeline artifact alongside the Pulumi plugins. AWS and GCP E2E jobs restore these caches before running their existing targets.

Preparation retains needs: []: it starts independently of core checks and operator image builds. Only E2E consumers wait for it. Registry publishing jobs explicitly skip artifact downloads so they do not inherit the large E2E archive through GitLab's default prior-stage downloads.

Motivation

After removing the shared E2E Go cache, each E2E job repeats a cold dependency build. In the component-health run this left roughly 11 minutes between the last module-download message and the first test starting. Share that compilation work once per pipeline without making small build/lint jobs download the E2E graph again.

Additional Notes

Uses pipeline artifacts rather than a branch cache, so E2E consumers receive the cache produced for their own revision. The same CI image, architecture, and cache paths are used for preparation and execution. CI should confirm archive size/transfer time and the reduction in E2E startup time; this does not distribute standalone test binaries.

Minimum Agent Versions

No changes.

Describe your test plan

  • make lint: pass, 0 issues.

  • GOWORK=off go test -C test/e2e -p 2 ./... -count=1 --tags=e2e -cover -run '^$': pass; all E2E packages compile without executing tests.

  • Parsed the YAML and checked that preparation has no job dependencies, producer/consumer images and architectures match, and only E2E jobs download preparation artifacts, including inherited/default artifact behavior.

  • Checked shell syntax and round-tripped the archive creation/restoration commands against temporary module/build-cache fixtures.

  • Live Linux CI and cloud E2E execution have not been run locally.
  • Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies

  • PR has a milestone or the qa/skip-qa label

  • All commits are signed (see: [signing commits][1])
  • [1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

    Diff: 310 lines (+232 / -78) across 3 files Reviewer: wdhif Review duration: 207m
    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 · 310 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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3637"
    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.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    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.9% · Safe to merge
    15.9%