Sometimes approves the wrong commit
See original GitHub issueThere have been two circumstances where a normal @bors r+
approved an old commit:
- https://github.com/rust-lang/rust/pull/95251#issuecomment-1079483432
- https://github.com/rust-lang/rust/pull/98708#issuecomment-1171587241
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 be 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.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Git tip: how to fix an accidental commit on the wrong branch
move your commit to a new branch; restore your master to it's previous state. This can be done in 3 simple steps. Create...
Read more >How to fix committing to the wrong Git branch? - Stack Overflow
The idea is to recreate the feature branch on the current commit and switch to it. Then make the master branch point to...
Read more >"This commit has a bad commit message. Why did I commit it ...
If your commit message isn't sufficient enough to explain the purpose of the commit (ticket numbers, explanation, etc), it doesn't get approved.
Read more >Is it ever OK to commit non-working code?
Noting the 'working code' is part of the 'dev' branch policy, one should never commit broken code to the dev branch. Often there...
Read more >Git - How to fix a bad commit - DEV Community
We all have a bad day sometimes. ... You can use git revert , this command undoes a commit by creating a new...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunately, no. There are three borses, not two.
Raised #178 for suspected general WebHook delivery instability which addressing commit mixups alone would not fix (this ticket)