next.js
77874b8e - refactor(CI): Assign tests to groups round-robin instead of sequentially when we don't have timings (#76462)

Commit
1 year ago
refactor(CI): Assign tests to groups round-robin instead of sequentially when we don't have timings (#76462) Our CI runs tests in parallel across multiple groups. We want test groups to all take similar amounts of time to decrease overall latency, and to reduce the chance of test group timeouts in CI. There's logic here to assign intelligently to groups based on previous test timing information, but if there's no timing information for whatever reason (e.g. we don't currently use timings for rspack/turbopack integration tests), then we were assigning them to groups sequentially. Because tests with similar paths tend to have similar performance characteristics, it's better to assign every nth test to each group, similar to round-robin assignment.
Author
bgw bgw
Parents
Loading