Skip to content
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

Check support for prerelease qualifiers #42314

Closed
pchila opened this issue Jan 15, 2025 · 3 comments
Closed

Check support for prerelease qualifiers #42314

pchila opened this issue Jan 15, 2025 · 3 comments
Assignees
Labels
Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@pchila
Copy link
Member

pchila commented Jan 15, 2025

For 9.0 release Beats need to be packaged using prerelease qualifiers, like:

  • beta
  • rc1, rc2

The goal of this issue is to check that the relative packages can be correctly generated using mage package, specifically

  • File names contain the prerelease qualifiers
  • version command output correctly prints the specified qualifiers
  • Unified release pipelines work for versions with prerelease qualifiers
  • Release candidate can be re-released as final 9.0 version

Notes:

  • These qualifiers will be used in staging, so there should be no overlap with SNAPSHOT DRA flow
  • At the time of writing we can create an alpha1 version (for example in agentbeat) using
 VERSION_QUALIFIER="alpha1" mage -d ./x-pack/agentbeat package
@pchila pchila self-assigned this Jan 15, 2025
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 15, 2025
@pchila pchila added Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Jan 15, 2025
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 15, 2025
@pchila
Copy link
Member Author

pchila commented Jan 15, 2025

Tested packaging agentbeat with VERSION_QUALIFIER="alpha1" mage -d ./x-pack/agentbeat package and the result is consistent with the expectations:

➜  beats git:(main) ✗ tree -L 1 x-pack/agentbeat/build/distributions
x-pack/agentbeat/build/distributions
├── agentbeat-9.0.0-alpha1-darwin-aarch64.tar.gz
├── agentbeat-9.0.0-alpha1-darwin-aarch64.tar.gz.sha512
├── agentbeat-9.0.0-alpha1-darwin-x86_64.tar.gz
├── agentbeat-9.0.0-alpha1-darwin-x86_64.tar.gz.sha512
├── agentbeat-9.0.0-alpha1-linux-arm64.tar.gz
├── agentbeat-9.0.0-alpha1-linux-arm64.tar.gz.sha512
├── agentbeat-9.0.0-alpha1-linux-x86_64
├── agentbeat-9.0.0-alpha1-linux-x86_64.tar.gz
├── agentbeat-9.0.0-alpha1-linux-x86_64.tar.gz.sha512
├── agentbeat-9.0.0-alpha1-windows-x86_64.zip
└── agentbeat-9.0.0-alpha1-windows-x86_64.zip.sha512

version command outputs the version correctly as well

➜  beats git:(main) ✗ x-pack/agentbeat/build/distributions/agentbeat-9.0.0-alpha1-linux-x86_64/agentbeat filebeat version
filebeat version 9.0.0-alpha1 (amd64), libbeat 9.0.0-alpha1 [f6d5accade0a325df0325830f729295178d3d47c built 2025-01-14 17:50:56 +0000 UTC]
➜  beats git:(main) ✗ x-pack/agentbeat/build/distributions/agentbeat-9.0.0-alpha1-linux-x86_64/agentbeat metricbeat version
metricbeat version 9.0.0-alpha1 (amd64), libbeat 9.0.0-alpha1 [f6d5accade0a325df0325830f729295178d3d47c built 2025-01-14 17:50:56 +0000 UTC]

It is also possible to repackage from the same commit as the alpha1 is set and handled via the env var VERSION_QUALIFIER

@pchila pchila closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

2 participants