Skip to content

Report git's stderr when a merge fails without leaving conflicts - #63

Merged
danielhanchen merged 1 commit into
masterfrom
repin-diagnose
Aug 4, 2026
Merged

Report git's stderr when a merge fails without leaving conflicts#63
danielhanchen merged 1 commit into
masterfrom
repin-diagnose

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The repin bot reported this for ggml-org#24423:

**conflict, not resolvable automatically** -- `-`: no conflicted files

Which is not a thing that can happen. git merge returned non-zero, then additive_merge.py found nothing in --diff-filter=U, and the placeholder for "there were no conflicted files" got rendered as though it were the reason the conflict could not be resolved.

I could not reproduce it locally: against today's base the same merge succeeds cleanly with Merge made by the 'ort' strategy. So whatever git objected to on the runner was environmental rather than a real conflict, and the one piece of evidence that would have identified it, git's stderr, was being thrown away.

Now when the merge fails and leaves no conflicted files, the report carries the last few lines of git's actual output instead of a placeholder. The genuine-conflict path is unchanged, and - is filtered out of the file list so it can no longer be printed as a filename.

This is the same failure shape as the alerting bug in #62: a diagnostic that reported something other than what happened, which cost more time than the underlying fault would have. Tests still pass (14 assertions).

@danielhanchen
danielhanchen merged commit 0f278b4 into master Aug 4, 2026
@danielhanchen
danielhanchen deleted the repin-diagnose branch August 4, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant