Skip to content

fix: improve code-radiator fallback for large merges (ENOBUFS) - #25954

Closed
rolfbjarne with Copilot wants to merge 2 commits into
mainfrom
copilot/mergemain-to-net110-20260706
Closed

rolfbjarne with Copilot wants to merge 2 commits into
mainfrom
copilot/mergemain-to-net110-20260706

Conversation

Copilot AI commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

The code-radiator workflow files a non-actionable issue when create_pull_request fails with ENOBUFS for large merges. Even with a proper two-parent merge commit, git format-patch --stdout is always run by the gh-aw safe-outputs infrastructure for policy enforcement β€” for 50+ commit merges this exceeds the 100MB buffer limit regardless of patch_format: bundle.

Changes

.github/workflows/code-radiator.md (prompt body only; no lock file recompilation needed)

  • ENOBUFS warning: After the merge-commit verification step, add a note that large merges (50+ commits) can fail create_pull_request with ENOBUFS even when the merge commit has two parents. Directs the agent to the fallback step rather than retrying.

  • Improved fallback issue body (step f):

    • Adds "patch too large" as an explicit failure reason
    • Instructs the agent to include the commit count (git rev-list --count origin/<target>..origin/main)
    • Adds a structured ### Details section for what was completed
    • Adds a ### Manual steps needed section with exact reproduction commands:
      git fetch origin
      git checkout -b <local-branch> origin/<target>
      git merge origin/main --no-edit -m "Merge branch 'main' into '<target>'"
      # Resolve any conflicts, then:
      git commit --no-edit
      git push origin <local-branch>
      gh pr create --base <target> --head <local-branch> \
        --title "πŸ€– Merge 'main' => '<target>'" \
        --body "Automated merge of \`main\` into \`<target>\`."

When a merge spans 50+ commits, git format-patch output can exceed
the 100MB buffer limit in gh-aw's safe-outputs infrastructure, even
for a proper two-parent merge commit. This is a known limitation.

Changes (prompt-body only, no recompilation needed):
- Add warning after merge-commit verification that ENOBUFS can occur
  for large merges even with proper two-parent merge commits
- Improve fallback issue template (step f) with: exact commit count
  command, structured Details section, and exact git commands in
  Manual steps needed section

Closes #25946

Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failed merge PR creation for net11.0 fix: improve code-radiator fallback for large merges (ENOBUFS) Jul 7, 2026
Copilot AI requested a review from rolfbjarne July 7, 2026 11:03
@rolfbjarne

Copy link
Copy Markdown
Member

Closing in favor of #26096.

@rolfbjarne rolfbjarne closed this Jul 15, 2026
rolfbjarne added a commit that referenced this pull request Jul 15, 2026
The problem is that the merge is always too big, surpassing the built-in limits to avoid the agentic workflows from creating havoc.

This doesn't make much sense to me (the merges are small, but maybe it's the entire diff between the two branches that's taken into account?), but Copilot gave up fixing it (#25954 - basically saying "this needs to be done manually").

So remove this specific branch flow to avoid getting issues filed every time an (unsuccessful) attempt is made.

References:

* #25839
* #25843
* #25844
* #25866
* #25871
* #25890
* #25905
* #25917
* #25927
* #25929
* #25930
* #25946
* #25965
* #25981
* #26027
* #26044
* #26050
* #26054
* #26066
* #26092
* #25831
* #25831
* #25831
* #25896
* #25925
* #25954
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.

πŸ€– Code radiator: failed to create merge PR for 'net11.0'

2 participants