mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-06-15 08:17:05 +00:00
ci: raise locked-memory limit before running tests
- Region.PreallocateInsideSession.shmem and Example.region.shmem failed
because mlock() of the managed segment/region hit RLIMIT_MEMLOCK on the
runner ("Cannot allocate memory"); the region example then hung until
its 30s timeout
- raise the limit via `sudo prlimit` in the same shell that launches
ctest (per-process, so it must be done here, not in a prior step)
- replace threeal/ctest-action with the equivalent ctest invocation
This commit is contained in:
committed by
Dennis Klein
parent
0fd27cbbc3
commit
7e30c33bcf
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -54,9 +54,12 @@ jobs:
|
||||
CMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
|
||||
- name: Test
|
||||
uses: threeal/ctest-action@v1
|
||||
with:
|
||||
test-dir: build
|
||||
run: |
|
||||
# Region/segment tests mlock() shared memory; raise the locked-memory
|
||||
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
|
||||
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
||||
ulimit -l
|
||||
ctest --test-dir build --output-on-failure --no-tests=error
|
||||
|
||||
- name: Install
|
||||
run: cmake --install build
|
||||
@@ -111,9 +114,12 @@ jobs:
|
||||
${{ matrix.sanitizer.options }}
|
||||
|
||||
- name: Test
|
||||
uses: threeal/ctest-action@v1
|
||||
with:
|
||||
test-dir: build
|
||||
run: |
|
||||
# Region/segment tests mlock() shared memory; raise the locked-memory
|
||||
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
|
||||
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
||||
ulimit -l
|
||||
ctest --test-dir build --output-on-failure --no-tests=error
|
||||
|
||||
static-analysis:
|
||||
if: github.repository == 'FairRootGroup/FairMQ'
|
||||
|
||||
Reference in New Issue
Block a user