You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: ESP32-S3 build workflow can remain in-progress without runner updates #3697
Investigation confirms output is not reliably streamed. .github/workflows/build_template.yml runs ./compile ... | tee build.log; ci/compiler/compile_for_board.py reads the child compiler line-by-line, but ci/util/locked_print.py calls plain print(line) without lush=True. Since the outer Python process writes to a pipe, stdout is block-buffered; GitHub/tee can see long silence followed by a burst when the buffer fills or the process exits. The historical successful ESP32-S3 build took ~23m34s for the same compile step, so the old run's silence was ambiguous, but this buffering explains the poor observability. Suggested fix: flush each locked_print line (or run the workflow with PYTHONUNBUFFERED=1/python -u) and add a heartbeat/timeout around the build step.
Activity
zackees commentedon Jul 16, 2026
Investigation confirms output is not reliably streamed. .github/workflows/build_template.yml runs ./compile ... | tee build.log; ci/compiler/compile_for_board.py reads the child compiler line-by-line, but ci/util/locked_print.py calls plain print(line) without lush=True. Since the outer Python process writes to a pipe, stdout is block-buffered; GitHub/tee can see long silence followed by a burst when the buffer fills or the process exits. The historical successful ESP32-S3 build took ~23m34s for the same compile step, so the old run's silence was ambiguous, but this buffering explains the poor observability. Suggested fix: flush each locked_print line (or run the workflow with PYTHONUNBUFFERED=1/python -u) and add a heartbeat/timeout around the build step.
zackees commentedon Jul 16, 2026
Implemented in PR #3702: #3702