Skip to content

Initial implementation of rightmost bumps#393

Open
pemensik wants to merge 6 commits into
fedora-infra:mainfrom
InfrastructureServices:main-rightmost-bumps
Open

Initial implementation of rightmost bumps#393
pemensik wants to merge 6 commits into
fedora-infra:mainfrom
InfrastructureServices:main-rightmost-bumps

Conversation

@pemensik

Copy link
Copy Markdown

Adds new magic comments supported in commits:

[bump_rightmost: 3]
[start_rightmost]

This should implement missing z-stream type bumps used mainly in RHEL already released branches fixes.

It is needed to ensure latest branch build is always preferred after upgrade to higher version. In Fedora regular mass rebuilds mitigates the need for something similar. But it could be still used when doing rebase in multiple branches, where only rawhide build should always have highest release.

@pemensik pemensik force-pushed the main-rightmost-bumps branch from 170607e to 80f373a Compare April 10, 2026 13:55
@pemensik

Copy link
Copy Markdown
Author

This is attempt to implement #328

@pemensik pemensik force-pushed the main-rightmost-bumps branch from 80f373a to 8856e4b Compare April 10, 2026 15:49
@pemensik

Copy link
Copy Markdown
Author

Fixed tests on my machine. The only remaining problem is not 100% test coverage.

Additional changes support also bumping to z-stream (minor bump) style by %autorelease -r 1. Very similar to -b X, but also starts following bumps to happen only on right side of release.

@pemensik pemensik force-pushed the main-rightmost-bumps branch from ccb8ebf to cd4286c Compare April 14, 2026 09:47
@pemensik

Copy link
Copy Markdown
Author

@nphilipp would you please have some time to review this attempt? This should fix common problem for centos packagers.

pemensik added 6 commits July 2, 2026 21:16
Adds new magic comments supported in commits:

[bump_rightmost: 3]
[start_rightmost]

This should implement missing z-stream type bumps used mainly in RHEL
already released branches fixes.

It is needed to ensure latest branch build is always preferred after
upgrade to higher version. In Fedora regular mass rebuilds mitigates the
need for something similar. But it could be still used when doing rebase
in multiple branches, where only rawhide build should always have
highest release.

This is attempt to provide user-friendly alternative to manual calls of
rpmdev-bumpspec -r command.

Signed-off-by: Petr Menšík <pemensik@redhat.com>
Generate extra lua code on the right side of release too. Print
rightmost numbers where it belongs, after %{?dist} tags on normal usage.

Adds -r parameter to %autorelease, which increases minor bump base
instead.

Signed-off-by: Petr Menšík <pemensik@redhat.com>
Signed-off-by: Petr Menšík <pemensik@redhat.com>
Make smarter recognition of magic strings. Log unrecognized magic
strings as a warning. When it requires bump value number, say it is
known but wrong type. Report completely unsupported magic strings.

Signed-off-by: Petr Menšík <pemensik@redhat.com>
Implement some magic strings testing. Filter magic strings read from
yaml, create MagicCommentResult directly from yaml.

Signed-off-by: Petr Menšík <pemensik@redhat.com>
Add documentation for new functionality.

Signed-off-by: Petr Menšík <pemensik@redhat.com>
@pemensik pemensik force-pushed the main-rightmost-bumps branch from bc53786 to c43e181 Compare July 2, 2026 19:17
@pemensik

pemensik commented Jul 2, 2026

Copy link
Copy Markdown
Author

Anyone for review?

@sgallagher

Copy link
Copy Markdown
Contributor

I'll try to perform a review next week. I don't have time today and tomorrow is a holiday in the US. Sorry about this; it completely slipped off the radar.

@pemensik

pemensik commented Jul 2, 2026

Copy link
Copy Markdown
Author

okay, does not have to be finished next week, but some comments whether it could work this way would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants