Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeApprove reports a PR approved, Github says it's pending approval #80

Closed
mtlynch opened this issue Nov 4, 2022 · 16 comments
Closed
Labels
bug Something isn't working

Comments

@mtlynch
Copy link

mtlynch commented Nov 4, 2022

We just ran into an unexpected blocker with a PR we reviewed through CodeApprove.

  1. Developer sent out PR for review
  2. Reviewer 1 sends notes, doesn't mark PR as approved
  3. Reviewer 2 (me) chimes in with a suggestion, doesn't mark PR as approved
  4. Developer addresses feedback, marks all issues as resolved
  5. Reviewer 1 marks PR as approved

Expected behavior

CodeApprove changes approvals in Github to all approved

Actual behavior

CodeApprove changes approvals in Github for Reviewer 1 as approved, Reviewer 2 (me) is still marked as "Changes requested," which blocks the PR from being merged.

Screenshots

image

image

image

@samatcodeapprove samatcodeapprove added the bug Something isn't working label Nov 15, 2022
@samatcodeapprove
Copy link

@mtlynch yikes! I'll see what the logs say. There's also a link at the bottom of every CodeApprove PR page which lets you re-sync the PR in case things get out of whack like this. Mind seeing if that helps here (assuming it's still in this state)?

@samatcodeapprove
Copy link

@mtlynch oh wow I just realized this was from 11 days ago 🤦 which means you definitely worked around this. Sorry I let this slip through my inbox! Not sure what happened.

@mtlynch
Copy link
Author

mtlynch commented Nov 15, 2022

@samatcodeapprove - That's okay. Yeah, I just approved it to unblock. We haven't seen it again, but I'm also not sure if we've created the same conditions. I'll bump the thread if we see this again.

@rockwotj
Copy link

rockwotj commented Jan 6, 2023

We've seen this frequently too. Hitting the sync button at the bottom left in codeapprove fixes it.

@mtlynch
Copy link
Author

mtlynch commented May 24, 2023

We just hit this again on tiny-pilot/ustreamer-debian#6 but re-syncing didn't fix it.

@samatcodeapprove
Copy link

@mtlynch thanks for letting me know! Seems like you got it fixed for that PR by re-approving? I'll check out the logs.

@mtlynch
Copy link
Author

mtlynch commented May 24, 2023

The PR already had approval from one other reviewer, but I had commented, so it was blocking the review until I approved as well.

The behavior we want is that one approval is sufficient even if multiple people commented on the PR.

@mtlynch
Copy link
Author

mtlynch commented Jun 28, 2023

We just hit this again on tiny-pilot/tinypilot#1458

The re-sync workaround didn't work.

@samatcodeapprove
Copy link

samatcodeapprove commented Jun 29, 2023 via email

@jdeanwallace
Copy link

We just hit this again on tiny-pilot/tinypilot#1469

The re-sync workaround didn't work.

@samatcodeapprove
Copy link

@jdeanwallace thanks for bumping this again. Just want to lay out what I see.

On CodeApprove:

  1. mtlynch reviewed (no approval)
  2. jotaen4tinypilot reviewed (no approval)
  3. mtlynch reviewed (no approval)
  4. mtlynch reviewed (no approval)
  5. mtlynch reviewed (approval)

On GitHub:

  1. mtlynch requested changes
  2. jotaen4tinypilot requested changes
  3. mtlynch requested changes
  4. mtlynch requested changes
  5. mtlynch requested changes (with pending approval)
  6. mtlynch auto-approved

So the problem here is that jotaen4tinypilot's review is still listed as "requested changes" which blocks you on GitHub. I can make a change so that hanging reviews like that are dismissed.

@samatcodeapprove
Copy link

@jdeanwallace this should not happen any more, thanks for providing a clear case!

@jdeanwallace
Copy link

Thanks @samatcodeapprove, looking forward to forgetting about this thread 😆

@mtlynch
Copy link
Author

mtlynch commented Jul 17, 2023

@samatcodeapprove - Just to clarify, the functionality we're hoping for is that CodeApprove unblocks the PR when there's >=1 approval and 0 unresolved threads.

In other words, if five teammates add drive-by comments, and one person gives approval, we want the PR to be considered approved based on the one approval and not wait for any of the other five teammates to approve (as long as their threads are resolved).

Is that CodeApprove's new behavior?

@samatcodeapprove
Copy link

@mtlynch that is the intended behavior! Let me know if you're not seeing this.

@mtlynch
Copy link
Author

mtlynch commented Jul 17, 2023

@samatcodeapprove - Gotcha, thanks! We'll bump the thread if we hit something in the future that's unexpected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants