Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using Python unittest framework in a buildbot task throws BlockingIOError: [Errno 11] write could not complete without blocking #8659

@juj

Description

@juj

When I run our Emscripten unit test command locally from command line, everything is sweet.

Though if I instruct the same command to run as a buildbot ShellCommand, then I am met with the following error:

  File "/home/clb/buildbot/h12dsi-linux-mint22/emscripten_linux_x64/build/emscripten/main/test/runner.py", line 356, in run_tests
    res = testRunner.run(suite)
          ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/runner.py", line 247, in run
    result.printErrors()
  File "/usr/lib/python3.12/unittest/runner.py", line 147, in printErrors
    self.printErrorList('FAIL', self.failures)
  File "/usr/lib/python3.12/unittest/runner.py", line 160, in printErrorList
    self.stream.writeln("%s" % err)
  File "/usr/lib/python3.12/unittest/runner.py", line 26, in writeln
    self.write(arg)
BlockingIOError: [Errno 11] write could not complete without blocking
program finished with exit code 1

This error occurs on buildbot workers running on Linux Mint 22.

Are there any ways to troubleshoot this in buildbot, e.g. by adjusting stdout/stderr buffering/blocking, and/or any buffer lengths, etc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions