Skip to content

[ci] Prevent Agent version leaking when triggering serverless Beats tests - #15924

Merged
ebeahan merged 2 commits into
elastic:mainfrom
ebeahan:unset-beats-version
Aug 3, 2026
Merged

ebeahan merged 2 commits into
elastic:mainfrom
ebeahan:unset-beats-version

Conversation

@ebeahan

@ebeahan ebeahan commented Jul 31, 2026

Copy link
Copy Markdown
Member

On a version bump PRs like #15426, version/version.go is changed to the next patch (p) while Beats main is still the previous patch ( p - 1 ).

Based on the Elastic Agent version, BEAT_VERSION sets to p. That leaks into the Beats mage package call, producing filebeat-p-SNAPSHOT, but the runner still expects (p -1)-SNAPSHOT from the Beats checkout.

@ebeahan ebeahan self-assigned this Jul 31, 2026
@ebeahan
ebeahan requested review from a team as code owners July 31, 2026 15:08
@ebeahan
ebeahan requested review from macdewee and samuelvl July 31, 2026 15:08
@ebeahan
ebeahan enabled auto-merge (squash) July 31, 2026 15:09
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

@ebeahan ebeahan added backport-active-all Automated backport with mergify to all the active branches and removed backport-skip labels Aug 3, 2026
@ebeahan
ebeahan disabled auto-merge August 3, 2026 19:23
@ebeahan
ebeahan merged commit 10d3a67 into elastic:main Aug 3, 2026
23 checks passed
@ebeahan
ebeahan deleted the unset-beats-version branch August 3, 2026 19:24
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.5 9.4 9.3 8.19

@mergify

mergify Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants