From 83a61b02288dbba0389c85f0ceeef0b7184dcba0 Mon Sep 17 00:00:00 2001 From: Tarik Moussa Date: Sun, 31 May 2026 23:57:36 +0200 Subject: [PATCH] ci: build test-fast with -j1 to avoid cc1plus OOM in the 800m container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause of the test-fast failures (confirmed via a pure-main probe PR that failed identically): the fast job builds with -j$(nproc) inside an 800m-memory container, and parallel Eigen+GoogleTest compilation OOM-kills cc1plus ("Killed signal terminated program cc1plus") non-deterministically — unrelated to branch content (only constants.hpp reaches the fast target's header closure on this branch, with trivial constexpr additions). Serialise the fast build (-j1), mirroring the Pi-protection already applied to the test-cgal job. Fixes test-fast on main and on this PR. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/cpp-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/cpp-tests.yml b/.gitea/workflows/cpp-tests.yml index 36b142a..84a4396 100644 --- a/.gitea/workflows/cpp-tests.yml +++ b/.gitea/workflows/cpp-tests.yml @@ -41,7 +41,11 @@ jobs: run: cmake -S code -B build -DCMAKE_BUILD_TYPE=Release - name: Build - run: nice -n 19 cmake --build build --target conformallab_tests -j$(nproc) + # Serial build (-j1): the 800m-limited container OOM-kills cc1plus when + # several Eigen+GoogleTest translation units compile in parallel + # (`-j$(nproc)`), failing test-fast non-deterministically regardless of + # branch content. Mirrors the Pi-protection already used by test-cgal. + run: nice -n 19 cmake --build build --target conformallab_tests -j1 - name: Run tests run: >