Repository navigation
[9.3] (backport #15924) [ci] Prevent Agent version leaking when triggering serverless Beats tests - #15974
Conversation
This comment has been minimized.
This comment has been minimized.
|
This pull request has not been merged yet. Could you please review and merge it @ebeahan? 🙏 |
…ble 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>
⏳ Build in-progress, with failures
Failed CI StepsHistory
cc @ebeahan |
TL;DR
Remediation
Investigation detailsRoot CauseThe failing step is The log shows only one modified path: the submodule pointer
So this specific failure is not from a direct code/test assertion failure in this PR diff; it is a submodule state mismatch at runtime. Evidence
Verification
Follow-upNo matching open What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
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.This is an automatic backport of pull request #15924 done by Mergify.