From 7e30c33bcf48d2c0d79b0e5681b5db220cbd8807 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Tue, 9 Jun 2026 17:03:57 +0200 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bebcf6cd..43fb8beb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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'