mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 00:45:17 -05:00
* fix(codebuild): keep only the tail of phase output for failure messages runPhase buffered every byte a phase printed in a ByteArrayOutputStream, but only the last 512 characters reach the failure message. A phase with gigabytes of logs held them all in the heap, and past 2 GiB the buffer threw OutOfMemoryError. Keep a fixed 4 KiB tail instead. Strip trailing whitespace before taking the last 512 characters. The offset was computed on the unstripped text, so more than 512 trailing whitespace characters replaced the message with an index error. * fix(codebuild): keep the last error when a phase ends in long whitespace * test(codebuild): name runner test after the class it covers