Lines Matching refs:result

115     result thread, and this helps to serialise the build output.
118 """Set up a new result thread
121 builder: Builder which will be sent each result
127 """Called to start up the result thread.
129 We collect the next result job and pass it on to the build.
132 result = self.builder.out_queue.get()
133 self.builder.process_result(result)
152 reporting the build result
259 result = self.make(commit, brd, 'mrproper', cwd, 'mrproper', *args,
261 config_out.write(result.combined)
263 result = self.make(commit, brd, 'config', cwd, *(args + config_args),
266 config_out.write(result.combined)
267 return result
287 result = self.make(commit, brd, 'build', cwd, *args, env=env)
289 if (result.return_code == 2 and
290 ('Some images are invalid' in result.stderr)):
292 result.return_code = 0
293 return result
303 force_build_failures (bool): Force a bulid if the previous result
312 - result.stderr set to 'bad' if stderr output was recorded
314 result = command.CommandResult()
316 result.already_done = os.path.exists(done_file)
318 not result.already_done)
319 if result.already_done:
322 result.return_code = int(outf.readline())
326 result.return_code = RETURN_CODE_RETRY
329 if result.return_code == RETURN_CODE_RETRY:
334 result.stderr = 'bad'
338 return will_build, result
385 result):
398 result (CommandResult): Previous result
402 result (CommandResult): Result of the build
421 result = self._reconfigure(
428 if result.return_code == 0:
435 result = self._build(commit, brd, cwd, args, env, cmd_list,
440 result.stderr += errs
441 result.return_code = 1
442 result.stderr = result.stderr.replace(src_dir + '/', '')
444 result.stdout = config_out.getvalue() + result.stdout
445 result.cmd_list = cmd_list
446 return result, do_config
463 force_build_failures (bool): Force a bulid if the previous result
480 # Create a default result - it will be overwritte by the call to
485 will_build, result = self._read_done_file(commit_upto, brd, force_build,
494 result.return_code = 10
495 result.stdout = ''
496 result.stderr = f'Tool chain error for {brd.arch}: {str(err)}'
500 result, do_config = self._config_and_build(
502 adjust_cfg, commit, out_dir, out_rel_dir, result)
503 result.already_done = False
505 result.toolchain = self.toolchain
506 result.brd = brd
507 result.commit_upto = commit_upto
508 result.out_dir = out_dir
509 return result, do_config
511 def _write_result(self, result, keep_outputs, work_in_output):
512 """Write a built result to the output directory.
515 result (CommandResult): result to write
524 maybe_aborted = result.stderr and 'No child processes' in result.stderr
526 if result.return_code >= 0 and result.already_done:
530 output_dir = self.builder.get_output_dir(result.commit_upto)
532 build_dir = self.builder.get_build_dir(result.commit_upto,
533 result.brd.target)
538 if result.stdout:
539 outf.write(result.stdout)
541 errfile = self.builder.get_err_file(result.commit_upto,
542 result.brd.target)
543 if result.stderr:
545 outf.write(result.stderr)
550 if result.return_code < 0:
553 if result.toolchain:
554 # Write the build result and toolchain information.
555 done_file = self.builder.get_done_file(result.commit_upto,
556 result.brd.target)
562 outf.write(f'{result.return_code}')
565 print('gcc', result.toolchain.gcc, file=outf)
566 print('path', result.toolchain.path, file=outf)
567 print('cross', result.toolchain.cross, file=outf)
568 print('arch', result.toolchain.arch, file=outf)
569 outf.write(f'{result.return_code}')
572 env = result.toolchain.MakeEnvironment(self.builder.full_path)
579 for cmd in result.cmd_list:
586 capture_stderr=True, cwd=result.out_dir,
590 result.commit_upto, result.brd.target, fname)
596 capture_stderr=True, cwd=result.out_dir,
600 objdump = self.builder.get_objdump_file(result.commit_upto,
601 result.brd.target, fname)
611 capture_stderr=True, cwd=result.out_dir,
622 capture_stderr=True, cwd=result.out_dir,
625 copy_files(result.out_dir, build_dir, '', ['uboot.env'])
632 sizes = self.builder.get_sizes_file(result.commit_upto,
633 result.brd.target)
641 result.out_dir, build_dir, dirname,
652 copy_files(result.out_dir, build_dir, '', to_copy)
654 def _send_result(self, result):
655 """Send a result to the builder for processing
658 result (CommandResult): results of the build
666 self.builder.out_queue.put(result)
668 self.builder.process_result(result)
690 result, request_config = self.run_commit(commit_upto, brd,
695 failed = result.return_code or result.stderr
701 result, request_config = self.run_commit(commit_upto,
722 if (failed and not result.already_done and not did_config and
737 result.commit_upto = commit_upto
738 if result.return_code < 0:
741 # We have the build results, so output the result
742 self._write_result(result, job.keep_outputs, job.work_in_output)
743 self._send_result(result)
746 result, request_config = self.run_commit(None, brd, work_dir, True,
750 result.commit_upto = 0
751 self._write_result(result, job.keep_outputs, job.work_in_output)
752 self._send_result(result)