-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Implicit self-approval and consider github review state by default #10435
Conversation
/assign @cblecker |
lololol.. you're just itching to swap out the defaults! will review this next week when my brain isn't so fried. /hold |
This is a breaking config change so it should be mentioned in the announcements: https://github.com/kubernetes/test-infra/blob/master/prow/ANNOUNCEMENTS.md |
Why? |
Done
Because we should have the right defaults |
Who wants to review this? 👯♂️ happy to assign new people too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM except for the race on the last warning time variables.
prow/plugins/plugins.go
Outdated
func warnDeprecated(last *time.Time, freq time.Duration, msg string) { | ||
now := time.Now() | ||
if now.Sub(*last) > freq { | ||
*last = now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't thread safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
But why are these the right defaults? |
Because by default, one expects:
It is fine to override this behavior if you want to ignore the github review state for some reason, or your org has a habit of creating PRs they disagree with for some weird reason, but people deserve a better OOB experience |
Passes gofmt now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. WIll leave lgtm to @cjwagner to verify thread safe fix is good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold cancel
LGTM label has been added. Git tree hash: 1aa69e694865c14e5c33b980aba8290482fcea61
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cblecker, cjwagner, fejta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Maintain backwards compatibility with current config values (which have the opposite defaults) for 6 months.