Skip to content

[9.3] Extend selective testing with implicit consumers (#268256)#268380

Merged
kibanamachine merged 1 commit into
elastic:9.3from
kibanamachine:backport/9.3/pr-268256
May 8, 2026
Merged

[9.3] Extend selective testing with implicit consumers (#268256)#268380
kibanamachine merged 1 commit into
elastic:9.3from
kibanamachine:backport/9.3/pr-268256

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

## Summary

Some plugins use registries to inject functionality. Both our strategies
for detecting affected modules cannot discover it, because they rely on
static dependencies. We need a better way to handle it.

While we discuss a general solution, this PR serves as a quick fix that
validates potential implicit consumers on top of computed affected
packages and extends "affected modules" if code changes match any of
these patterns:

```
      '**/plugins/**/public/embeddables/**/*.{ts,tsx}',
      '**/plugins/**/public/embeddable/**/*.{ts,tsx}',
      '**/plugins/**/public/react_embeddable/**/*.{ts,tsx}',
      '**/plugins/**/public/apps/embeddables/**/*.{ts,tsx}',
      '**/plugins/**/public/ui_actions/**/*.{ts,tsx}',
      '**/plugins/**/public/trigger_actions/**/*.{ts,tsx}',
      '**/plugins/**/public/**/actions/register*.{ts,tsx}',
```

Example:

Changing
`x-pack/platform/plugins/shared/ml/public/embeddables/anomaly_charts/anomaly_charts_embeddable_factory.tsx`
should trigger Scout tests in `dashboard`, `lens`, `canvas` and
`embeddable` plugins

<img width="1954" height="279" alt="Screenshot 2026-05-07 at 19 10 42"
src="https://github.com/user-attachments/assets/6c0b4163-481b-4f34-84b2-290ab3091d96"
/>

(cherry picked from commit 86477a0)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label May 8, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) May 8, 2026 10:15
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @dmlemeshko

@kibanamachine kibanamachine merged commit 479dc3a into elastic:9.3 May 8, 2026
30 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.

2 participants