Inconsistent build result cythonizing a python project: `command 'g++' failed with exit status 1`

Hello, when running this build:

  • config.yml: line 38 in “Compile Hummingbot”
  • python build_ext --inplace [compile]

Once in a while the build fails with the error:

error: command 'g++' failed with exit status 1
Exited with code 1

Then when I subsequently re-run the same build, it usually passes.

Any ideas on why this fails on estimated 1 out of 12 builds, but is fine when triggering the build to re-run?