This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
Send a message on GitHub when a duplicate preflight poll terminates. #1084
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Gonna preface this by saying I'm not super sure about this one.
Background
I'm trying to track down why the prefilight poll sometimes terminates when there are no duplicates. Excerpt from the logs.
I see the extra
already left prerun
check was added in #841 and its only supposed to remove duplicatebors r+/merge
requests. But I don't see any duplicate requests here: the timestamps ofContinue Poll
are about a minute apart and there are no newStart Poll Patch
).I see other cases where Bors comments with "Waiting for PR Status" and then doesn't comment again (or merge) and suspect is a similar issue, but the logs are too far back and we don't have then anymore.
Since the polling silently stops, its quite frustrating for devs who have to
bors r+
again.Solution
In this PR, Bors adds a GitHub comment when it stops polling due to duplicates. This should both inform devs and help track down this issue.
Drawbacks
This add an extra comment from Bors, which may sometimes be confusing. But if people made multiple requests, they should understand the messages referring to duplicates. It is only in the case where the preflight polling stopped due to something else where the message would be confusing. But I'm thinking even in that case, its better they are informed.