[CI] Enable Jest selective testing by default on PRs#266326
Merged
Conversation
Add ci:prevent-selective-testing opt-out; remove ci:use-selective-testing. Made-with: Cursor
|
Pinging @elastic/kibana-operations (Team:Operations) |
Contributor
ApprovabilityVerdict: Needs human review This PR changes the default CI behavior from opt-in to opt-out for Jest selective testing on all PR builds. While the logic is straightforward, all changed files are owned by @elastic/kibana-operations and should be reviewed by that team. You can customize Macroscope's approvability policy. Learn more. |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
|
Contributor
|
Starting backport for target branches: 8.19, 9.2, 9.3, 9.4 https://github.com/elastic/kibana/actions/runs/25111280719 |
This was referenced Apr 29, 2026
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
Apr 29, 2026
…266397) # Backport This will backport the following commits from `main` to `9.4`: - [[CI] Enable Jest selective testing by default on PRs (#266326)](#266326) <!--- 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-29T13:19:44Z","message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.5.0"],"title":"[CI] Enable Jest selective testing by default on PRs","number":266326,"url":"https://github.com/elastic/kibana/pull/266326","mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/266326","number":266326,"mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}}]}] BACKPORT--> Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Apr 29, 2026
…266396) # Backport This will backport the following commits from `main` to `9.3`: - [[CI] Enable Jest selective testing by default on PRs (#266326)](#266326) <!--- 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-29T13:19:44Z","message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.5.0"],"title":"[CI] Enable Jest selective testing by default on PRs","number":266326,"url":"https://github.com/elastic/kibana/pull/266326","mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/266326","number":266326,"mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}}]}] BACKPORT--> Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Apr 29, 2026
…#266394) # Backport This will backport the following commits from `main` to `8.19`: - [[CI] Enable Jest selective testing by default on PRs (#266326)](#266326) <!--- 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-29T13:19:44Z","message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.5.0"],"title":"[CI] Enable Jest selective testing by default on PRs","number":266326,"url":"https://github.com/elastic/kibana/pull/266326","mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/266326","number":266326,"mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}}]}] BACKPORT--> Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Apr 29, 2026
…266395) # Backport This will backport the following commits from `main` to `9.2`: - [[CI] Enable Jest selective testing by default on PRs (#266326)](#266326) <!--- 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-29T13:19:44Z","message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.5.0"],"title":"[CI] Enable Jest selective testing by default on PRs","number":266326,"url":"https://github.com/elastic/kibana/pull/266326","mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/266326","number":266326,"mergeCommit":{"message":"[CI] Enable Jest selective testing by default on PRs (#266326)\n\n## Summary\n\nJest unit and integration test groups are filtered to affected packages\non PR builds by default. Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite. The previous\nopt-in label `ci:use-selective-testing` is removed. On-merge and other\nnon-PR pipelines are unchanged (`GITHUB_PR_NUMBER` unset).\n\n> On pull request builds, Jest unit and integration test groups are\nnarrowed to configs under affected packages (see\n`pick_test_group_run_order` in CI stats). Add the GitHub label\n`ci:prevent-selective-testing` to run the full Jest suite instead.\nTouching files listed in `CRITICAL_FILES_JEST_*` in `const.ts` also\nskips filtering for the relevant test type.\n\n\nMade with [Cursor](https://cursor.com)","sha":"f29a9c33c52944a12d6d0ca6cc6dfaf46426795a"}}]}] BACKPORT--> Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
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.
Summary
Followup of: #259137
Jest unit and integration test groups are filtered to affected packages on PR builds by default. Add the GitHub label
ci:prevent-selective-testingto run the full Jest suite. The previous opt-in labelci:use-selective-testingis removed. On-merge and other non-PR pipelines are unchanged (GITHUB_PR_NUMBERunset).Made with Cursor