Repository navigation
fix(cli): a cancelled render does not suggest --docker - #8852
Open
wonjangcloud9 wants to merge 1 commit into
Open
wonjangcloud9 wants to merge 1 commit into
wonjangcloud9 wants to merge 1 commit into
Conversation
Ctrl-C, SIGTERM or a parent that exited printed "Render failed" with "Try --docker for containerized rendering" under render_cancelled, then "Render cancelled: render_cancelled_by_sigterm". Nothing about a cancelled render is fixed by a container, so the hint is now empty when the cancellation signal has aborted, as it already was inside the render container. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What
A local render that is cancelled (Ctrl-C, SIGTERM, or the parent process exiting) no longer shows
Try --docker for containerized renderingunder its error.Why
I hit this while stopping a long render from a wrapper script. The output was:
The render stopped because I stopped it, and a container can't help with that, so the hint points the reader the wrong way. This is the same kind of misdirection #3370 removed for renders inside the render container, and that #8083 removed for unreadable source files.
Related work
--dockerhint inside the render container (ENV CONTAINER=true).--docker.How
executeLocalRenderpasseslocalRenderFailureHint(cancellation.signal.aborted)as the hint.--dockerhint otherwise.executeLocalRendergains no branch.Render cancelled: …line are unchanged.Test plan
render.test.ts, "does not suggest --docker when the render was cancelled": startsrenderLocal, fires the render's SIGTERM listener while the producer waits, and checks that the printed error mentionsrender_cancelledbut not--docker.mainit fails:expected '\n✗ Render failed\n\n render_cance…' not to contain '--docker'.npx vitest run src/commands/render.test.ts: 3 tests fail locally both with and without this change, because my workspace dist builds are stale (explicit composition×2,gif loop). Everything else passes. I left the full run to CI.oxlint,oxfmt --check,comment-ratchet --base origin/mainandfallow audit --base origin/mainare clean on the two files.🤖 Generated with Claude Code