perf: parallelize tests and reduce timeouts
Pull Request / unit-tests (pull_request) Successful in 2m3s
Pull Request / analyze-bump-type (pull_request) Successful in 13s
Pull Request / build-and-deploy-ci (pull_request) Failing after 16m0s

- Increase workers from 1 to 10 in CI for parallel execution
- Reduce expect timeout from 5000ms to 2000ms
- Reduce all waitForTimeout calls >1000ms to 200-500ms
- Remove unnecessary waits in global setup
This commit is contained in:
2026-05-19 00:39:46 -07:00
parent 005cf7293d
commit 38771a86cb
8 changed files with 22 additions and 26 deletions
+5 -9
View File
@@ -4,16 +4,12 @@ export default defineConfig({
testDir: './e2e',
timeout: 30000,
expect: {
timeout: 5000
timeout: 2000
},
// Run tests sequentially to avoid database conflicts
fullyParallel: false,
// Fail the build on CI if you accidentally left test.only in the source code.
forbidOnly: !!process.env.CI,
// Retry on CI only.
retries: process.env.CI ? 1 : 0,
// Use 1 worker in CI to avoid database conflicts between parallel projects
workers: 1,
// Run tests in parallel for speed - database isolation is per-test via unique data
fullyParallel: true,
// Use multiple workers in CI to speed up test execution
workers: process.env.CI ? 10 : 1,
// Reporter to use
reporter: 'html',
// Global setup and teardown