File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3298,9 +3298,11 @@ func formatExecutionDiagnosticWarnings(messages []string) error {
32983298 return err
32993299}
33003300
3301- // custodianDiagnosticDetailCap bounds the total size of the per-execution
3302- // diagnostic detail appended to a zero-evidence failure error so that a policy
3303- // pack with many resource types can never produce an unbounded gRPC error.
3301+ // custodianDiagnosticDetailCap bounds the size of the per-execution diagnostic
3302+ // detail (the one-line summaries plus log/stderr tails) that
3303+ // composeZeroEvidenceError appends. It caps only that appended detail; any
3304+ // accumulatedErrors joined ahead of it carry their own (per-policy) content and
3305+ // are intentionally not truncated here so genuine failures are never hidden.
33043306const custodianDiagnosticDetailCap = 32 * 1024
33053307
33063308// tailString returns at most the last maxBytes bytes of s.
You can’t perform that action at this time.
0 commit comments