When I run brakeman the job just hangs when is ready to print the report.
This is only happening when running via buildkite. Even if I do a docker exec on the same container where brakeman is hanging, and run it from there, brakeman works fine. It only hangs when running via the buildkite agent.
The only way to make it work was by setting BUILDKITE_PTY=false in the pipeline definition.
Sorry, I know this is a super old thread, and apologies we didn’t get to it sooner — but we wanted to check in and see if you figured this out?
We advertise that Buildkite is a psuedo-tty (pty) so that you get pretty colours etc from program output. But sometimes that means programs also wait for input, thinking there’s a human at the other end.
Have you tried running it directly in docker with the “-it” flags? That should also advertise a pty, and should replicate the same behaviour.