← Back to Pull requests

fix(e2e): Fix installer e2e assertions that pass without checking anything #62056

Open
unknown opened this pull request with 344 lines diff across 4 files
View on GitHub
unknown unknown commented on Dec 04, 2026 09:22 UTC
Author

What does this PR do?

This fixes installer and fleet e2e assertions and helpers that passed without checking what their names say, or that hid failures until much later in the test. Each bug is fixed in its own commit.

<details>
<summary>Functional changes</summary>

| Before | After |
| --- | --- |
| apm-inject TestDefaultPackageVersion: passed if any nested file under the python package dir started with "3" (e.g. 3rdparty) | Passes only if a python version directory starts with 4., the installer's default major |
| apm-inject TestDockerAdditionalFields / TestDockerBrokenJSON: each tested the other's case | Each tests its own case |
| Upgrade-scenario tests: a failed start, promote or stop was ignored, and set-catalog only asserted | The test fails at the failing command and prints its log |
| TestInstallDDOTSubcommand: never checked that otel remove removed DDOT | Asserts that the DDOT process and ext/ddot are gone |
| Databricks script tests: never purged, so each test ran on the previous test's install | Each test registers a purge before installing |
| Default script TestInstall: checked units from a snapshot, with no wait | Waits for agent, trace, system-probe and security-agent units first |
| Windows TestConfigCustomUser: read the runtime config with "all" instead of "--all" | Reads the full runtime config |
| Windows DDOT suites: their AfterTest overrides skipped crash-dump and log collection | They collect, then uninstall |
| Windows installer runCommand: an invalid package option was swallowed and the default config ran | The error is returned |
| Windows package versions: only a -1 revision was stripped | Any -<n> revision is stripped |
| Fleet TestUpgradeFailureTimeout: fixed 90 s sleep before polling | Polls from the start, within the experiment timeout plus revert budget |

Unchanged: which tests exist, their names, and their CI entries.

</details>

Motivation

An audit of the fleet/installer e2e tests found these assertions passing while checking nothing, or nothing like what their names say. It happened ahead of a larger refactor of these trees.

Fixing them first means the coming test deletions and merges rely on assertions that actually work. Some tests may now fail for real; those failures are what this PR is meant to surface.

Describe how you validated your changes

  • Scoped dda inv linter.go on tests/installer/... and tests/fleet/... reports 0 issues, and the touched e2e packages build with Bazel.

  • The Windows cross-lint isn't available locally (no mingw-w64); it is left to lint_cross_windows-x64.

  • The e2e behavior is validated by this PR's new-e2e-installer, new-e2e-installer-windows and new-e2e-fleet-upgrade jobs.
  • Diff: 344 lines (+258 / -86) across 4 files Reviewer: chouetz Review duration: 806m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 344 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.350
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #62056"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 22.6% · Safe to merge
    22.6%