Forgive because I sinned. I had not tested the previous change.
Fortunately, I was the first user of the modified version, and found out
the hard way that --perm is not a supported option. It was an
hallucinated one.
Instead, we now set the permission with koji edit-tag.
And I've tested it, this time!
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
For a commit which is not in the default branch, github also returns
the open PRs containing it. A PR based on the 8.3 branch and targeting
master, like the 9.0 support one in xcp-python-libs, was then linked to
the 8.3 builds, and checking that the commit is in the PR commits
couldn't filter it out.
Only keep the PRs whose head or merge commit is in the build commit
range: the PRs merged in the range, or the ones the build was made from.
This also saves fetching the commits of each PR.
Also cache the PR found from the merge commit message, which was lost
on the next run because an empty list was cached.
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
User tags were created without a permission, so any Koji account could
tag builds into them, and with the x86_64 arch whatever the parent: three
9.0 user tags got x86_64 instead of x86_64_v2. Set --perm=build and take
the arches from the parent tag.
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
This allows us to provide a more recent realtek 8125 driver which dropped
support for 5G devices but which does contain interesting fixes for our
users of 2.5G devices.
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@vates.tech>
Add release_post.py, which writes the "What changed" and "Versions"
sections of the XCP-ng release post from the json report, with the
change descriptions for the users taken from the related pull requests.
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
* Fix plane connection error blocking the script execution
It's meant to generate a message in the report, not block the report
generation
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
* pkg_in_pipe: log the progress, the cache usage and the source problems during the generation
Add a --debug option and log the koji tag and the build being processed, whether
values come from the cache or are fetched again, and warn when the plane tickets
or github can't be reached, using the same logger setup as gen-dnf-proxy.py.
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
---------
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
The report is written as a json file that other scripts can consume,
e.g. to generate the release post or to move the plane cards of the
builds to another state.
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
It might happen that the previous tag build for a package does not have
its source field filled in with the corresponding git commit (this
typically happens for security updates that did not go through the
standard release procedure). In order to avoid reporting extra PRs and
plane cards, those missing sources can now be listed in the
`missing_sources.toml` dictionary.
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
It might happen that the previous tag build for a package does not have
its source field filled in with the corresponding git commit (this
typically happens for security updates that did not go through the
standard release procedure). By trying again with the build before
it until we find a source, we limit the amount of PRs and Plane cards
that will be included in the reports (if no source is provided by
`find_previous_build_commit`, all the PRs and cards are listed).
Signed-off-by: Vincent Michel <vincent.michel@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>
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>
- 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>
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>
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>