I recently enabled Merge Queue to try to help with...
# report-bugs
a
I recently enabled Merge Queue to try to help with merging my PR. I've restacked it about 20 times against trunk, and it has no merge conflicts. It's been kicked out of the Merge Queue twice due to "Merge Conflicts". When it gets kicked out, it gets into a perpetual state where it's waiting for Tests to complete but there is no GH Action that is running the tests. I've tried refreshing (rerunning the work) and then it infinite loops into a "Cancelling..." I ended up merging it on GitHub by bypassing all the rules. What other debugging information can I gather?
➕ 1
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
a
Here's an example (but by the time you look at this, I might've already manually merged it). https://app.graphite.dev/github/pr/halocures/halo/4669/%5BHALO-2390%5D-UAT-updates-to-university-admin-emails?ref=gt-system-tray-app Attached is the screenshot of what I see. Second image is what I see locally when I get that branch locally. As you can see, I can't restack and repro the merge conflict problem.
Here's another PR. This timed out in the Merge Queue, got popped out. What am I supposed to do at this stage, as it still shows as Tests running?
Now engineers don't want to use it 😞
p
Hi, really sorry you're having a poor experience here. Can you give me some more details on how you're using our MQ? Are you using it directly through the Graphite app? Is your entire team using our MQ or are some using GitHubs MQ?
a
No one is using GitHubs MQ. I'm using it thorugh the Graphite interface. This continues to happen. I just submitted this one, let's see if it works.
I'm seeing timeouts like this.
But there's no way to check what caused the timeout from what I can tell.
f
Hey Amir, sorry this is happening, I'll look at our logs today to see what's going on
Couple things: 1. I see your MQ timeout limit is 20 minutes, that is where time out (your screenshot above). Is you avg. CI 10 minutes? I can't see your CI details/logs, but for 4704 did CI run for more than 20 minutes? If not its a bug on our side 2. Merge conflicts can manifest in two ways a. GH just tells us there is a conflict, this is GH's
mergeable
field in their API, and when that is false you will see blocked merges in both GH and Graphite b. We run a rebase from trunk to the current PR (e.g on restack, or when you click merge) that fails with conflicts c. Neither of these 3. "It gets into a perpetual state where it's waiting for Tests to complete but there is no GH Action that is running the tests" a. Can you double check your CI triggers? Graphite does not have any ability to trigger your CI b. "then it infinite loops into a "Cancelling..." this is also going to be on your side, we can't control anything here 4. The only true error I see in the logs a. One case where a PR was close when the MQ tried to rebase it, likely a user merged/closed a PR that was in the queue b. Rebasing while merging failed with merge conflicts The way I'm seeing this is 1. Merge conflicts are popping up as some PRs are using the queue, others aren't, so when a PR tries to get merged (or added to the queue) it conflicts with main~HEAD 2. CI is configured in a way that doesn't kick off / shut down as expected 3. Timeout is likely set too low
a
I'll keep this pinned - hasn't happened in a while but I'll let you know and if it does.
👍 1
I think I'm experiencing this again. Here's my PR. Specifically, it's the "infinite checks in progress" loader. Attached are what I see. The "Pending" check is not running at all in GitHub Actions. This label itself makes no sense to me because it doesn't match any of our Actions. This "check" seems to be on Graphite-only PRs. In the last are the Checks section of an engineer that doesn't use Graphite - notice all the names are different.
Interestingly, it still shows that it's in progress even though I force-merged via GH a while ago (this is after a refresh).
p
Opening a ticket with our eng team to take a deeper look here! Based on Frank's earlier assessment would recommend checking CI triggers if the issue is specifically the "infinite checks in progress" loader. Graphite's MQ has little control over your CI so the issue could be originating from there.
a
I think I found the issue; I see this here. "Tests" is not anything in our workflows, it's not defined anywhere. Either we added it and it was made obsolete later or Graphite added it - probably our fault.
p
Ah okay, let me know if you see the issue persist after removing it! It's very unlikely Graphite added it but will confirm with the team