Repository navigation
[9.4] (backport #15924) [ci] Prevent Agent version leaking when triggering serverless Beats tests - #15973
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.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;DRThis build is failing due to a Beats submodule state mismatch during CI checkout/build, not a serverless test assertion. The immediate fix is to force-sync Remediation
Investigation detailsRoot Cause
Relevant code paths:
Evidence
VerificationNot run locally; analysis is based on Buildkite failure artifacts and repository scripts. Follow-upI checked for matching 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.