389 Commits
Author SHA1 Message Date
Anthoine 6bf6014a46 Merge pull request #869 from xcp-ng/abs-fix-snapshot-of-false-positives
2 small fixes on snapshot-fixer.py where empty string or local id could be detected as valid snapshots by the script.
2026-11-20 16:05:49 +01:00
Samuel Verschelde 58559ead2a scripts/koji/create_user_target.py: fix setting the user tag permission
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>
2026-11-20 12:09:57 +01:00
Anthoine Bourgeois 982682786c snapshot-fixer.py: tread VM export's local id as empty string
This commit prevent false positive of VM's snapshot-of field.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
2026-11-20 11:29:37 +01:00
Anthoine Bourgeois d850df73d1 snapshot-fixer.py: treat empty string as NULL value
This will avoid false positive snapshot-of issue.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
2026-11-20 11:21:35 +01:00
Vincent Michel c14f8a45a2 [pkg_in_pipe] Don't link the PRs which only contain the build commits
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>
2026-11-16 15:57:40 +01:00
Vincent Michel d76bb58672 Merge pull request #863 from xcp-ng/vml/missing-sources-xapi-xen
[pkg_in_pipe] Add xapi and xen builds to the missing sources
2026-11-16 15:23:00 +01:00
Vincent Michel e8af000f42 [pkg_in_pipe] Add xapi and xen builds to the missing sources
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
2026-11-16 11:53:19 +01:00
Vincent Michel 7deadb71c5 RPM owners: add fakechroot, python3-py and python3-pytest
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
2026-11-16 11:44:10 +01:00
Samuel Verschelde 94d8ad13df scripts/koji: create user tags with the build permission and the parent's arches
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>
2026-11-04 18:53:21 +01:00
Erwan Croze ca99efe3b4 Merge pull request #856 from xcp-ng/ecr/xha_codeowner
Update XHA maintainer in packages.json
2026-11-03 10:38:20 +01:00
Yann Dirson d19af96dc0 Merge pull request #858 from xcp-ng/lrr/OpenSSH9.9
RPM owners: add libcbor & libfido2.
2026-11-02 16:55:31 +01:00
Lucas RAVAGNIER 42fb2f7147 RPM owners: add libcbor & libfido2.
Signed-off-by: Lucas RAVAGNIER <lucas.ravagnier@vates.tech>
2026-10-26 10:37:59 +01:00
Quentin Casasnovas b475b7bb4c RPM owners: add r8125-module-alt.
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>
2026-10-22 14:50:26 +02:00
Erwan Croze 731ef49e9a Update XHA maintainer in packages.json
Storage team is now maintainer of XHA package

Signed-off-by: Erwan Croze <erwan.croze@vates.tech>
2026-10-19 15:35:04 +02:00
Samuel Verschelde 3c5fe02120 Merge pull request #852 from pilere/smr/rpmwatcher-no-centos
rpmwatcher: a new process to get rid of centos 7
2026-10-15 14:29:51 +02:00
Stéphane MERLE 185d5f7b85 rpmwatcher2: address review (dom0 yum settings, extra_installable.txt, images)
Signed-off-by: Stéphane MERLE <stephane.merle@vates.tech>
2026-10-15 10:31:34 +02:00
Laudin Molina Troconis 41198a78cc packages.json: add python-dataclasses
python-dataclasses is a backport for Python 3.6 in XCP-ng 8.3.

Relate-to: XCPNG-3483
Signed-off-by: Laudin Molina Troconis <laudin.molina@vates.tech>
2026-10-15 09:52:01 +02:00
Stéphane MERLE 8dcf121b5e rpmwatcher2: resolve the dependencies with yum in an XCP-ng 8.3 container as per samuel wish
Signed-off-by: Stéphane MERLE <stephane.merle@vates.tech>
2026-10-15 09:24:49 +02:00
Stéphane MERLE 41c987f4cd rpmwatcher2: add autoindex.py, keep the version dates in the root listing
Signed-off-by: Stéphane MERLE <stephane.merle@vates.tech>
2026-10-14 11:47:59 +02:00
Stéphane MERLE ba1a247b03 write directory listings for the S3 website
Signed-off-by: Stéphane MERLE <stephane.merle@vates.tech>
2026-10-14 10:30:28 +02:00
Stéphane MERLE 0d1c3addb9 rpmwatcher2: escape report fields, prune metadata cache, use fedora 44
Signed-off-by: Stéphane MERLE <stephane.merle@vates.tech>
2026-10-14 10:04:15 +02:00
Stéphane MERLE 9153a4f6a2 feat(rpmwatcher): provide a new process for rpmwatcher
Signed-off-by: Stéphane MERLE <stephane.merle@vates.tech>
2026-10-14 10:04:15 +02:00
Gaëtan Lehmann c5a1fc0444 pkg_in_pipe: generate a draft of the release post from the report
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>
2026-10-08 09:47:47 +02:00
Gaëtan Lehmann 3b4e925eee pkg_in_pipe: log the progress, the cache usage and the source problems during the generation (#849)
* 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>
2026-10-08 09:47:25 +02:00
Gaëtan Lehmann e6ecec2c73 pkg_in_pipe: write a machine readable version of the report (#839)
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>
2026-10-02 13:53:25 +02:00
Vincent Michel 6a7cc5ec1d Add missing_sources.toml in the pkg_in_pipe dockerfile
This change was missing from the following PR:
https://github.com/xcp-ng/xcp/pull/847

Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
2026-09-22 16:32:45 +02:00
Vincent Michel 22e1dec174 [pkg_in_pipe] Add a missing sources toml dictionary for koji builds
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>
2026-09-18 14:12:52 +02:00
Vincent Michel 80a2a5b44d [pkg_in_pipe] Try all the koji tagged builds in order until we find a source
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>
2026-09-18 12:58:14 +02:00
Philippe Coval 51a766d5ad s/koji-helper.py: Refactor session to handle local koji conf
Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
2026-09-01 10:32:46 +02:00
Philippe Coval 271aa4a80e s/koji-helper.py: Add type hints to all functions, refactor
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>
2026-09-01 10:32:46 +02:00
Philippe Coval 146780e7e9 s/koji-helper.py: Lookup on several repos (one or more)
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>
2026-09-01 10:32:46 +02:00
Philippe Coval b8d75763fd s/koji-helper.py: Remove unnecessary genai stuff
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>
2026-09-01 10:32:46 +02:00
Philippe Coval e3b502f85c s/koji-helper.py: Add version and release fields to package results
- 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>
2026-09-01 10:32:46 +02:00
Philippe Coval 99be7f19b3 s/koji-helper.py: Add list_update_source_packages function with CLI support
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>
2026-09-01 10:32:46 +02:00
Philippe Coval 35824d82c9 s/koji-helper.py: Add a Python script to list source packages from a 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>
2026-09-01 10:32:46 +02:00
Gaëtan Lehmann da0d6919e3 Remove report.json, it shouldn't have been commited
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-27 11:48:47 +02:00
Gaëtan Lehmann 43a3e12e71 Merge pull request #838 from xcp-ng/gln/pkg-in-pipe-updates-psmx
pkg_in_pipe: keep PRs merged by rebase or squash
2026-08-26 17:31:03 +02:00
Gaëtan Lehmann 26db50c008 pkg_in_pipe: keep PRs merged by rebase or squash
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-26 17:07:13 +02:00
Samuel Verschelde e9941c9b8b Merge pull request #824 from xcp-ng/asv/fix-snapshot-fixer
scripts/snapshot-fixer: Bring xapi back up if it was stopped before running the script
2026-08-20 19:49:26 +02:00
Samuel Verschelde 30df2c8c48 Merge pull request #740 from xcp-ng/gln/srpm-url-source-qxor
import_srpm: allow to pass a url as source file
2026-08-14 12:05:43 +02:00
Gaëtan Lehmann a19a828264 Also move PRs to the new branch
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-14 11:48:19 +02:00
Gaëtan Lehmann e8a51c4c71 Add a script to copy a branch to another branch in all our rpm repositories
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-14 11:48:19 +02:00
Gaëtan Lehmann 81859cdf57 Add XCP-ng 9.0 in the report (#832)
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-06 11:38:39 +02:00
Thierry Escande 6885103dda Merge pull request #834 from xcp-ng/tee/rpm_owners/qlogic-fastlinq-alt_8_42
RPM owners: Rename package qlogic-fastlinq-alt_8_42
2026-08-04 13:27:36 +02:00
Samuel Verschelde e830ce223a Merge pull request #748 from xcp-ng/gln/koji-build-cache-qtkz
Cache koji builds
2026-08-04 12:57:47 +02:00
Thierry Escande 62248cbc66 RPM owners: Rename package qlogic-fastlinq-alt_8_42
The disk creation tool does not support the '.' character in package
name so rename it from 'qlogic-fastlinq-alt_8.42' to
'qlogic-fastlinq-alt_8_42'.

Signed-off-by: Thierry Escande <thierry.escande@vates.tech>
2026-08-04 11:25:54 +02:00
Gaëtan Lehmann 04e0cc01b6 Drop 8.2 from pkg_in_pipe
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-04 10:17:50 +02:00
Gaëtan Lehmann 08078e0f99 Cache koji builds
in order to decrease the load on koji. With what's currently in the pipe, we
decrease the number of koji calls from 65 to 37 with the cache.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-03 16:48:57 +02:00
Gaëtan Lehmann 0c05fd4cd3 Use KOJI and GITHUB object as global variable
in order to simply the cache usage in a next commit

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-08-03 16:48:57 +02:00
Philippe Coval a959284277 packages.json: Relocate libidn2
Sort alphabetically

Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
2026-08-03 15:39:19 +02:00