The script phase should have a retry option
Bug #1782380 reported by
Laurent Sesquès
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
In order to automate deployments, it would be nice for a script phase to be able to retry.
It can't be implemented in the script which is called, because mojo buffers the output until the command completes.
Here's an MP implementing it:
https:/
I tested very basically. Script with retry works as expected, and verify with retry is still ok (it inherits from script and already had retry implemented).
Related branches
lp://staging/~sajoupa/mojo/script-phase-retry
On hold
for merging
into
lp://staging/mojo
- Tom Haddon: Pending requested
-
Diff: 112 lines (+43/-29)2 files modifieddocs/mojo/readme.md (+4/-0)
mojo/phase.py (+39/-29)
To post a comment you must log in.
I'm not convinced we actually need this. I suspect most times this can be better expressed with the verify phase for things that need retrying. If there's a compelling reason for it, I could be convinced the other way though.