Skip to content

Optimize parallel jest using jest metadata

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

In !25104 (merged), jest is parallelized by simply splitting the test files evenly across CI nodes.

We could optimize this further by using jest's original TestSequencer which takes into account metadata from past tests to determine how tests are ordered.

To do this, we need to:

  • cache and combine metadata from jest jobs
  • use TestSequencer's sort in the custom sequencer parallel_ci_sequencer.js
  • ensure that no test files fall through the crack between ci nodes due to the allocation logic

More context: !25104 (comment 290010970)

Edited by 🤖 GitLab Bot 🤖