[8.14](backport #4906) [CI] Monorepo diff plugin for integration tests #4922
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.
What does this PR do?
Use monorepo diff plugin to run integration tests for pull requests and branches.
The plugin specifies a list of watched paths for pull requests. If a PR modifies files under a path from the list - integration tests will be executed.
The main pipeline triggers
elastic-agent-extended-testing
if all conditions are met:skip-it
label is not setWhen a PR is merged to main or a release branch the integration tests will be triggered in any case
That's how it looks now:
Why is it important?
The previous approach wasn't flexible enough and the separate integration testing pipeline didn't allow to run integration tests conditionally due to required checks limitation.
Important: if we add
skip-it
label - the PR will be mergeable without running integration tests.Checklist
./changelog/fragments
using the changelog toolAdditional checks
GITHUB_PULL_REQUEST_DRAFT
env variable to the build)/test
comment must trigger unit and integration tests also for draft PRsskip-it
must not trigger integration testsDisruptive User Impact
How to test this PR locally
Related issues
Questions to ask yourself
This is an automatic backport of pull request #4906 done by [Mergify](https://mergify.com).