Skip to content

Release Management: create post-release version bump workflow #17060

@yaauie

Description

@yaauie

When releasing Logstash, one of the post-release tasks is to bump the Logstash core version so that subsequent snapshot builds and DRA artifacts include the next version for the branch (e.g., when 8.17.2 was released today, we updated the version on the 8.17 branch to 8.17.3, causing the next snapshot build to be 8.17.3-SNAPSHOT).

We should have a workflow to handle this bit for us.

The task, as paraphrased for the 8.17.2 release example above, is:

# check out a new branch based on our release branch
git checkout origin/8.17
cp Gemfile.template Gemfile
rake version:set[8.17.3]

Notably:

  • the person doing the work of releasing X.Y.Z needs to check out branch X.Y and set the version to X.Y.(Z+1).
  • We want this job to be idempotent (that is: if run multiple times we don't want it to bump the version multiple times).

Therefore, the job should have the version being released as its input. From the version being released, we can derive both the branch name and the version we are bumping to.

Since this is a pre-requisite for kicking off fresh staging and DRA-artifact builds so that they can get the new version, it would be nice to also trigger those.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions