Skip to content

Commit

Permalink
Performance Tests: --runInBand to avoid performance issues in CI envi…
Browse files Browse the repository at this point in the history
…ronment

Some projects have seen dramatic performance bottlenecks in CI environments
because of the way `jest` parallelizes its test runs and bloats its memory
usage. In this patch we're running the tests in serial to determine if this
sequential-vs-parallel effect is in play in our GitHub Actions runs.
  • Loading branch information
dmsnell committed Feb 8, 2023
1 parent bb6ddd7 commit 052e429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/plugin/commands/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function curateResults( testSuite, results ) {
*/
async function runTestSuite( testSuite, performanceTestDirectory, runKey ) {
await runShellScript(
`npm run test:performance -- packages/e2e-tests/specs/performance/${ testSuite }.test.js`,
`npm run test:performance -- --runInBand packages/e2e-tests/specs/performance/${ testSuite }.test.js`,
performanceTestDirectory
);
const resultsFile = path.join(
Expand Down

0 comments on commit 052e429

Please sign in to comment.