[PATCH 3/4] buildman: Handle exceptions in threads gracefully

Simon Glass sjg at chromium.org
Thu Apr 29 18:03:45 CEST 2021


There have been at least a few cases where an exception has occurred in a
thread and resulted in buildman hanging: running out of disk space and
getting a unicode error.

Handle these by collecting a list of exceptions, printing them out and
reporting failure if any are found. Add a test for this.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/buildman/builder.py       | 22 +++++++++++++++++-----
 tools/buildman/builderthread.py | 14 +++++++++++++-
 tools/buildman/control.py       | 16 +++++++++++-----
 tools/buildman/func_test.py     | 15 +++++++++++++++
 4 files changed, 56 insertions(+), 11 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list