]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/ftests: synchronize between github runners
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 22 Feb 2023 17:06:13 +0000 (10:06 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 27 Feb 2023 16:45:29 +0000 (09:45 -0700)
commitec78fee3b4970f24024be21fd20e3031dcbc71ab
tree5fd0a355e58579a1da258e55a6bbdaff9714e061
parentaa1148a7b50e7f8bc33cad0a013b9545716365a2
tests/ftests: synchronize between github runners

If a VM is shared between multiple github runners, there are chances of
each other stomping over other's run, if executed parallelly.  To avoid
the race between the runners, introduce lock file, that gets acquired
(created) when ftest.sh starts and get removed by ftest-nocontainer.sh,
this ensures that both test cases are executed before other runner,
that's waiting for its chance to run.  A runner would wait for
10 minutes before re-trying to run.  At the max, a runner would wait for
50 minutes (5 retries) before giving up.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml
tests/ftests/Makefile.am
tests/ftests/ftests-nocontainer.sh [deleted file]
tests/ftests/ftests-wrapper.sh [new file with mode: 0755]
tests/ftests/ftests.sh [deleted file]