Files
floci/src
Niels Kootstra 70efa35fe3 fix(codebuild): keep only the tail of phase output for failure messages (#4690)
* 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
2026-09-30 05:54:50 -04:00
..