]> 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:46:45 +0000 (09:46 -0700)
commit14b89e26381739f3c17883769e6f988f530e5e7f
tree54cd7511d5fd0a3c3b570d6edd704090f3d85a2d
parenta94c746bd53d9f69f7658f71e8f9330862cbb38f
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>
(cherry picked from commit ec78fee3b4970f24024be21fd20e3031dcbc71ab)
.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]