[8.18](backport #6978) Fold triggered pipelines under elastic-agent #7038
+54
−21
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?
In order for the Buildkite PR bot to be able to publish meaningful comments for failures, the pipelines need to be collapsed / uploaded rather than triggered, otherwise we lose the context and the ability to have the comment include specific failures for the failed steps in triggered pipelines.
This commit switches away from triggering to pipeline upload commands to enable this functionality.
Why is it important?
Allows enabling
ELASTIC_PR_COMMENTS_ENABLED: 'true'
only on the parent jobLogs/Screenshots
Before (note the
null
which points to a triggered pipeline):After, with this PR when there are failures:
and when tests pass after retries:
This is an automatic backport of pull request #6978 done by [Mergify](https://mergify.com).