Skip to content

Fix non-incremented release when using test builds#791

Open
glehmann wants to merge 1 commit into
masterfrom
gln/fix-koji-release-number-pyvm
Open

Fix non-incremented release when using test builds#791
glehmann wants to merge 1 commit into
masterfrom
gln/fix-koji-release-number-pyvm

Conversation

@glehmann

Copy link
Copy Markdown
Member

The koji format seems to have changed and don't include the .xcpng8.3 at the end anymore.
The fix is still compabtible with the previous format, in case it depends on the client version, so it should continue to work for all the devs.

@glehmann glehmann requested review from a team and ydirson March 12, 2026 10:34

@ydirson ydirson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not that the format has changed, but xcp-ng-release needs to be built for that logic to trigger, so there are 2 packages that do not obey this logic (release, and its build-dependency branding-xcp-ng). Commit message should be adjusted.

Comment thread scripts/koji/koji_build.py Outdated
Comment on lines +152 to +154
base_nvr_re = (
re.escape(re.sub('%{.+}', "@@@", base_nvr)).replace('@@@', '.*')
+ r'(\d+)'
+ re.escape(f'.xcpng{xcpng_version(target)}')
+ r'(\d+)(' + re.escape(f'.xcpng{xcpng_version(target)}') + '| )'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

that expression starts to be quite complex to read, it would be useful to insert some comments to guide the reader

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've simplified the regex and updated the comment

Some packages don't include the .xcpng8.3 at the end.
This is adjusting the regex used to match with or without that suffix.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
@glehmann glehmann force-pushed the gln/fix-koji-release-number-pyvm branch from b413a46 to 7d780fe Compare March 12, 2026 17:30
@glehmann glehmann requested a review from ydirson March 12, 2026 17:31
@stormi

stormi commented Jun 22, 2026

Copy link
Copy Markdown
Member

Ping @ydirson, review overdue on this one.

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.

3 participants