ROX-37572: Move the serial e2e tests into their feature suites, remove serial #1544
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1544"
general
weight: 0.35
rhmdnd
Summary
Dissolves the serial e2e suite (ROX-37572): each of its 22 tests
moves to the suite of the feature it tests, and
tests/e2e/serialgoes away. This was two PRs (#1544 and #1545);it is now one. The first 12 commits move the tests, under 500 changed lines each, so they can be reviewed commit by
commit. The 10 commits after them are fixes from a second review. The commit messages say what changes and why.
| Tests | Suite | How they run |
|---|---|---|
| TestSuiteScan, TestPlatformAndNodeSuiteScan, TestKubeletConfigIsScannedAcrossReruns, TestResultServerNodeSelectorMaster, TestResultServerNodeSelectorWorker, TestTokenRulesPassOauthClientsConfigurable, TestScanHasProfileGUID, TestRemoveProfileScan | scan-config | parallel |
| TestHighProfileManualRulesHaveInstructions, TestInconsistentResult, TestOpenSCAPRuleMetadataPropagation | scan-config | alone, before the parallel tests |
| TestScanDeprecatedProfile | parsing | parallel (skipped in the critical-only run) |
| TestMustGatherImageWorksAsExpected | deployment | parallel |
| TestComplianceStateMetricSurvivesOperatorRestart, then TestPrometheusRuleComplianceAlert | deployment | alone |
| TestVariableTemplate | remediation | parallel |
| TestAutoRemediate, TestUpdateRemediation, TestKubeletConfigRemediation, TestRuntimeSSHConfigWithRemediation, TestUnapplyRemediation, TestResultServerTolerationsOnTaintedNode | remediation (lanes_test.go) | parallel, one per node lane |
Why some can't share the cluster:
/etc/securettyon a worker, so concurrent node scans come back INCONSISTENT. Itremoves the file however it ends.
HoldScanLocks), because thesuite controller adopts an existing scan of the same name: TestScanHasProfileGUID, TestRemoveProfileScan and
TestScanSettingBinding, which was in scan-config already. A test that doesn't need the profile itself binds a
TailoredProfile of it and needs no lock.
restarts the operator.
Other changes:
HoldScanLocksgives a test scan locks in any suite.ScanPhaseTest,E2E_SCAN_PHASE_CONCURRENCYand theWorkerScanRolehelpers have no use left and go.about 11 minutes. It runs in parallel with the lane tests, so they don't wait behind it, and it waits for its
remediation to be applied instead of for every node of the cluster.
TestTokenRulesPassOauthClientsConfigurable hold the
cluster-oauthlock, and TestScheduledSuitePlatformNoStoragetakes either result of its identity provider rule.
audit_profile_setresult to be PASS. In serial it passed onlybecause TestVariableTemplate had left the audit profile at
WriteRequestBodies.make e2e-remediationtakes over the lane settings:E2E_PARALLEL_POOLS,E2E_REMEDIATION_PARALLELISM(it wasE2E_SERIAL_PARALLELISM) and-restoreTestPools. It creates the lanes and leaves them in place unlessE2E_RESTORE_TEST_POOLS=true.make e2e-serialstays as an alias until the openshift/release change forROX-37663 drops the
e2e-aws-serialjob.Verification
On an OCP 4.22 cluster (3 masters, 3 workers) with the master operator image, with the review fixes:
Both times kube-apiserver rolled out for 9 minutes while the lane tests ran, with no API error in the test log.
before the last 3 commits, 12 of them TestVariableTemplate waiting for the lane tests' nodes.
Before the review fixes, on the same kind of cluster: deployment 11 of 11, parsing_tests 13 of 13.
CI
e2e-aws-serialruns on every PR and, through the alias, now runs theremediation suite, so the 7 tests there still run every time. The other 15 are in jobs that run only when
matching paths change: scan-config (11), deployment (3) and parsing (1). ROX-37663 should widen those filters.
For example, the deployment job doesn't run for
pkg/controller/compliancesuite/, where the code thatTestComplianceStateMetricSurvivesOperatorRestart guards lives, and no path-gated job runs for
pkg/utils/orpkg/xccdf/.e2e-aws-serial(6 workers), 2 one2e-aws-remediation(3 workers) until ROX-37663 gives it 6. Until then both jobs run the remediation suite when its paths change.
Update after merge
t.Parallel()and holdtheir profiles' scan locks with
HoldScanLocks, and TestVariableTemplate callst.Parallel()in the remediationsuite. An earlier version of this description had them running alone.
e2e-aws-serialjobs on Dec 3, and #1555 drops themake e2e-serialalias along with the other review follow-ups.Generated with Claude Code