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

Separate critpath and non-critpath min_karma settings #5802

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

AdamWill
Copy link
Contributor

FESCo has decided to reinstate different minimum karma for critpath and non-critpath:
https://pagure.io/fesco/issue/3289
so we need to support this. This introduces critpath.min_karma, and makes min_karma work much like mandatory_days_in_testing, with the appropriate value for each update worked out at the level of the update based on whether it's critpath or not.

We leave the default value of min_karma at 2 even though 1 would be closer to the policy now, just because the tests were written around 2 and are hard to adjust, especially the
test_autopush_reached tests in test_updates.py. We'll set it to 1 in downstream config.

@AdamWill AdamWill requested a review from a team as a code owner November 19, 2024 23:26
Copy link
Contributor

@mattiaverga mattiaverga left a comment

Choose a reason for hiding this comment

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

Do you think adding release.min_karma and release.critpath_min_karma to the Release's __include_extras_ would be worthwhile? (so that those settings are exposed in the json representation of Release). And, maybe, the (,critpath).mandatory_days_in testing too.

Not sure how many tests would fail by adding these, but I think it could be useful to have those settings exposed for "debugging" purpose.

@AdamWill
Copy link
Contributor Author

Hmm, maybe, but it feels like a separate PR to me? wdyt?

FESCo has decided to reinstate different minimum karma for
critpath and non-critpath:
https://pagure.io/fesco/issue/3289
so we need to support this. This introduces critpath.min_karma,
and makes min_karma work much like mandatory_days_in_testing,
with the appropriate value for each update worked out at the
level of the update based on whether it's critpath or not.

We leave the default value of min_karma at 2 even though 1 would
be closer to the policy now, just because the tests were written
around 2 and are hard to adjust, especially the
test_autopush_reached tests in test_updates.py. We'll set it to
1 in downstream config.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
Copy link
Contributor

@mattiaverga mattiaverga left a comment

Choose a reason for hiding this comment

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

Ok, LGTM

@mergify mergify bot merged commit 7727919 into fedora-infra:develop Nov 20, 2024
32 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.

2 participants