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:
Dennis Klein
2026-06-09 17:03:57 +02:00
committed by Dennis Klein
parent 0fd27cbbc3
commit 7e30c33bcf

View File

@@ -54,9 +54,12 @@ jobs:
CMAKE_CXX_COMPILER_LAUNCHER=ccache CMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Test - name: Test
uses: threeal/ctest-action@v1 run: |
with: # Region/segment tests mlock() shared memory; raise the locked-memory
test-dir: build # 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 - name: Install
run: cmake --install build run: cmake --install build
@@ -111,9 +114,12 @@ jobs:
${{ matrix.sanitizer.options }} ${{ matrix.sanitizer.options }}
- name: Test - name: Test
uses: threeal/ctest-action@v1 run: |
with: # Region/segment tests mlock() shared memory; raise the locked-memory
test-dir: build # 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: static-analysis:
if: github.repository == 'FairRootGroup/FairMQ' if: github.repository == 'FairRootGroup/FairMQ'