Repository navigation
fix(docs): report post-merge draft conflicts - #12845
Merged
Merged
Conversation
The post-merge docs author failed with only the git command line when the managed draft conflicted with main. Report the conflicting files and git's conflict messages, and document how to recover. Align the Cloudflare tunnel sections in run-sandboxes.mdx with current behavior: tunnel start targets the selected sandbox's registered dashboard port, and tunnel state is scoped to the OpenShell gateway port. This lets the open managed draft merge cleanly with main. Signed-off-by: Kao Félix <me@kaofelix.dev>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
Contributor
|
🌿 Preview your docs: https://nvidia-preview-pr-12845.docs.buildwithfern.com/nemoclaw |
Contributor
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 10 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
kaofelix
marked this pull request as ready for review
October 9, 2026 18:56
Signed-off-by: Kao Félix <me@kaofelix.dev>
Contributor
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Outcome
The post-merge docs run now reports the files and Git messages behind a draft merge conflict, plus a link to recovery steps. Before this change, it printed only the failed
git merge-treecommand line.Reason
Run 37808064216 failed before authoring started. The managed draft and
mainchanged the same lines indocs/manage-sandboxes/run-sandboxes.mdx. The error gave no clue which file or lines conflicted, and a rerun without a change hits the same conflict.Changes
tools/post-merge-docs/run.mts: rungit merge-tree --write-tree --name-onlywith captured stderr. On exit status 1, fail with the draft andmainSHAs, the conflicting files, Git's conflict messages, and a link to the recovery steps. Other failures still report Git's stderr.docs/AUTOMATION.md: add "Resolve a Draft Merge Conflict." It explains how to reproduce the conflict and choose between two recovery paths: fixmainand keep the draft automated, or mark the draft ready for review and take ownership. Link it fromtools/post-merge-docs/README.md.An earlier revision also reworded the Cloudflare tunnel text in
run-sandboxes.mdx. The managed draft that conflicted has since merged, so that change is dropped from this PR.Verification
npx vitest run test/generation/post-merge-docs.test.ts: the conflict test checks the conflicting file, Git'sCONFLICTline, and the recovery link. It failed before the runner change.executePostMergeDocslocally with the failed run's SHAs. The error namesdocs/manage-sandboxes/run-sandboxes.mdxand includes Git's conflict line.Signed-off-by: Kao Félix me@kaofelix.dev