Skip to content

pkg_in_pipe: generate a draft of the release post from the report - #841

Closed
glehmann wants to merge 2 commits into
gln/pkg-in-pipe-logging-debug-zvvkfrom
gln/release-post-generator-yykx
Closed

glehmann wants to merge 2 commits into
gln/pkg-in-pipe-logging-debug-zvvkfrom
gln/release-post-generator-yykx

Conversation

@glehmann

@glehmann glehmann commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

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

This PR is part of a tree containing 4 PRs:

  1. master
  2. pkg_in_pipe: write a machine readable version of the report #839 → master
  3. pkg_in_pipe: log the progress, the cache usage and the source problems during the generation #849 → pkg_in_pipe: write a machine readable version of the report #839
  4. pkg_in_pipe: move the plane cards of the builds of a tag to a given state #840 → pkg_in_pipe: log the progress, the cache usage and the source problems during the generation #849
  5. "pkg_in_pipe: generate a draft of the release post from the report" (this PR) → pkg_in_pipe: log the progress, the cache usage and the source problems during the generation #849

@gduperrey gduperrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it mandatory to run the scripts in a Docker container?
Can't we just run them directly on a machine?

@gduperrey
gduperrey requested a review from a team August 31, 2026 15:17
@glehmann

glehmann commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

Is it mandatory to run the scripts in a Docker container?
Can't we just run them directly on a machine?

No docker required, it runs fine locally

@glehmann
glehmann force-pushed the gln/release-post-generator-yykx branch from 4e1e683 to d7b84ba Compare September 29, 2026 09:15
@glehmann
glehmann force-pushed the gln/json-report-output-onkp branch from 1d6fe54 to 3d76ca1 Compare September 29, 2026 09:15
@glehmann
glehmann force-pushed the gln/release-post-generator-yykx branch from d7b84ba to e32cf4a Compare September 29, 2026 09:48
@glehmann
glehmann force-pushed the gln/json-report-output-onkp branch from 3d76ca1 to 8b08ba1 Compare September 29, 2026 09:48

@vxgmichel vxgmichel 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.

A file to delete and a minor comment, LGTM otherwise 👍

Comment thread scripts/pkg_in_pipe/pkg_in_pipe.py
Comment thread scripts/pkg_in_pipe/__pycache__/pkg_in_pipe.cpython-313.pyc
@glehmann
glehmann changed the base branch from gln/json-report-output-onkp to gln/pkg-in-pipe-logging-debug-zvvk September 29, 2026 15:20
@glehmann
glehmann force-pushed the gln/release-post-generator-yykx branch from e32cf4a to be34fcc Compare September 29, 2026 15:23
@glehmann
glehmann force-pushed the gln/pkg-in-pipe-logging-debug-zvvk branch from cfdf094 to b215c66 Compare September 29, 2026 15:23
@glehmann
glehmann force-pushed the gln/release-post-generator-yykx branch 2 times, most recently from be34fcc to 92610b7 Compare September 29, 2026 15:29
@glehmann
glehmann force-pushed the gln/pkg-in-pipe-logging-debug-zvvk branch 2 times, most recently from b215c66 to e193d96 Compare September 29, 2026 15:29
@glehmann
glehmann force-pushed the gln/release-post-generator-yykx branch from 92610b7 to 76c9fbc Compare September 29, 2026 19:21
@glehmann
glehmann force-pushed the gln/pkg-in-pipe-logging-debug-zvvk branch from e193d96 to 2a4af26 Compare September 29, 2026 19:21
glehmann and others added 2 commits October 8, 2026 09:41
…s 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>
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>
@glehmann
glehmann force-pushed the gln/release-post-generator-yykx branch from 76c9fbc to b8abc9c Compare October 8, 2026 07:45
@glehmann
glehmann deleted the branch gln/pkg-in-pipe-logging-debug-zvvk October 8, 2026 07:46
@glehmann glehmann closed this Oct 8, 2026
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