Not exactly a bug, and something I believe I may h...
# report-bugs
k
Not exactly a bug, and something I believe I may have noted before, but: 1. Start with empty merge queue 2. Create a single PR 3. Approve it 4. Push a new version, triggering CI tests and such to run 5. Check "merge when ready" Desired behavior: PR merges as soon as current CI checks are finished Actual behavior: PR finishes checks, moves into the queue, then runs checks again, merging only after the second run of checks.
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>
k
I understand why this happens, but it's still annoying.
I.e., it doesn't enter the merge queue until the current checks have passed, and when it enters the merge queue, it's rebased onto the current merge head, which then triggers another run of checks
Like I said, though, would be nice to be able to avoid the second run in these cases, as I often end up just going to gh and force-merging.
Which is to say, I would rather it immediately enter the merge queue and then fail out of the queue than run successful tests twice.
This raises the question, "when should it enter the merge queue". For example, it can't enter the merge queue if it's not approved. But I suspect Graphite simply uses githubs "required checks" mechanism to determine whether or not it should enter the queue. This makes perfect sense and is simple, but of course it has the consequence I've mentioned.
p
hey - this is expected behavior. the purpose of the merge queue is to make sure there aren't semantic merge conflicts. so, we run CI again when a PR is in the merge queue and we rebase it on things lower in the merge queue to make sure that your main branch remains green!
k
Yep! Understood. I was just pining for a bespoke optimizing in the specific case where the merge queue is empty. In such a case, it would be preferable to just throw the PR into the merge queue and then kick it out if the checks fail. As stated, though, I understand why this is difficult, so I don't expect you guys to prioritize it 😁
👍 1
p
makes sense! i think one reason we don't do this is we probably want to rebase on the latest master before merging either way, in case master has changed for some reason, to be safe!