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

fix: only modify backportable checks inside queue #293

Merged
merged 1 commit into from May 7, 2024

Conversation

dsanders11
Copy link
Member

@dsanders11 dsanders11 commented May 7, 2024

Partially reverts #283.

Applying multiple labels to a PR at the same time can cause multiple webhook events to trigger multiple runs of the same backportable checks in trop. The queue ensures there's only one in-progress at a time, but the existing code creates/updates check runs before entering the queue. Creating a new check run with the same name simply overwrites any existing ones. This situation lead to various race conditions where check runs are modified in ways which lead to an inconsistent result displayed on GitHub. Resolution is simply to only modify the check runs inside the queue (effectively a critical section) to guarantee no one else is touching them.

@dsanders11 dsanders11 requested a review from a team as a code owner May 7, 2024 17:32
@VerteDinde VerteDinde merged commit 437f374 into main May 7, 2024
4 checks passed
@VerteDinde VerteDinde deleted the fix/check-runs-inside-queue-only branch May 7, 2024 22:43
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.

None yet

2 participants