Open
Description
There have been two circumstances where a normal @bors r+
approved an old commit:
- Reduce max hash in raw strings from u16 to u8 rust#95251 (comment)
- rustdoc: fix 98690 Panic if invalid path for -Z persist-doctests rust#98708 (comment)
My hunch is that somehow bors missed the push notification, and the state.head_sha
doesn't get updated to the latest version.
I think Homu should never approve a commit that is not the latest commit. I imagine it should check what the latest commit is when approving instead of assuming that the database is in sync. There's definitely risks about race conditions here that may not be solvable, but some extra effort might make it more resilient.
What's scary is that this may be happening and nobody notices. These two instances only got noticed because the old commit failed in CI.
Metadata
Metadata
Assignees
Labels
No labels