Ticket #150 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

"New-style" BuildFactory.addStep with ShellCommand disregards timeout keyword argument

Reported by: exarkun Owned by:
Priority: major Milestone: 0.7.7
Version: 0.7.6 Keywords:
Cc:

Description

If a BuildFactory's __init__ does this:

    self.addStep(ShellCommand, timeout=60 * 60 * 2)

then the ShellCommand? will have a timeout of 2 hours. If it's done this way instead:

    self.addStep(ShellCommand(timeout=60 * 60 * 2))

then the timeout will be the default 20 minutes. The documentation suggests that the former is deprecated or pending deprecation, though.

Change History

comment:1 Changed 5 years ago by warner

I just pushed a fix, [b060cf9b5d56366b6e505e81722004885f40cec6], that ought to fix this. It should also make sure that 'env' and 'workdir' are recorded too.

comment:2 Changed 5 years ago by warner

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from undecided to 0.7.7

I did some brief manual testing on this, looks like it works.

Note: See TracTickets for help on using tickets.