Skip to content

[9.5] (backport #15924) [ci] Prevent Agent version leaking when triggering serverless Beats tests - #15972

Merged
swiatekm merged 5 commits into
9.5from
mergify/bp/9.5/pr-15924
Aug 7, 2026
Merged

swiatekm merged 5 commits into
9.5from
mergify/bp/9.5/pr-15924

Conversation

@mergify

@mergify mergify Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

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.


This is an automatic backport of pull request #15924 done by Mergify.

@mergify mergify Bot added the backport label Aug 3, 2026
@mergify
mergify Bot requested review from a team as code owners August 3, 2026 19:24
@mergify
mergify Bot requested review from macdewee and samuelvl and removed request for a team August 3, 2026 19:24
@mergify mergify Bot added the backport label Aug 3, 2026
@mergify mergify Bot assigned ebeahan Aug 3, 2026
ebeahan
ebeahan previously approved these changes Aug 3, 2026
@ebeahan
ebeahan enabled auto-merge (squash) August 3, 2026 19:37
@github-actions

This comment has been minimized.

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>
swiatekm and others added 2 commits August 6, 2026 18:36
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>
@swiatekm
swiatekm requested a review from ebeahan August 6, 2026 16:54
swiatekm
swiatekm previously approved these changes Aug 6, 2026
@swiatekm
swiatekm self-requested a review August 7, 2026 17:48
@swiatekm
swiatekm disabled auto-merge August 7, 2026 17:48
@swiatekm
swiatekm enabled auto-merge (squash) August 7, 2026 17:48
@swiatekm
swiatekm merged commit 21a5cda into 9.5 Aug 7, 2026
20 checks passed
@swiatekm
swiatekm deleted the mergify/bp/9.5/pr-15924 branch August 7, 2026 18:27
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @ebeahan

@swiatekm

swiatekm commented Aug 7, 2026

Copy link
Copy Markdown
Member

@copilot take my commits from this branch and add them to the other backports of the original PR. Then, open a PR against main containing those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants