Skip to content

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

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

fix: improve code-radiator fallback for large merges (ENOBUFS)#25954
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
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