Skip to content

CI: Fix version-bump.yml workflow#1392

Merged
qmonnet merged 3 commits intomainfrom
pr/qmonnet/fix-version-bump
Mar 25, 2026
Merged

CI: Fix version-bump.yml workflow#1392
qmonnet merged 3 commits intomainfrom
pr/qmonnet/fix-version-bump

Conversation

@qmonnet
Copy link
Member

@qmonnet qmonnet commented Mar 25, 2026

  • ci: Fix bump_minor_version and related workflow
  • ci: Fix email value for GitHub App for bump, version-bump workflows
  • ci: With version-bump.yml workflow, create bump PRs in draft mode

qmonnet added 3 commits March 25, 2026 16:14
Fix the "just bump_minor_version" command: The new build framework uses
tomlq rather than yq.

tomlq vs. yq: I'd like this target to run also outside of the nix-shell
as long as the user has any "yq" version available, but in the end it
would involve too much juggling for the options and binary names. Given
that we need to run "cargo update" as part of the recipe anyway, let's
just use the tool from the Nix environment. This also means we no longer
need the yq_flags variable.

Note: Daniel proposed a fix close to this one in the past, which I
rejected because I thought we could still make it work with yq. That's
not the case, or not without testing for availability of different
yq-related binaries in the justfile, which is not worth it.

Along with the just recipe, we remove the flags when calling the recipe
from the related GitHub workflow.

Fixes: 2a917b5 ("ci: rewrite GitHub workflows for nix-based builds")
Reported-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Quentin Monnet <qmo@qmon.net>
All rumours about the email being copy-pasted from the workflow in
dpdk-sys, where a different GitHub App was set up, are totally
unfounded.

Fixes: a831148 ("ci: Add workflow to automate version bump")
Fixes: bb15bc1 ("ci(bump): Rework cargo upgrades")
Signed-off-by: Quentin Monnet <qmo@qmon.net>
Pull Requests to bump the dataplane version may be sensitive to the
merge order, in particular: it often happens that we want the bump to go
in after another set of Pull Requests in preparation have been merged.
To avoid over-enthusiastic reviewers to just review and click the green
button, create the Pull Requests as draft mode.

This way, it's also less surprising to other contributors when someone
tests the workflow and opens Pull Requests bumping the version number.

Signed-off-by: Quentin Monnet <qmo@qmon.net>
@qmonnet qmonnet added bug Something isn't working ci Continuous Integration labels Mar 25, 2026
@qmonnet
Copy link
Member Author

qmonnet commented Mar 25, 2026

Ran successfully (with no version provided as argument for the dispatch) at https://github.com/githedgehog/dataplane/actions/runs/23552482929/job/68570047454, producing #1393

@qmonnet qmonnet requested a review from Frostman March 25, 2026 16:40
@qmonnet qmonnet marked this pull request as ready for review March 25, 2026 16:40
@qmonnet qmonnet requested a review from a team as a code owner March 25, 2026 16:40
@qmonnet qmonnet requested review from Copilot and daniel-noland and removed request for a team March 25, 2026 16:40
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

This PR fixes the automated version bump workflows by aligning the just bump_minor_version implementation with how CI invokes it, updating bot identity email, and ensuring version bump PRs are created as drafts.

Changes:

  • Update just bump_minor_version to use tomlq directly (no TOML flags passed via just).
  • Update git config user.email in bump-related workflows to the GitHub App bot noreply address.
  • Create version bump PRs in draft mode via peter-evans/create-pull-request.

Reviewed changes

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

File Description
justfile Switch minor-version parsing from yq (with flags) to tomlq for Cargo.toml version extraction.
.github/workflows/version-bump.yml Call the updated just bump_minor_version, update bot email, and create draft PRs.
.github/workflows/bump.yml Update bot email used for dependency bump commits.

@qmonnet qmonnet added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit d84f555 Mar 25, 2026
26 checks passed
@qmonnet qmonnet deleted the pr/qmonnet/fix-version-bump branch March 25, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants