Merge lp:~vila/tarmac/1392339-verify-timeout into lp:tarmac
Status: | Needs review |
---|---|
Proposed branch: | lp:~vila/tarmac/1392339-verify-timeout |
Merge into: | lp:tarmac |
Diff against target: |
154 lines (+66/-12) 2 files modified
tarmac/plugins/command.py (+27/-12) tarmac/plugins/tests/test_command.py (+39/-0) |
To merge this branch: | bzr merge lp:~vila/tarmac/1392339-verify-timeout |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
dobey | Needs Fixing | ||
Review via email: mp+241694@code.launchpad.net |
Commit message
Protect tarmac from committing suicide, allow config to specify a verify_timeout for verify_command
Description of the change
This adds a test to exercise the timeout handling for verify_command.
This test revealed several issues that are fixed here:
- by default 'verify_command' will not create a new process group so having
a safe-guard in place avoid killing tarmac itself,
- the code was expecting a command.
attribute not being set,
- add a verify_timeout config option so the default timeout can be
overridden.
That last one is used in the test itself and is needed on my project where
the verify_command includes a juju deployment that can take more than 15
minutes (the default timeout).
Unmerged revisions
- 437. By Vincent Ladeuil
-
Revert the controversial change.
- 436. By Vincent Ladeuil
-
Add test to cover bogus verify_timeout values handling.
- 435. By Vincent Ladeuil
-
Mark the bug as fixed
- 434. By Vincent Ladeuil
-
Protect tarmac from being killed with verify_command is killed.
Add a verify_timeout for long commands.
Drive-by fix command.config. debug not being set. - 433. By Vincent Ladeuil
-
Add a test to exercise the timeout handling for very_command. This reveals that the test runner is terminated as part of the process group of the verify_command.
I've reverted the copyright changes (even though they are generated from bzr history by a plugin, feedback welcome).
I've added tests for bogus verify_timeout values.
See more details in inline comments.