Skip to content

pkg_in_pipe: write a machine readable version of the report - #839

Merged
glehmann merged 1 commit into
masterfrom
gln/json-report-output-onkp
Oct 2, 2026
Merged

glehmann merged 1 commit into
masterfrom
gln/json-report-output-onkp

Conversation

@glehmann

@glehmann glehmann commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

@gduperrey
gduperrey requested a review from a team August 31, 2026 15:07
@glehmann
glehmann force-pushed the gln/json-report-output-onkp branch 2 times, most recently from 3d76ca1 to 8b08ba1 Compare September 29, 2026 09:48
@glehmann
glehmann changed the base branch from gln/pkg-in-pipe-updates-psmx to master September 29, 2026 15:19

@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 minor comment, LGTM otherwise 👍

Comment thread scripts/pkg_in_pipe/pkg_in_pipe.py Outdated
Comment on lines +448 to +481
previous_build_sha = find_previous_build_commit(tag, build)
previous_build = find_previous_build(tag, build)
previous_build_sha = None
if previous_build is not None:
source = previous_build.get('source') or MISSING_SOURCES.get(previous_build['nvr'])
previous_build_sha = parse_source(source)[1]

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.

Maybe update find_previous_build to be more like find_previous_build_with_commit and have it return both the build and the commit? This way, you don't have to duplicate the following line:

source = previous_build.get('source') or MISSING_SOURCES.get(previous_build['nvr'])

This also lets you document better that we stop at the most recent build that provides a source commit.

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>
@glehmann
glehmann force-pushed the gln/json-report-output-onkp branch from 8b08ba1 to bc4028b Compare September 29, 2026 19:21
@glehmann
glehmann merged commit e6ecec2 into master Oct 2, 2026
3 checks passed
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