-
Notifications
You must be signed in to change notification settings - Fork 198
[9.0](backport #8736) ci: pin elastic-agent version #8750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* ci: pin elastic-agent version * ci: override BEAT_VERSION * ci: fix mage cloud:load and cloud:push (cherry picked from commit 5c5b174) # Conflicts: # .buildkite/bk.integration-fips.pipeline.yml # .buildkite/scripts/buildkite-integration-tests.sh # magefile.go
|
Cherry-pick of 5c5b174 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
💚 Build Succeeded
History
|





What does this PR do?
This PR temporarily pins
AGENT_VERSIONandBEAT_VERSION(probably for historical reasons we need both, ty for theBEAT_VERSIONhint @pchila ) to9.1.0-SNAPSHOTin CI pipelines. This is an effort to mitigate breakages caused by the recent version bump to 9.2.0 which point to unavailable snapshot artifacts for9.2.0-SNAPSHOTin the unified release.In particular, this patch:
AGENT_VERSION,AGENT_PACKAGE_VERSION, andBEAT_VERSIONacross all affected pipelines.upgrade_broken_package_test.gosince it fails due to the version mismatch until the pinning is removed.version.goin Bash and PowerShell scripts to only run when theAGENT_VERSIONis not explicitly set.cloud:pushandcloud:loadmage targets to respect the pinnedAGENT_VERSION, replacing previously hardcoded fallback toversion.go.Why is it important?
Pinning the version ensures a consistent and known state for the CI runs until the 9.2.0 snapshot artifacts are fully available via DRA and unified stack release.
In addition, there's another issue introduced by #8352, which pins the ESS stack version used in CI to the latest stable version. This means that even if the 9.2.0 DRA snapshot was published, the CI would still be failing due to version incompatibility between the provisioned ESS stack and the
elastic-agentbinary under test, until the pinned ESS version point to a 9.2.0 stack.Also, the
cloud:pushandcloud:loadmage targets - introduced by #8035 - did not originally respect version overrides and required additional code changes to support environment-based overrides, similar to the rest of the codebase.Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
None expected. These changes only affect CI behavior and not end-user installations or interactions.
How to test this PR locally
This changes regard only CI pipelines
Related issues
N/A
This is an automatic backport of pull request #8736 done by [Mergify](https://mergify.com).