]> git.ipfire.org Git - thirdparty/bind9.git/commit
Report hung system tests
authorMichal Nowak <mnowak@isc.org>
Wed, 16 Aug 2023 14:19:30 +0000 (16:19 +0200)
committerMichal Nowak <mnowak@isc.org>
Thu, 5 Oct 2023 12:57:26 +0000 (14:57 +0200)
commit35792b1700b404b2eac7f0c60f6dfbf9a6bb3e31
tree3a87990b2cf61a3d00ffe6bd74ed58aafa1695a6
parenta6b5cf4c54a0605eee496fac4a25f28393e776d3
Report hung system tests

At times, a problem might occur where a test is not responding,
especially in the CI, determining the specific test responsible can be
difficult. Fortunately, when running tests with the pytest runner,
pytest sets the PYTEST_CURRENT_TEST environment variable to the current
test nodeid and stage. Afterward, the variable can be examined to
identify the test that has stopped responding.

The monitoring script needs to be started in the background. Still, the
shell executor used for BSD and FIPS testing can't handle the background
process cleanly, and the script step will wait for the background
process for the entire duration of the background process (currently
3000 seconds). Therefore, run the monitoring script only when the Docker
executor is used where this is not a problem.
.gitlab-ci.yml
util/get-running-system-tests.py [new file with mode: 0755]