← Back to Pull requests

CMP-4824: Run most serial e2e tests in parallel #1451

Closed
unknown closed this pull request without merging on Oct 24, 2026 01:31 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 21:53 UTC
Author

The serial suite's destructive tests each apply MachineConfigs to the one shared e2e pool and wait for its node to reboot, so the whole suite runs one test at a time and e2e-aws-serial takes 67-70 minutes. This PR gives each of those tests a MachineConfigPool of its own, a lane, and runs the scan-only tests in parallel alongside them. The last e2e-aws-serial run with 5 lanes passed 21/21 in 23.6 minutes.

| Serial suite (21 tests) | master | this PR |
|---|---|---|
| Sequential | 21 | 4 |
| Parallel scan tests | 0 | 11 |
| Lane tests | 0 | 6 |

Each of the four commits explains its part in its message: lanes for suites that ask for them (framework.WithTestPools()), scan-phase locks for the parallel scan tests (ScanPhaseTest), pinning the operator to nodes that don't reboot, and the serial suite opting in.

Workers: 5 lanes plus the spare need 6 workers, and openshift/release#87590 gives e2e-aws-serial 6 (COMPUTE_NODE_REPLICAS). Until it merges, this PR's e2e-aws-serial runs on 3 workers, so with 2 lanes. On a cluster you keep, E2E_RESTORE_TEST_POOLS=true removes the lanes after the run.

Testing surface:

  • The scan tests' worker scans cover the spare worker instead of every worker. Aggregating results from several nodes is still covered by the master scans and TestInconsistentResult.

  • TestMustGatherImageWorksAsExpected, TestResultServerNodeSelectorMaster and TestResultServerNodeSelectorWorker bind a TailoredProfile extending the small E8 profiles instead of CIS or high-node, so their scans are named after the test. They check pods and must-gather output, not rule results.

  • TestOpenSCAPRuleMetadataPropagation stays sequential until #1452 fixes the aggregator's Rule metadata cache, which is keyed by rule ID across bundles.
  • Runs (go test time for the 21 tests):

    | Run | Code | Workers, lanes | Result | Time |
    |---|---|---|---|---|
    | CI e2e-aws-serial, Oct 22 | 821734060 | 6, 5 | 21/21 | 23.6 min |
    | CI e2e-aws-serial, Oct 21 | f52521339 | 6, 5 | 21/21 | 25.2 min |
    | OCP 4.22 on GCP, Oct 21 | f52521339 | 6, 5 | 21/21 | 27.6 min |
    | CI e2e-aws-serial on 5 PRs that don't change the tests, Oct 21-22 | master | 3, none | 21/21 | 67-70 min (one run 92) |

    Both CI runs come from earlier pushes, which scaled the workers from 3 to 6 during setup. TestAutoRemediate holds its lane longest, 16-19 minutes; the other remediation tests take 7-11 and TestResultServerTolerationsOnTaintedNode under 2.

    Generated with Claude Code

    Diff: 316 lines (+237 / -79) across 3 files Reviewer: Vincent056 Review duration: 24697m
    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 · 316 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.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1451"
    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.4% (MEDIUM) · Higher = larger blast radius
    40.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: 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: 16.0% · Safe to merge
    16.0%