Repository navigation
Add koji-helper.py: a Python script to list source packages from a Koji tag and updates - #835
Merged
Merged
Conversation
rzr
force-pushed
the
pcoval/scripts/koji/review/master
branch
2 times, most recently
from
August 6, 2026 12:40
6562692 to
1ad4102
Compare
rzr
marked this pull request as draft
August 6, 2026 13:53
rzr
force-pushed
the
pcoval/scripts/koji/review/master
branch
2 times, most recently
from
August 6, 2026 15:16
96e6b54 to
632b933
Compare
rzr
marked this pull request as ready for review
August 6, 2026 15:35
glehmann
reviewed
Aug 11, 2026
rzr
force-pushed
the
pcoval/scripts/koji/review/master
branch
3 times, most recently
from
August 12, 2026 15:46
8cea328 to
b8f18d5
Compare
rzr
force-pushed
the
pcoval/scripts/koji/review/master
branch
from
August 14, 2026 16:21
b8f18d5 to
019e512
Compare
glehmann
approved these changes
Sep 1, 2026
vxgmichel
approved these changes
Sep 1, 2026
vxgmichel
left a comment
Contributor
There was a problem hiding this comment.
In the PR description you mentioned this sed:
[...] | sed -e 's|\([^:]*\)\(.*\)|* `\1`\2|g' -e 's|UNKNOWN -> ||g'
Shouldn't this formatting be part of script instead?
LGTM otherwise 👍
…Koji tag. Features: - Uses python-koji library for Koji CLI API access - Supports SSL verification toggle and debug mode - Configurable server and web URLs Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
…upport Adds: - list_update_source_packages() function to find updated packages between tags - Reuse list_source_packages() for both tag lookups - list-update CLI command with old_nvr -> new_nvr output format Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
- Add version and release to list_source_packages results - Update list-update output to show version-release format - Include base_version and base_release for comparison Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
This script is used to generated versions updates:
uv run koji-helper.py --no-verify-ssl list-update v8.3-ci v8.3-updates \
| sed -e 's|\([^:]*\)\(.*\)|* \1\2|g'
It produces this kind of output:
* `xen`: 4.17.6-9.3.1.xcpng8.3 -> 4.17.6-12.2.xcpng8.3
Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
Example:
uv run koji-helper.py --no-verify-ssl list-update v8.3-ci \
v8.3-testing v8.3-candidates v8.3-updates v8.3-base \
| sed -e 's|UNKNOWN -> ||g'
Output:
perl-Archive-Tar: 1.92-3.el7
zlib: 1.2.7-17.el7 -> 1.2.7-17.1.xcpng8.3
Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
Introduce PackageInfo TypedDict for all package data structures Replace all dict[str, dict[str, Any]] with dict[str, PackageInfo] and use PackageInfo | None for base_version throughout the file. Introduce Packages type alias for dict[str, PackageInfo] Replace all dict[str, PackageInfo] occurrences with the new Packages type alias for shorter, cleaner annotations. Fix flake8 E501 line-too-long errors - Split long print() call across multiple lines - Split long lines.append() call across multiple lines - Split do_list_update() def signature across two lines Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
rzr
force-pushed
the
pcoval/scripts/koji/review/master
branch
from
September 1, 2026 08:33
019e512 to
51a766d
Compare
Contributor
Author
|
Ok let's merge, the reformatting can be done in later PR if there is a need for. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This script is used to generated versions updates:
It produces this kind of output (sed format to markdown):
amd-microcode: 20251203-1.1.xcpng8.3 -> 20260519-1.1.xcpng8.3perl-Archive-Tar: 1.92-3.el7