Skip to content

[9.2] [CI] Affected testing for Jest/Jest integration (#259137)#263005

Merged
delanni merged 4 commits intoelastic:9.2from
delanni:backport/9.2/pr-259137
Apr 16, 2026
Merged

[9.2] [CI] Affected testing for Jest/Jest integration (#259137)#263005
delanni merged 4 commits intoelastic:9.2from
delanni:backport/9.2/pr-259137

Conversation

@delanni
Copy link
Copy Markdown
Member

@delanni delanni commented Apr 14, 2026

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

## 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
@delanni delanni requested a review from kibanamachine as a code owner April 14, 2026 10:13
@delanni delanni added the backport This PR is a backport of another PR label Apr 14, 2026
@delanni delanni enabled auto-merge (squash) April 14, 2026 10:13
@dmlemeshko
Copy link
Copy Markdown
Contributor

dmlemeshko commented Apr 14, 2026

This backport needs #263133 to be merged first

@delanni
Copy link
Copy Markdown
Member Author

delanni commented Apr 15, 2026

@dmlemeshko - I might have mis-merged the PR. I'll clean it up manually.

I noticed the feature for the filtering of empty jest tests have been missing, but it's because the parallelization PR (the one that introduced the issue in the first place) was missing. So we can skip the whole feature on these branches. I noticed this properly on the 8.19 backport, but I apparently added some unnecessary parts of the mentioned PR in this merge.

@delanni delanni disabled auto-merge April 15, 2026 14:07
@delanni delanni requested a review from a team April 15, 2026 14:09
@delanni
Copy link
Copy Markdown
Member Author

delanni commented Apr 15, 2026

@elastic/kibana-operations - please check this manual backport

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

touchedCriticalFiles,
CRITICAL_FILES_JEST_INTEGRATION_TESTS,
} from '../affected-packages';
import { collectEnvFromLabels, expandAgentQueue } from '#pipeline-utils';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't getRequiredEnv be imported from '#pipeline-utils' as well?

import { collectEnvFromLabels, expandAgentQueue, getRequiredEnv } from '#pipeline-utils';

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it now, it's a reasonable change, but it wasn't port of the original change: #259137. Let's hope it won't cause conflict on the long run

@delanni delanni merged commit 408c2bd into elastic:9.2 Apr 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants