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 Dec 14, 2024
1 parent c837c0f commit 399c550
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 399c550

Please sign in to comment.