This message was deleted.
# bug-reports
s
This message was deleted.
r
I've had to merge this PR but this seems to be happening on all my PRs today
j
@Brendan Ngo , can you take a look?
b
I'll take a look!
hm looks like you've merged the pr already so we've lost that state
we've started calculating required codeowners on Graphite which is why you're seeing that message now. If you see this again can you let me know? It may have been a problem with us missing some data on our side at the time. On our side now it does look like the pr has all owners.
also question, how was reviewing on Graphite with codeowners required before? we didn't respect it at all so I'm sure our mergeability calculations were never right for you?
r
Oh! Really sorry. Yeah, I'll ping you next time I see it happen
Before, it just didn't let me merge I thought, though I might have missed it letting me. I usually monitor who's approved before I press merge
That said... We also have a bot that tells you the minimum set of reviewers you need for a PR (codeowners get... Complicated real fast, and our codeowners file is quite large and uses some weird github behaviour related to how they evaluate codeowners)
b
before, if you had minimum number of approvals you could try to merge on graphite but if we were missing required codeowners it would fail doing the merge, which is the reason we wanted to start enforcing codeowners on the graphite side. codeowners does get complicated quickly, especially for prs with lots of files with lots of different codeowners. Hopefully our new codeowner checks work for you but definitely let us know if you see something weird again!
r
Ok, I've got another PR
That I can merge in github but not graphite
b
Oh I see the problem now! Looks like our codeowners calculation is right but we don't have data for those teams so we couldn't link the reviewers to the team codeowners. We should have this data so looking into why it's missing!
There's a fix going out now that should fix this going forward! Thanks for flagging and let me know if you see anything unexpected still
r
Oooh that's interesting! Is it just that you don't have access to our owners groups int the integration? But thanks for looking into this!
b
we should have permission there was just a bug in our teams logic. codeowners is also tricky since there isn't an api for it so we need to rederive everything ourselves
e
My apologies for "reopening" this thread, but I'm still experiencing this problem - I'm not sure if it's the same problem or if it's just similar/related. We auto-assign two reviewers to each PR, but we only require approval from a single code-owner before merging. What happens is: one reviewer approves, and I'm able to merge in GitHub - but Graphite still shows:
Needs approvals from code owners
and requires me to check the 'use admin privileges' box to merge. For our workflow this is fine; we only need one approving review.
b
@Eitan Levi do you have an example pr where this is happening?
e
I'll get one set up - just waiting for the CI checks to finish.
b
feel free to dm when you do and I can take a look!
e
awesome, thanks - DM's you