server.mono: covering the startup function
The trick is that we fall precisely in the case where pytest-cov needs a hand: termination by signal (SIGTERM), hence we need the `cleanup_on_signal` method. Unfortunately, this does not work with pytest-7.3.1 and pytest-cov-4.0.0 as the previously lax `test-requirements.txt` would install (detected on the `heptapod-gitaly` base image, which does not preinstall these), so we fix versions as they are in py-heptapod (hence also as they already were in HDK settups, since `py-heptapod` is installed first). Then, we need the server to actually be running to be sure that the handling has been done before we terminate. Still not covering the case of `SIGINT` while doing some Mercurial processing. We'd probably need to launch a long enough gRPC method for that.
parent
86e2b479
No related branches found
No related tags found
Loading
Please register or sign in to comment