Skip to content

Add test-fast for Go unit testing#4847

Merged
johnsaigle merged 2 commits into
wormhole-foundation:mainfrom
johnsaigle:parallelize-unit-tests
Jun 16, 2026
Merged

Add test-fast for Go unit testing#4847
johnsaigle merged 2 commits into
wormhole-foundation:mainfrom
johnsaigle:parallelize-unit-tests

Conversation

@johnsaigle

Copy link
Copy Markdown
Contributor

Speed up local human + agent unit test loops by making a new testing
target. CI is untouched so it still runs the full test suite.

  • Add test-fast to get a much faster unit test loop in Go code. This
    passes -short to go test, skips fuzzing, and omits -race.
  • Gate slow integration-style tests, stress tests, and tests relying on
    sleeps behind Go's testing.Short() configuration.
  • Add t.Parallel() to certain tests where appropriate (Go tests run in
  • Shortens fuzz time for a specific test since it hasn't had any issues
    since merged

LLM summary from diffing the two test times:

make test-fast gives a fast local path: 18.43s vs main make test at 89.15s, about 79% faster.

mdulin2
mdulin2 previously approved these changes Jun 10, 2026
djb15
djb15 previously approved these changes Jun 15, 2026

@djb15 djb15 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests go brrrr

@johnsaigle johnsaigle force-pushed the parallelize-unit-tests branch from 15b1b73 to 179e4be Compare June 16, 2026 11:17
@johnsaigle johnsaigle dismissed stale reviews from djb15 and mdulin2 via cc1d332 June 16, 2026 11:34
@johnsaigle

Copy link
Copy Markdown
Contributor Author

@mdulin2 @djb15 Sorry, this PR accidentally had Makefile changes from #4841 which I've now reverted. Please re-approve.

Changes are here (reverting lint in Makefile): cc1d332

Speed up local human + agent unit test loops by making a new testing
target. CI is untouched so it still runs the full test suite.

- Add `test-fast` to get a much faster unit test loop in Go code. This
  passes `-short` to go test, skips fuzzing, and omits `-race`.
- Gate slow integration-style tests, stress tests, and tests relying on
  sleeps behind Go's testing.Short() configuration.
- Add t.Parallel() to certain tests where appropriate (Go tests run in
- Shortens fuzz time for a specific test since it hasn't had any issues
  since merged
@johnsaigle johnsaigle force-pushed the parallelize-unit-tests branch from cc1d332 to a2d6eed Compare June 16, 2026 14:17

@evan-gray evan-gray left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable

@evan-gray evan-gray requested a review from mdulin2 June 16, 2026 15:58
@johnsaigle johnsaigle merged commit 4b1747b into wormhole-foundation:main Jun 16, 2026
65 of 66 checks passed
johnsaigle added a commit to johnsaigle/wormhole that referenced this pull request Jun 16, 2026
* Add test-fast for Go unit testing

Speed up local human + agent unit test loops by making a new testing
target. CI is untouched so it still runs the full test suite.

- Add `test-fast` to get a much faster unit test loop in Go code. This
  passes `-short` to go test, skips fuzzing, and omits `-race`.
- Gate slow integration-style tests, stress tests, and tests relying on
  sleeps behind Go's testing.Short() configuration.
- Add t.Parallel() to certain tests where appropriate (Go tests run in
- Shortens fuzz time for a specific test since it hasn't had any issues
  since merged
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.

4 participants