-
Notifications
You must be signed in to change notification settings - Fork 72
WIP: fix (probable) race condition in promotion #1531
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
45eec75
to
8e8e95f
Compare
|
||
if len(toPromote) == 0 { | ||
logrus.Info("Nothing to promote.") | ||
} else { |
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 is not the most idiomatic, but preserves indentation for easier review.
8e8e95f
to
2f47ec3
Compare
I believe there is a race condition here, and we are closing the channel during promotion before we finish filling it in ExecRequests. This manifests as images not being promoted, seemingly at random, without errors. Refactor to make the logic (hopefully) clearer.
2f47ec3
to
9cd2dbf
Compare
@justinsb: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
I believe there is a race condition here, and we are closing the channel
during promotion before we finish filling it, in ExecRequests.
This manifests as images not being promoted, seemingly at random,
without errors.
Refactor to make the logic (hopefully) clearer.