fix(e2e): Fix installer e2e assertions that pass without checking anything #62056
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.350
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #62056"
general
weight: 0.35
chouetz
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 with4., 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 thatotel removeremoved DDOT | Asserts that the DDOT process andext/ddotare 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
AfterTestoverrides 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
-1revision 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
dda inv linter.goontests/installer/...andtests/fleet/...reports 0 issues, and the touched e2e packages build with Bazel.lint_cross_windows-x64.new-e2e-installer,new-e2e-installer-windowsandnew-e2e-fleet-upgradejobs.