Skip to content

Commit c95fd23

Browse files
committed
fix: comments
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
1 parent f4eee7c commit c95fd23

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
33043306
const custodianDiagnosticDetailCap = 32 * 1024
33053307

33063308
// tailString returns at most the last maxBytes bytes of s.

0 commit comments

Comments
 (0)