61 Commits
Author SHA1 Message Date
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 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
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
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 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
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
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
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
Gaëtan Lehmann 74d6cc8b84 Add linstor-testing in the observed tags
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-07-31 11:02:25 +02:00
Gaëtan Lehmann e6319535ea Fix repo parsing for unusual repository name
namely xcp-ng-rpms/qlogic-fastlinq-alt_8.42

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-07-30 15:02:05 +02:00
Gaëtan Lehmann b882e04423 Show the milestones (from the associated issues) for each build
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-06-17 21:00:11 +02:00
Gaëtan Lehmann 120b7ecb08 Bump the PR cache number to trigger a re-cache
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-06-17 19:43:21 +02:00
Gaëtan Lehmann cea0ff6bf4 Fix PR appearing in some builds while they don't contain any commit of that build
Github API returns some PRs that are not related to the commit, so we check if the
PR actually contains the commit that we've just used to get a list of PR containing
that commit

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-06-17 19:43:21 +02:00
Gaëtan Lehmann 75f344057b Fix missing plane cards
The script was not using the pagination and missed the oldest cards

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2026-03-23 10:12:31 +01:00
Gaëtan Lehmann 9945fe7c7c Merge pull request #727 from xcp-ng/gln/pkg-missing-maintainer-qsvk 2025-07-01 17:29:41 +02:00
Gaëtan Lehmann 0ada6cd12c use generator comprehension instead of a list comprehension
where we don't need an actual list

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-07-01 17:26:35 +02:00
Gaëtan Lehmann 2116c4625c Add an option to refresh the cache
it helps debugging the code which produces a cached result

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-07-01 17:24:32 +02:00
Samuel Verschelde b3bfeb6cab Merge pull request #719 from xcp-ng/gln/sort-build-tag-timestamp-onvy
Sort the builds based on the tagging timestamp
2025-06-27 17:33:42 +02:00
Samuel Verschelde 8d3edb468e Merge pull request #718 from xcp-ng/gln/pkg-reduce-debug-klol
Add options to reduce the number of packages to process
2025-06-27 17:33:09 +02:00
Gaëtan Lehmann 192c346511 Fix missing maintainer for packages without repository
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-06-18 09:39:54 +02:00
Gaëtan Lehmann ae4a15965c Sort the build based on the tagging timestamp
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-06-17 15:59:43 +02:00
Gaëtan Lehmann a48a1f1e9a Add options to reduce the number of packages to process
and ease the debugging

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-06-17 15:59:43 +02:00
Gaëtan Lehmann 9e577ecfcb Don't match the repository name in the merge commit
some PR may come from forked repositories

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-06-17 15:59:43 +02:00
Gaëtan Lehmann 9d1eb15112 Merge pull request #721 from xcp-ng/gln/tag-name-anchors-pprt 2025-06-06 14:29:31 +02:00
Gaëtan Lehmann 40537fd2c3 Add anchors on the tag names
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-06-04 22:41:35 +02:00
Gaëtan Lehmann 52b17235fa Issues that explicitly mention the build in italic
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-06-04 22:41:35 +02:00
Gaëtan Lehmann 1af4291236 Display generation time
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-22 22:45:51 +02:00
Samuel Verschelde 0bd7526b9f Merge pull request #717 from xcp-ng/gln/previous-build-search-ptnw
also search for the previous build in the current tag
2025-05-22 13:23:10 +02:00
Gaëtan Lehmann 8950c5e200 also search for the previous build in the current tag
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-22 13:10:16 +02:00
Gaëtan Lehmann 16b713c86a Avoid the blank page during the report generation
by writing the whole report at once in the output file.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-22 11:09:49 +02:00
Samuel Verschelde 82928ea080 Merge pull request #712 from xcp-ng/gln/tooltip-warning-signs-xloy
add a tooltip on the warning signs
2025-05-22 10:34:59 +02:00
Gaëtan Lehmann a8de3f1427 set cache retention to 24h
we need the report generator to run fast most of the time, but we
don't want to keep forever some non valid content that may have
been inserted in the cache

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-21 09:49:18 +02:00
Gaëtan Lehmann 1f131a5034 add a tooltip on the warning signs
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-20 13:07:38 +02:00
Gaëtan Lehmann 802722d672 Fix too many PRs listed when a more recent build exist in a tag with higher priority
that can happen when a security fix is fasttracked

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-19 17:18:11 +02:00
Gaëtan Lehmann 65952c8ea5 alert on problems with warning signs
* when the build is not found in any of the plane card
* when the PR is not found in any of the plane card
* when the package has not maintainer

The PR column now appears before the Cards column to better reflect
how to data is acquired (the build first, then the PRs related to that
build, then the cards linking to the build or any of the PRs).
This way the warning signs are more logically grouped.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-12 17:45:32 +02:00
Gaëtan Lehmann 014b427390 more space for the build name
and truncate the build name if it's still too long

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-12 15:59:18 +02:00
Gaëtan Lehmann 07c785f5ac Merge pull request #706 from xcp-ng/gln/less-vertical-space-xvnl 2025-05-12 14:27:31 +02:00
Gaëtan Lehmann 5ea993294d Merge pull request #707 from xcp-ng/gln/report-missing-cards-oqsr 2025-05-12 14:01:27 +02:00
Gaëtan Lehmann 3f12a83b87 use less vertical space
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-12 13:43:10 +02:00
Gaëtan Lehmann 6078cf732f Merge pull request #704 from xcp-ng/gln/pr-association-from-description-rkuq 2025-05-12 11:49:26 +02:00
Gaëtan Lehmann 16acee8c54 keep generating the report when plane is not accessible
and print a warning about the missing cards

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-12 11:37:34 +02:00
Gaëtan Lehmann 34e6c66889 give more space to the pull requests column
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-12 10:22:50 +02:00
Gaëtan Lehmann afdf0cbfd7 workaround non-reported PRs on some commits
github is not reporting the PR associated to some commits, so
we get the info from the merge description

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
2025-05-12 10:22:38 +02:00