Resolve "Run jest in parallel in CI"
What does this MR do?
- Distribute jest tests across parallel CI nodes.
- Merge coverage report from jest jobs.
Requires !24568 (merged) to be merged first for best effect.
Comparison of code coverage
The coverage with parallel jobs is consistent with the baseline without parallel jobs.
Baseline https://gitlab.com/gitlab-org/gitlab/-/jobs/442280891#L1375:
=============================== Coverage summary ===============================
Statements : 45.3% ( 22222/49058 )
Branches : 38% ( 7540/19841 )
Functions : 45.85% ( 7862/17147 )
Lines : 45.26% ( 21469/47433 )
================================================================================
Test Suites: 934 passed, 934 total
Tests: 1 skipped, 9390 passed, 9391 total
Snapshots: 247 passed, 247 total
Time: 536.782s
Ran all test suites.
Done in 544.35s.
Combined coverage with this MR https://gitlab.com/gitlab-org/gitlab/-/jobs/442316275#L62:
$ yarn node scripts/frontend/merge_coverage_frontend.js
yarn node v1.21.1
=============================== Coverage summary ===============================
Statements : 45.3% ( 22222/49058 )
Branches : 38% ( 7540/19841 )
Functions : 45.85% ( 7862/17147 )
Lines : 45.26% ( 21469/47433 )
================================================================================
Done in 5.03s.
Todo:
-
Consolidate junit
report - not needed as it is taken care by pipeline test report -
Consolidate coverage
report -
Verify coverage -
Update documentation
Closes #201869 (closed)
Edited by Albert Salim