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

Make the update version automation run on schedule for all release branches #5897

Open
rdner opened this issue Oct 31, 2024 · 3 comments
Open
Assignees
Labels
ci enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Testing

Comments

@rdner
Copy link
Member

rdner commented Oct 31, 2024

Describe the enhancement:
Currently, the "update versions" automation runs on a daily schedule:

https://github.com/elastic/elastic-agent/blob/0cdfef580e28e0488ae2bfa9e1372e083e3712c0/.github/workflows/bump-agent-versions.yml#L7C14-L7C23

Github allows to set a schedule only for the main branch. This means we have to manually run this automation for the rest of the release branches.

We should modify the script on main so it checks out all active release branches and runs the version updates for every branch creating corresponding PRs.

Describe a specific use case for the enhancement or feature:

Without this maintenance, the CI would start failing on release branches at some point and we would have to spend time on maintaining it manually.

What is the definition of done?

  1. We have a daily Github workflow that runs version updates for each active release branch
  2. We should have a way to configure what active release branches are, so we don't run this automation for branches we no longer release from.
@rdner rdner added ci enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Testing labels Oct 31, 2024
@elasticmachine
Copy link
Contributor

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

@v1v
Copy link
Member

v1v commented Nov 4, 2024

  • We have a daily Github workflow that runs version updates for each active release branch
  • We should have a way to configure what active release branches are, so we don't run this automation for branches we no longer release from.

There is already an implementation you can use for GitHub actions:

Or directly use https://storage.googleapis.com/artifacts-api/snapshots/branches.json - if you prefer or use Buildkite or something else.


NOTE: Only for Elastic employees:

There are a couple of backstage entries that explain those 'API' endpoints:

Let me know if you need further details

@rdner
Copy link
Member Author

rdner commented Nov 4, 2024

Thank you, @v1v !
I'll try it out and will get back to you if I have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Testing
Projects
None yet
Development

No branches or pull requests

3 participants