[CI] Affected testing for Jest/Jest integration#259137
[CI] Affected testing for Jest/Jest integration#259137delanni merged 15 commits intoelastic:mainfrom
Conversation
…ind the label: ci:use-selective-testing
5e03cb6 to
203f522
Compare
1a9bac1 to
5f4334a
Compare
Ikuni17
left a comment
There was a problem hiding this comment.
Maybe I missed it, but I didn't see a commit testing the selective testing for an affected package. Like disabling the critical files check and adding a dummy change to a package.
Also do the TODO need to be addressed in this PR or what is your plan?
|
Thanks for checking Brad! |
0ec6f3e to
2a00ec7
Compare
e9676c0 to
6c440e9
Compare
|
@Ikuni17 - https://buildkite.com/elastic/kibana-pull-request/builds/420536#019d4931-169b-49e3-8e03-666f82a10eb5 this demonstrates a run for the affected set of this commit (2a00ec7) |
|
Pinging @elastic/kibana-operations (Team:Operations) |
ApprovabilityVerdict: Needs human review The author does not own any of the 10 changed files (all owned by @elastic/kibana-operations), and there is an unresolved review comment suggesting a missing critical file pattern. CI test selection logic changes warrant review by the designated owners. You can customize Macroscope's approvability policy. Learn more. |
|
|
||
| // Changes here skip affected-package filtering for Jest (full run). | ||
| // Keep narrow: global test harness, transforms, CI selection. | ||
| export const CRITICAL_FILES_JEST_UNIT_TESTS = [ |
There was a problem hiding this comment.
Maybe worth adding src/platform/packages/private/kbn-jest-serializers/* also
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
|
Starting backport for target branches: 8.19, 9.2, 9.3 https://github.com/elastic/kibana/actions/runs/23897454301 |
## Summary Split from: elastic#253279 - adopt affected-packages for selective jest/jest-integration - behind the label: `ci:use-selective-testing` (cherry picked from commit 95f453a)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
) # Backport This will backport the following commits from `main` to `9.3`: - [[CI] Affected testing for Jest/Jest integration (#259137)](#259137) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Alex Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2026-04-02T11:07:31Z","message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.4.0","ci:use-selective-testing"],"title":"[CI] Affected testing for Jest/Jest integration","number":259137,"url":"https://github.com/elastic/kibana/pull/259137","mergeCommit":{"message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/259137","number":259137,"mergeCommit":{"message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea"}}]}] BACKPORT--> Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
## Summary Split from: elastic#253279 - adopt affected-packages for selective jest/jest-integration - behind the label: `ci:use-selective-testing` (cherry picked from commit 95f453a) # Conflicts: # .buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts
## Summary Split from: elastic#253279 - adopt affected-packages for selective jest/jest-integration - behind the label: `ci:use-selective-testing` (cherry picked from commit 95f453a) # Conflicts: # .buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…3045) # Backport This will backport the following commits from `main` to `8.19`: - [[CI] Affected testing for Jest/Jest integration (#259137)](#259137) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Alex Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2026-04-02T11:07:31Z","message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.4.0","v9.3.3","ci:use-selective-testing"],"title":"[CI] Affected testing for Jest/Jest integration","number":259137,"url":"https://github.com/elastic/kibana/pull/259137","mergeCommit":{"message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/259137","number":259137,"mergeCommit":{"message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea"}},{"branch":"9.3","label":"v9.3.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/260905","number":260905,"state":"MERGED","mergeCommit":{"sha":"4757faca14bfaed0a9a88023d505b265c7e9fdbd","message":"[9.3] [CI] Affected testing for Jest/Jest integration (#259137) (#260905)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.3`:\n- [[CI] Affected testing for Jest/Jest integration\n(#259137)](https://github.com/elastic/kibana/pull/259137)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Alex Szabo <alex.szabo@elastic.co>"}}]}] BACKPORT-->
) # Backport This will backport the following commits from `main` to `9.2`: - [[CI] Affected testing for Jest/Jest integration (#259137)](#259137) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Alex Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2026-04-02T11:07:31Z","message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.4.0","v9.3.3","ci:use-selective-testing"],"title":"[CI] Affected testing for Jest/Jest integration","number":259137,"url":"https://github.com/elastic/kibana/pull/259137","mergeCommit":{"message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/259137","number":259137,"mergeCommit":{"message":"[CI] Affected testing for Jest/Jest integration (#259137)\n\n## Summary\nSplit from: https://github.com/elastic/kibana/pull/253279\n- adopt affected-packages for selective jest/jest-integration\n- behind the label: `ci:use-selective-testing`","sha":"95f453a517b011eb4b08ac37d63c38fedcf40bea"}},{"branch":"9.3","label":"v9.3.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/260905","number":260905,"state":"MERGED","mergeCommit":{"sha":"4757faca14bfaed0a9a88023d505b265c7e9fdbd","message":"[9.3] [CI] Affected testing for Jest/Jest integration (#259137) (#260905)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.3`:\n- [[CI] Affected testing for Jest/Jest integration\n(#259137)](https://github.com/elastic/kibana/pull/259137)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Alex Szabo <alex.szabo@elastic.co>"}}]}] BACKPORT--> --------- Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
Summary
Split from: #253279
ci:use-selective-testingThis filters Jest Unit tests we're running based on changed files in the PR. We're running tests for all the touched projects plus their downstream, as well as the whole set of tests when some critical files are changed we think should warrant a full test run.