Skip to content
Snippets Groups Projects
Commit 57761166 authored by Georges Racinet's avatar Georges Racinet
Browse files

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
2 merge requests!151heptapod#743: making 0.36 the new stable,!145Pool of repository working directories
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment