[9.2] [CI] Filter empty jest tests before grouping (#242440)#263133
Closed
dmlemeshko wants to merge 1 commit into
Closed
[9.2] [CI] Filter empty jest tests before grouping (#242440)#263133dmlemeshko wants to merge 1 commit into
dmlemeshko wants to merge 1 commit into
Conversation
## Summary It seems the jest unit test grouping through `ci-stats` is broken. It's probably because we no longer run and report empty test configs (after elastic#236549 we skip empty configs), thus CI stats will no longer be able to have an accurate guess as to how long they will take. Calculating with the default guessed config runtimes results in weird buckets. We went from ~23 jest unit test groups to ~53 (again, probably because the empty configs, that would run in a few seconds are counted as if they take a few minutes + overhead). This PR updates the `pick_test_group_run_order` logic, such that we no longer ask grouping for the configs that don't contain any test files to run. The result reset the jest unit parallel group count back to 23. For this, I'm using jest's internal utilities to search for test files, and had to bootstrap the step, so that the resolution doesn't break. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 4889045) # Conflicts: # .buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts # .buildkite/pipeline-utils/scout/index.ts # .buildkite/pipeline-utils/scout/pick_scout_test_group_run_order.ts # .buildkite/pipelines/fips/fips_pipeline.ts # .buildkite/scripts/steps/test/pick_test_group_run_order.sh # src/platform/packages/shared/kbn-test-saml-auth/jest.config.js
Contributor
💔 Build Failed
Failed CI StepsHistory |
auto-merge was automatically disabled
April 15, 2026 14:22
Pull request was closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.2:Questions ?
Please refer to the Backport tool documentation