Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose only jobs with sidetag group for koji-tag command #2636

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

nforro
Copy link
Member

@nforro nforro commented Nov 12, 2024

The check is also in the handler, but doing it here prevents multiple The task was accepted messages.

@nforro nforro requested a review from a team as a code owner November 12, 2024 12:57
Copy link
Contributor

if any(j for j in matching_jobs if compare_jobs_without_triggers(job, j)):
continue
# in case of koji-tag command, match only koji_build jobs with sidetag group
if event_is_koji_tag_command() and not job.sidetag_group:
Copy link
Member

Choose a reason for hiding this comment

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

Probably a silly question for a far edge use case: any sidetag_group is ok? Can be there more side_tag groups for a package? Does it make any sense to have a more specific filter?

Copy link
Member Author

@nforro nforro Nov 12, 2024

Choose a reason for hiding this comment

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

There could be more different groups, but the filtering would have to be done in the handler (and the group name would be parsed from the comment command there). It's not currently implemented, so the latest build of such package would be tagged into all groups, but I don't think anybody will be doing that, we can implement it later if needed.

Copy link
Contributor

@nforro nforro added the mergeit When set, zuul wil gate and merge the PR. label Nov 12, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/c31773382c344172b9e63cb6be22fe6b

✔️ pre-commit SUCCESS in 2m 13s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 6ccf229 into packit:main Nov 12, 2024
4 checks passed
@nforro nforro deleted the sidetags branch November 12, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants