Repository navigation
fix(sdk): report the OpenTofu diagnostics that fit in an error - #14420
Merged
Merged
Conversation
Past 16 KiB of OpenTofu diagnostics, the SDK replaced them all with "child output exceeds the supported limit". It now keeps the whole diagnostics that fit, in order, and counts the rest; a diagnostic longer than the limit keeps its summary and the whole lines of its detail that fit. Each diagnostic is redacted before any cut. Part of #14403; resolves #14399. Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
Contributor
Review follow-up: the first diagnostic that doesn't fit keeps its summary, a single-line oversized detail is cut inside the line, a cut that would keep nothing counts the diagnostic instead, and one marker ends the error. Captured-output overflow is checked first, and each diagnostic is redacted only when reached. Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — review follow-up at db4bc26
|
The mix test ran over its time budget at 16 KiB. It now runs at 256 and 512 bytes and sweeps the first diagnostic from one that leaves no room for the next. The sweep found a cut that kept only the summary's line break; trailing whitespace is now dropped from a cut. Signed-off-by: Carlos Villela <[email protected]>
cv
enabled auto-merge (squash)
November 11, 2026 19:53
cv
added a commit
that referenced
this pull request
Nov 11, 2026
Brings in #14420 without conflicts. The schema and the intent record's fingerprint are unchanged by it; the record stays version 21. Signed-off-by: Carlos Villela <[email protected]>
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.
The error of a failed OpenTofu command now lists the whole diagnostics that fit in its 16 KiB, the next one's summary, and how many it left out, instead of replacing them all with
child output exceeds the supported limit, sonemoclaw planandapplyshow the errors of a large plan or of several failed managed services.Problem
crates/nemoclaw-sdk/src/process.rsjoined each diagnostic's summary and detail into one message; once the next text would pass 16384 bytes, the whole message becamechild output exceeds the supported limit. A 31-sandbox plan with no gateway running reported only that, and several managed services whose stop details carry up to 4 KiB of vLLM output (#14397) can cross the limit together.Resolves #14399.
Part of #14403: this is its diagnostics change; the sandbox cap and the per-sandbox attachment count are separate changes, and the live apply of 256 sandboxes is still to be recorded.
Change
[rest of this diagnostic and 2 more diagnostics left out to keep this error within 16 KiB; fix these and rerun to see the rest]. NemoClaw has no option that prints the rest, so the marker gives only the count.[redacted]still fit. Diagnostics past the cut aren't redacted, since they aren't shown. The short-credential rule is unchanged.child output exceeds the supported limit: cut stderr can end inside a credential.error.messagein JSON.docs/resources/limits.mdlists both bounds as design limits;docs/agents-inference/models.mdand the release notes describe the new error.Errors aren't listed before warnings; diagnostics keep OpenTofu's order.