question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometimes approves the wrong commit

See original GitHub issue

There have been two circumstances where a normal @bors r+ approved an old commit:

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:open
  • Created a year ago
  • Reactions:3
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
notriddlecommented, Jul 2, 2022

if I understood it correctly where as bors-ng is stateless and homu stateful

Unfortunately, no. There are three borses, not two.

0reactions
pinkforestcommented, Jul 17, 2022

Raised #178 for suspected general WebHook delivery instability which addressing commit mixups alone would not fix (this ticket)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found