Message ID | 20240623175515.1466908-14-sjg@chromium.org |
---|---|
State | Accepted |
Commit | bf984a6a0073f9a1bf7814ac44e72218afcb2081 |
Delegated to: | Simon Glass |
Headers | show |
Series | Tools updates for Labgrid | expand |
Buildman retries a failed build when processing a branch, but does not
do this when building current source. It is useful to do this retry in
both cases, so add the logic for it.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
(no changes since v1)
tools/buildman/builderthread.py | 8 ++++++++
1 file changed, 8 insertions(+)
Applied to u-boot-dm/next, thanks!
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index bbe2f6f0d24..55658487abf 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -755,6 +755,14 @@ class BuilderThread(threading.Thread): self.mrproper, self.builder.config_only, True, self.builder.force_build_failures, job.work_in_output, job.adjust_cfg) + failed = result.return_code or result.stderr + if failed and not self.mrproper: + result, request_config = self.run_commit(None, brd, work_dir, + True, self.builder.fallback_mrproper, + self.builder.config_only, True, + self.builder.force_build_failures, + job.work_in_output, job.adjust_cfg) + result.commit_upto = 0 self._write_result(result, job.keep_outputs, job.work_in_output) self._send_result(result)
Buildman retries a failed build when processing a branch, but does not do this when building current source. It is useful to do this retry in both cases, so add the logic for it. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) tools/buildman/builderthread.py | 8 ++++++++ 1 file changed, 8 insertions(+)