Skip to content

Conversation

@stephanos
Copy link
Contributor

@stephanos stephanos commented Feb 11, 2026

What changed?

Made integration tests run in parallel.

Why?

Before: ~8min [run] 🐢
After: 3m30s [run] 🐰

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

They are not known to be flaky; and anecdotally all passed on the first run.

@stephanos stephanos force-pushed the parallelize-all-the-things branch 2 times, most recently from f33a28e to 49aa22e Compare February 11, 2026 21:00
@stephanos stephanos changed the title Parallelize unit and integration tests Parallelize integration tests Feb 11, 2026
@stephanos stephanos force-pushed the parallelize-all-the-things branch 2 times, most recently from 6d6daf0 to 1df4eb2 Compare February 11, 2026 23:11

Functional tests (in `tests/`) should all use `testcore.NewEnv(t)` which will always add `t.Parallel()`;
unless the `MustRunSequential` option is passed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

New docs ^

fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New little tool to automatically tag tests as "parallel".

}

func TestMySQLSetupSchemaTestSuite(t *testing.T) {
t.Setenv("SQL_HOST", environment.GetMySQLAddress())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are now handled via SetupSuiteBase

@stephanos stephanos force-pushed the parallelize-all-the-things branch 5 times, most recently from 3a09867 to 8b61fab Compare February 12, 2026 02:46
git status
git diff
exit 1
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ I think that's the clearest way to communicate without ambiguity

@stephanos stephanos force-pushed the parallelize-all-the-things branch from 8b61fab to 09688be Compare February 12, 2026 03:55
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