juju-solutions / matrix

Automatic testing of big software deployments under various failure conditions
Other
8 stars 9 forks source link

Matrix now fails rather than hangs when disconnected. #121

Closed pengale closed 7 years ago

pengale commented 7 years ago

If the websocket connection to the Juju controller was broken while a matrix test was running, the health check could become stuck in a "busy" state, never receiving updates that told it to proceed. This caused matrix to run for a long time, finally failing by timing out.

Now, matrix detects that the websocket connection has gone away, and raises an InfraFailure, terminating the test with an exit code of 1 as soon as it detects the connection failure.

@johnsca @seman @tvansteenburgh No longer a WIP, as I merged my python-libjuju and re-built it :-)

pengale commented 7 years ago

Merged, as tests pass and WIP status was just waiting for an updated python-libjuju build.