Skip to content

Drive CI tests to full parallelism by hardening e2e/examples isolation #1064

@emil14

Description

@emil14

Summary

#1062 improved CI throughput by splitting unit/e2e lanes and partially restoring e2e package parallelism with p=2.

This issue tracks the final step: make tests isolation-safe enough to remove explicit -p and rely on Go defaults.

Target End State

  • E2E/examples run with default Go package parallelism (no explicit -p cap).
  • Unit and e2e suites are isolation-safe under parallel execution.

Clarification

  • -p controls parallel package test binaries.
  • -parallel controls parallel test functions within a package (for tests using t.Parallel()).
    Both should be intentionally considered in rollout and docs.

Work Plan

  1. Isolation audit (e2e/examples first)
  • temp dirs and file paths
  • env vars and process-global state
  • fixed ports / network resources
  • shared work dirs and module artifacts
  1. Unit test parallelism audit
  • ensure tparallel remains enforced
  • verify places without t.Parallel() are intentional and safe
  • avoid blanket/unsafe t.Parallel() additions
  1. Rollout
  • step up e2e -p: 2 -> 3 -> 4 -> default
  • run stress validation (shuffle, repeated runs) between steps
  • remove explicit -p once stability threshold is met
  1. Documentation
  • document final go test flags and rationale in workflow comments/docs

Acceptance Criteria

  • CI e2e/examples pass reliably with no explicit -p cap.
  • No known shared-state race/isolation issues remain.
  • Parallelism choices (-p, -parallel, t.Parallel) are documented.

Related

Cross-links

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions