Skip to content

Draft: Truncate command output when debugging

Fabien Catteau requested to merge truncate-shell-execute-log into main

What does this MR do?

Truncate the std output and std error of commands executed by Shell#execute to 1000 chars when they're flushed to the log, in the record method. This happens when the debug mode is enabled, or when the command being executed fails.

See https://gitlab.com/gitlab-org/security-products/analyzers/license-finder/-/jobs/1884226143#L473

What are the relevant issue numbers?

gitlab-org/gitlab#339031 (closed)

Does this MR meet the acceptance criteria?

Edited by Fabien Catteau

Merge request reports