Repository navigation
[ci] Prevent Agent version leaking when triggering serverless Beats tests - #15924
Merged
Merged
Conversation
💛 Build succeeded, but was flaky
Failed CI Steps
History
cc @ebeahan |
belimawr
approved these changes
Aug 3, 2026
ebeahan
disabled auto-merge
August 3, 2026 19:23
Contributor
|
@Mergifyio backport 9.5 9.4 9.3 8.19 |
Contributor
✅ Backports have been createdDetails
|
This was referenced Aug 3, 2026
swiatekm
added a commit
that referenced
this pull request
Aug 7, 2026
…ering serverless Beats tests (#15972) * Prevent Agent workspace version from leaking into the Beats build (#15924) (cherry picked from commit 10d3a67) * [ci] Clone beats branch matching EA branch for serverless tests The script was always cloning beats main, so the beats build version would diverge from what the integration runner expects on maintenance branches (9.4, 9.5) where beats main has moved ahead. Use the Buildkite-provided branch name directly: the PR base branch when running in PR context, otherwise the current branch. Branch names are kept in sync between elastic-agent and beats. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * [ci] Clone beats branch matching EA branch for serverless tests The script was always cloning beats main, so the beats build version would diverge from what the integration runner expects on maintenance branches (9.4, 9.5) where beats main has moved ahead. Use the Buildkite-provided branch name directly: the PR base branch when running in PR context, otherwise the current branch. Branch names are kept in sync between elastic-agent and beats. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Disable local package metadata for beats serverless tests --------- Co-authored-by: Eric Beahan <eric.beahan@elastic.co> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
swiatekm
added a commit
that referenced
this pull request
Aug 10, 2026
…gering serverless Beats tests (#15975) * Prevent Agent workspace version from leaking into the Beats build (#15924) (cherry picked from commit 10d3a67) * [ci] Clone beats branch matching EA branch for serverless tests; disable local package metadata The script was always cloning beats main, so the beats build version would diverge from what the integration runner expects on maintenance branches (8.19, 9.x) where beats main has moved ahead. Use the Buildkite-provided branch name directly: the PR base branch when running in PR context, otherwise the current branch. Branch names are kept in sync between elastic-agent and beats. Also disable reading from .package-version in these tests to prevent local metadata from leaking into the Beats build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Eric Beahan <eric.beahan@elastic.co> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
swiatekm
added a commit
that referenced
this pull request
Aug 10, 2026
…ering serverless Beats tests (#15974) * Prevent Agent workspace version from leaking into the Beats build (#15924) (cherry picked from commit 10d3a67) * [ci] Clone beats branch matching EA branch for serverless tests; disable local package metadata The script was always cloning beats main, so the beats build version would diverge from what the integration runner expects on maintenance branches (9.3, 9.4, 9.5) where beats main has moved ahead. Use the Buildkite-provided branch name directly: the PR base branch when running in PR context, otherwise the current branch. Branch names are kept in sync between elastic-agent and beats. Also disable reading from .package-version in these tests to prevent local metadata from leaking into the Beats build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Eric Beahan <eric.beahan@elastic.co> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
swiatekm
added a commit
that referenced
this pull request
Aug 10, 2026
…ering serverless Beats tests (#15973) * Prevent Agent workspace version from leaking into the Beats build (#15924) (cherry picked from commit 10d3a67) * [ci] Clone beats branch matching EA branch for serverless tests; disable local package metadata The script was always cloning beats main, so the beats build version would diverge from what the integration runner expects on maintenance branches (9.4, 9.5) where beats main has moved ahead. Use the Buildkite-provided branch name directly: the PR base branch when running in PR context, otherwise the current branch. Branch names are kept in sync between elastic-agent and beats. Also disable reading from .package-version in these tests to prevent local metadata from leaking into the Beats build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Eric Beahan <eric.beahan@elastic.co> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Aug 13, 2026
Merged
Merged
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.
On a version bump PRs like #15426,
version/version.gois changed to the next patch (p) while Beats main is still the previous patch (p- 1 ).Based on the Elastic Agent version,
BEAT_VERSIONsets top. That leaks into the Beatsmage packagecall, producingfilebeat-p-SNAPSHOT, but the runner still expects(p -1)-SNAPSHOTfrom the Beats checkout.