Skip to content

test(cli): run the suite in parallel - #814

Merged
omartelo merged 1 commit into
mainfrom
test/cli-parallel
Oct 17, 2026
Merged

omartelo merged 1 commit into
mainfrom
test/cli-parallel

Conversation

@omartelo

Copy link
Copy Markdown
Collaborator

internal/cli takes 15s on every OS (#813 run) and, with terminal and relay parallel, shares the floor of the Linux and macOS backend suites. Its tests mostly wait on timers, one after another.

  • 215 of the 217 tests now call t.Parallel() as their first line. Nothing else changes in them.
  • The two in rage_test.go stay serial: they set environment variables. The package holds no other process-wide state: no os.Stdout swap, no fixed port, no env read in the product code.

Stressed: -race -count=30 at GOMAXPROCS=4 and -count=30 -parallel=64 at GOMAXPROCS=2 (starved on purpose), ~6,450 executions each, no failure and no race. Locally at 4 procs: 15s → ~5s. go vet clean for linux, windows and darwin.

@omartelo
omartelo merged commit 2a31f0c into main Oct 17, 2026
7 checks passed
@omartelo
omartelo deleted the test/cli-parallel branch October 17, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant