You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the the M-failed-staging-checks documentation, Squid PR 629 was mishandled by Anubis: Anubis should have aborted aborted merging despite successful "merged" statuses.
On the other hand, honoring the label may look strange from the user point of view: Seeing only green marks, the user may wonder why the PR was (and is) marked as "failed". Also, discarding a ready-for-immediate-merge staged commit is wasteful. Perhaps we should revise Anubis documentation and code to allow the bot to clear M-failed-staging-checks in such cases?
The text was updated successfully, but these errors were encountered:
@eduard-bagdasaryan, assuming #36 is merged, is it possible that M-failed-staging-checks label is set for reasons other than a staging checks failure? I am asking this question to decide which way to go:
If the bot only sets M-failed-staging-checks when the staging checks fail, then the bot should clear it when that state is no longer true, but
if there are other conditions (e.g., an internal assertions while processing those checks), then we probably should not discard the label that may indicate another serious problem.
is it possible that M-failed-staging-checks label is set for reasons other than a staging checks failure?
No, the only reason for applying M-failed-staging-checks now is the obtaining of failed statuses. There are two such places in the code: _processStagingStatuses() and _loadPrState().
f the bot only sets M-failed-staging-checks when the staging checks fail, then the bot should clear it when that state is no longer true
Agreed.
e.g., an internal assertions while processing those checks
In such cases of unexpected errors, M-failed-other should be applied.
Based on #36 (comment):
According to the the
M-failed-staging-checks
documentation, Squid PR 629 was mishandled by Anubis: Anubis should have aborted aborted merging despite successful "merged" statuses.On the other hand, honoring the label may look strange from the user point of view: Seeing only green marks, the user may wonder why the PR was (and is) marked as "failed". Also, discarding a ready-for-immediate-merge staged commit is wasteful. Perhaps we should revise Anubis documentation and code to allow the bot to clear
M-failed-staging-checks
in such cases?The text was updated successfully, but these errors were encountered: