matrix-org / complement

Matrix compliance test suite
Apache License 2.0
61 stars 52 forks source link

Gracefully stop containers #631

Closed S7evinK closed 1 year ago

S7evinK commented 1 year ago

If we're running Dendrite with coverage enabled, we need to gracefully stop the containers, as otherwise the coverage data can't be written to disk. ContainerStop will still kill the container if it fails to stop within 1 second.

As this will be used for every homeserver implementation, an alternative could be to check runtime.Homeserver and only always gracefully stop containers if it is Dendrite.