Skip to content

[pkg_in_pipe] Try all the koji tagged builds in order until we find a source - #847

Merged
vxgmichel merged 2 commits into
masterfrom
vml/fix-missing-source-in-koji-build
Sep 21, 2026
Merged

vxgmichel merged 2 commits into
masterfrom
vml/fix-missing-source-in-koji-build

Conversation

@vxgmichel

Copy link
Copy Markdown
Contributor

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).

In order to avoid reporting extra PRs and plane cards, those missing sources can also now be listed in the missing_sources.json dictionary.

… 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>
@vxgmichel
vxgmichel requested a review from a team as a code owner September 18, 2026 11:02
@vxgmichel
vxgmichel force-pushed the vml/fix-missing-source-in-koji-build branch from c4168d4 to 13e4a02 Compare September 18, 2026 11:04

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

I'd rather avoid the json format, which we too often get wrong when adding an element, because we can't have a comma , on the last element of the list.
Could you change it for toml?

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>
@vxgmichel
vxgmichel force-pushed the vml/fix-missing-source-in-koji-build branch from 13e4a02 to 22e1dec Compare September 18, 2026 12:13
@vxgmichel

vxgmichel commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Could you change it for toml?

Sure, done here: 22e1dec

@vxgmichel
vxgmichel requested a review from glehmann September 18, 2026 12:15
@vxgmichel
vxgmichel merged commit 6d5a7e6 into master Sep 21, 2026
3 checks passed
@vxgmichel
vxgmichel deleted the vml/fix-missing-source-in-koji-build branch September 21, 2026 14:37
bryanunitek pushed a commit to bryanunitek/UniCORE.XCP that referenced this pull request Sep 23, 2026
This change was missing from the following PR:
xcp-ng/xcp#847

Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
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