Skip to content

Commit

Permalink
services/nomad/buildbot: update config to split logs per-package
Browse files Browse the repository at this point in the history
this is slightly aspirational as sometimes packages still might be built
that the solver doesn't catch but should be correct in most cases
  • Loading branch information
classabbyamp committed Nov 13, 2024
1 parent 9210bf0 commit 7a2c6ac
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions services/nomad/build/buildbot.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,13 @@ class ShellCommandWithChanges(steps.ShellCommand):

@util.renderer
def build_packages(props):
# if a better solver is written
# cmds = []
# for p in str(props.getProperty('packages')).strip().split():
# cmds.append(util.ShellArg(
# command=['make', f'built/{p}'],
# logname=f'pkg:{p}',
# haltOnFailure=True,
# ))
cmds = [util.ShellArg(
command=['make', 'all'],
logname='build',
haltOnFailure=True,
)]
cmds = []
for p in str(props.getProperty('packages')).strip().split():
cmds.append(util.ShellArg(
command=['make', f'built/{p}'],
logname=f'pkg:{p}',
haltOnFailure=True,
))
if cmds:
cmds.append(util.ShellArg(
command=['make', 'clean'],
Expand Down

0 comments on commit 7a2c6ac

Please sign in to comment.