Merge pull request #24708 from drfloob/surface_build_gen_failures

Surface build errors from generate_projects.sh
reviewable/pr24618/r8
Adam J Heller 4 years ago committed by GitHub
commit ddadc7a001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      tools/buildgen/generate_projects.py

@ -89,8 +89,18 @@ for template in reversed(sorted(templates)):
cmd.append(args.base + '/' + root + '/' + f)
jobs.append(jobset.JobSpec(cmd, shortname=out, timeout_seconds=None))
jobset.run(pre_jobs, maxjobs=args.jobs)
jobset.run(jobs, maxjobs=args.jobs)
err_cnt, _ = jobset.run(pre_jobs, maxjobs=args.jobs)
if err_cnt != 0:
print('ERROR: {count} error(s) encountered during preprocessing.'.format(
count=err_cnt),
file=sys.stderr)
sys.exit(1)
err_cnt, _ = jobset.run(jobs, maxjobs=args.jobs)
if err_cnt != 0:
print('ERROR: {count} error(s) found while generating projects.'.format(
count=err_cnt),
file=sys.stderr)
sys.exit(1)
if test is not None:
for s, g in test.items():

Loading…
Cancel
Save