Skip to content

Add workflow to bump dataplane version#1348

Merged
qmonnet merged 2 commits intomainfrom
pr/qmonnet/auto-bump
Mar 17, 2026
Merged

Add workflow to bump dataplane version#1348
qmonnet merged 2 commits intomainfrom
pr/qmonnet/auto-bump

Conversation

@qmonnet
Copy link
Member

@qmonnet qmonnet commented Mar 16, 2026

This new workflow runs only on manual dispatch. The objective is to provide a way for contributors who don't have a Rust and compile environment set up to simply bump the version in the Cargo.toml file.

@qmonnet qmonnet self-assigned this Mar 16, 2026
@qmonnet qmonnet added the ci Continuous Integration label Mar 16, 2026
@qmonnet qmonnet force-pushed the pr/qmonnet/auto-bump branch 7 times, most recently from 84cba9f to 4ea5c0c Compare March 17, 2026 15:56
We had "just bump_minor_version" to automatically bump the minor version
of the project in the Cargo.toml file; add a new just recipe to update
the version to any specified value, "just bump_version <version>" (and
make the existing recipe rely on it to avoid duplication). The objective
is to have a more flexible command to bump the version if, for example,
we want to tag a patch version.

Additionally, accept an optional yq_flags argument for "just
bump_minor_version". This is because not all versions of yq work the
same, and some need to be told explicitly that we feed them TOML as
input.

Signed-off-by: Quentin Monnet <qmo@qmon.net>
@qmonnet qmonnet force-pushed the pr/qmonnet/auto-bump branch 2 times, most recently from 7e238ee to 042c946 Compare March 17, 2026 17:32
@qmonnet qmonnet requested a review from Fredi-raspall March 17, 2026 17:33
@qmonnet qmonnet marked this pull request as ready for review March 17, 2026 17:33
@qmonnet qmonnet requested a review from a team as a code owner March 17, 2026 17:33
@qmonnet qmonnet requested review from Frostman and Copilot and removed request for Fredi-raspall March 17, 2026 17:33
@qmonnet
Copy link
Member Author

qmonnet commented Mar 17, 2026

@Frostman This is so that you, or someone else, can easily open a PR to bump the version in dataplane if you need to. Not that it should be you doing it, it's more in case you need it at some point (and should also make it faster for me to do it). The workflow bumps the minor version number by default, or uses the number passed as a dispatch argument.

@qmonnet
Copy link
Member Author

qmonnet commented Mar 17, 2026

Tested with #1353 #1354

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a manually triggered GitHub Actions workflow to bump the repository’s workspace version in Cargo.toml, intended to let contributors update the dataplane version without setting up a local Rust build environment.

Changes:

  • Refactors just bump_minor_version and introduces just bump_version <x.y.z> for updating the workspace version.
  • Adds a workflow_dispatch-only workflow that bumps the version and opens a PR with the result.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
justfile Adds a parameterized version bump recipe and refactors minor bump to call it.
.github/workflows/version-bump.yml New manual workflow to bump Cargo workspace version and open a PR.

You can also share your feedback on Copilot code review. Take the survey.

@qmonnet qmonnet marked this pull request as draft March 17, 2026 18:00
@qmonnet qmonnet force-pushed the pr/qmonnet/auto-bump branch 5 times, most recently from a48f07c to bbbd163 Compare March 17, 2026 19:14
@qmonnet qmonnet marked this pull request as ready for review March 17, 2026 19:15
@qmonnet qmonnet requested a review from Copilot March 17, 2026 19:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a manually-triggered GitHub Actions workflow to bump the workspace version in Cargo.toml (and update the workspace lockfile), so maintainers/contributors can generate a version-bump PR without setting up the local build tooling.

Changes:

  • Refactors just bump_minor_version to delegate to a new just bump_version <x.y.z> recipe.
  • Adds .github/workflows/version-bump.yml (workflow_dispatch) to bump the version and open a PR using a GitHub App token.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
justfile Adds a parameterized bump_version recipe and updates bump_minor_version to reuse it.
.github/workflows/version-bump.yml New manually-dispatched workflow that bumps Cargo workspace version, commits, and opens a PR.

You can also share your feedback on Copilot code review. Take the survey.

This new workflow runs only on manual dispatch. The objective is to
provide a way for contributors who don't have a Rust and compile
environment set up to simply bump the version in the Cargo.toml file.

Signed-off-by: Quentin Monnet <qmo@qmon.net>
@qmonnet qmonnet force-pushed the pr/qmonnet/auto-bump branch from bbbd163 to f70df64 Compare March 17, 2026 19:23
@qmonnet qmonnet enabled auto-merge March 17, 2026 19:25
@qmonnet qmonnet disabled auto-merge March 17, 2026 20:00
@qmonnet
Copy link
Member Author

qmonnet commented Mar 17, 2026

New workflow that doesn't touch anything interesting, only works on manual dispatches, and doesn't introduce anything that looks sensitive (that would differ from existing workflows) as far as I can tell. I'll go ahead and merge it to test it to cut a new release for dataplane.

@qmonnet qmonnet merged commit a831148 into main Mar 17, 2026
21 checks passed
@qmonnet qmonnet deleted the pr/qmonnet/auto-bump branch March 17, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants