← Back to Pull requests

test(e2e): upgrade every patch in the previous four Agent minors #60479

Closed
unknown closed this pull request without merging on Nov 20, 2026 15:31 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 16:45 UTC
Author

What does this PR do?

Add direct Fleet upgrade coverage from every released patch and package revision in the four minor releases preceding the pipeline candidate. Each source/platform pair gets its own VM, installs the historical Agent and installer, checks the source version, then starts and promotes an experiment to the candidate.

Functional changes

| Before | After |
| --- | --- |
| The upgrade smoke test starts from the latest stable Agent | A separate CI matrix additionally upgrades every published patch in candidate minor minus 1, 2, 3, and 4 on the existing Fleet Linux/Windows platforms |
| Historical selection could panic on unprefixed versions or count patches as minors | Version selection normalizes comparisons, preserves exact versions, and anchors the exhaustive matrix to the candidate minor |

The eight jobs split by source minor and platform family, cap concurrent tests at four, and disable dynamic test skipping and early flake detection. Duplicate registry aliases and prereleases are excluded. A minor awaiting its first stable release is explicitly skipped; invalid/empty discovery and unavailable published artifacts fail.

Motivation

Exercise older customer installations directly against each candidate, including older patches that latest-patch-only coverage misses.

Describe how you validated your changes

Added unit coverage for exact minor selection, every patch/revision, alias deduplication, missing/invalid catalogs, exact installation pins, and option validation. The backend/agent unit tests, scoped Go lint, Fleet E2E compilation, Gazelle, and Buildifier checks pass. Local Codex review identified VM accumulation under the shared cleanup setting; this job now destroys each suite synchronously, and an independent review verified that fix.

Additional Notes

The existing latest-stable smoke test remains. For the current 7.87 candidate, the production catalog has 16 stable package versions across 7.83–7.85 and no stable 7.86 yet; the 7.86 shard will report an explicit skip until that release is published. All 16 corresponding Windows installer URLs were checked successfully. Full cloud execution and runtime measurements remain for CI.

Diff: 276 lines (+207 / -69) across 3 files Reviewer: hush-hush Review duration: 10005m
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 · 276 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.336
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #60479"
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: 39.6% (MEDIUM) · Higher = larger blast radius
39.6%
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.6% · Safe to merge
15.6%