I have used Circle many times in the past and am setting up a new project. My project’s setup steps are in a single Ruby script called
bin/setup. This script has
$stdout.sync = true at the top which should force all output to be flushed immediately with no buffering.
And yet, the web UI does not show the output of my script. It does not show the output of scripts my script calls consistently either. This makes it extremely hard to debug and monitor what is going on and seems like a critical failure.
I have opened a support ticket, but am posting here in case I’m doing something wrong that others can help me with.
For context, I have been using this script daily for over a year without problems, running inside the exact same docker image I’ve set up with Circle. This leads me to believe it must be with how Circle is running the script or managing the output.