Repository navigation
[8.19] (backport #15924) [ci] Prevent Agent version leaking when triggering serverless Beats tests - #15975
Conversation
TL;DRThe Serverless Beats Tests job failed because the integration runner could not find the expected Filebeat snapshot artifact ( Remediation
Investigation detailsRoot CauseThe failing check is emitted by In this run, the missing files were specifically:
The PR change in Related historical flaky ticket: #4407 (same failure signature, closed as fixed). Evidence
Verification
Follow-up
What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
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 (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>
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @ebeahan |
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.