From 000c01492d0c324bee617e82a5fea5e4df6f726a Mon Sep 17 00:00:00 2001 From: David Tai Date: Sat, 24 Oct 2026 12:42:31 -0500 Subject: [PATCH 1/6] Run the standalone allocation cap tests in Fork Tests tests/standalone/process_allocation_cap.cpp and process_allocation_cap_metal.cpp ran in no CI job. The process allocation cap is install-once in each process, so the tests cannot go into the tests binary. tests/CMakeLists.txt now builds them as their own executables on Metal builds and gives one ctest entry to each case of the Metal test. The build-cpp job of Fork Tests builds them in its existing build step and runs them with ctest, one fresh process for each case. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/fork-tests.yml | 13 +++++++++++ fork.yaml | 6 ++++- tests/CMakeLists.txt | 38 ++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fork-tests.yml b/.github/workflows/fork-tests.yml index 6b36622c56..c95b9c4a15 100644 --- a/.github/workflows/fork-tests.yml +++ b/.github/workflows/fork-tests.yml @@ -7,6 +7,8 @@ name: Fork Tests # build-wheel builds the Python wheel and uploads it. # build-cpp builds the C++ library and tests, and runs the C++ tests # with the GPU and then with the CPU as the default device. +# Then it runs the standalone allocation cap tests, one +# process for each case. # python-gpu runs the Python tests with the GPU as the default device. # python-cpu runs the Python tests with the CPU as the default device. # metal-build-and-test @@ -138,6 +140,17 @@ jobs: LLVM_PROFILE_FILE: ${{ runner.temp }}/profiles/cpu-%p-%m.profraw run: ./build/tests/tests + - name: Run the standalone allocation cap tests + # The process allocation cap is install-once in each process. ctest + # runs each entry in a fresh process, and the Metal test runs one case + # in each entry (tests/CMakeLists.txt). The build step built them. + if: ${{ !cancelled() && steps.build.outcome == 'success' }} + env: + LLVM_PROFILE_FILE: ${{ runner.temp }}/profiles/cap-%p-%m.profraw + run: | + ctest --test-dir build -R '^process_allocation_cap' \ + --output-on-failure --no-tests=error + - name: Merge the coverage profiles if: ${{ !cancelled() && steps.build.outcome == 'success' }} run: | diff --git a/fork.yaml b/fork.yaml index 376a8bc9db..9a5a2a9cc4 100644 --- a/fork.yaml +++ b/fork.yaml @@ -116,6 +116,8 @@ def: memory limits are unchanged. Residency insertion rolls back failed registration before callers release buffers, including ordinary uncapped allocations. Standalone CPU and real-Metal tests cover delayed release, churn, and injected construction failures. + `tests/CMakeLists.txt` builds them as their own executables, because the cap is + install-once in each process, and gives one ctest entry to each case of the Metal test. Capped no-copy pages are first touched on the CPU so process physical footprint accounts for pages later written by the GPU. The native footprint contract is documented in `docs/src/usage/unified_memory.rst`. @@ -124,6 +126,7 @@ def: - "mlx/backend/common/allocation_footprint.h" - "mlx/backend/common/process_allocation_cap.h" - "tests/standalone/process_allocation_cap*.cpp" + - "tests/CMakeLists.txt" - "mlx/backend/common/buffer_cache.h" - "mlx/backend/metal/allocator.h" - "mlx/backend/metal/allocator.cpp" @@ -369,7 +372,8 @@ def: `fork-tests.yml` builds the fork with Metal and runs its C++ and Python tests on GitHub-hosted macOS runners. Two jobs build in parallel. One job builds the Python wheel. The other job builds the C++ library and tests, and runs the C++ tests with the - GPU and then with the CPU as the default device. The Python tests run in shard jobs: + GPU and then with the CPU as the default device. Then it runs the standalone allocation + cap tests with ctest, one process for each case. The Python tests run in shard jobs: one set with the GPU as the default device, and one set with the CPU. `.github/scripts/fork-tests/python-shards.json` gives the shards. `python_shards.py` fails a job when a test file is in no shard or in two shards, and diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index dcfe8b42c5..9b78e16ceb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -51,3 +51,41 @@ target_link_options(tests PRIVATE ${SANITIZER_LINK_FLAGS}) doctest_discover_tests(tests) add_test(NAME tests COMMAND tests) + +# The standalone tests of the process allocation cap. The cap is install-once in +# each process, so these tests are not in the tests binary. Each ctest entry +# runs in a fresh process, and the Metal test runs one case in each process. +if(MLX_BUILD_METAL) + add_executable( + process_allocation_cap + ${PROJECT_SOURCE_DIR}/tests/standalone/process_allocation_cap.cpp) + target_link_libraries(process_allocation_cap PRIVATE mlx) + # The test checks its results with assert(). + target_compile_options(process_allocation_cap PRIVATE -UNDEBUG) + add_test(NAME process_allocation_cap COMMAND process_allocation_cap) + + add_executable( + process_allocation_cap_metal + ${PROJECT_SOURCE_DIR}/tests/standalone/process_allocation_cap_metal.cpp) + # The test replaces Metal device methods with the Objective-C runtime. + target_link_libraries(process_allocation_cap_metal PRIVATE mlx objc) + foreach( + case + install + retained + churn + foreign + gpu + late + concurrent + footprint-delta + gpu-footprint + nil-foreign + registration-capped + registration-foreign + registration-ordinary + registration-ordinary-foreign) + add_test(NAME process_allocation_cap_metal.${case} + COMMAND process_allocation_cap_metal ${case}) + endforeach() +endif() From 5e9ba74f1073e55ef7bcee2dea17ad7752e124dc Mon Sep 17 00:00:00 2001 From: David Tai Date: Sat, 24 Oct 2026 12:45:49 -0500 Subject: [PATCH 2/6] Port the standalone Metal cap test to the owning allocator API The upstream merge (ml-explore/mlx #4634) made allocator::malloc return an owning Data and removed allocator::free. No CI job built tests/standalone/process_allocation_cap_metal.cpp, so it stopped compiling unseen: the first Fork Tests run that builds it fails with 15 errors. The test now calls allocator().malloc and allocator().free, which return and free a plain Buffer as the old functions did, the same port that the merge made in tests/residency_tests.cpp. The cases and their checks do not change. Co-Authored-By: Claude Opus 5.5 (1M context) --- fork.yaml | 2 + .../process_allocation_cap_metal.cpp | 48 +++++++++---------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/fork.yaml b/fork.yaml index 9a5a2a9cc4..384658f5cb 100644 --- a/fork.yaml +++ b/fork.yaml @@ -118,6 +118,8 @@ def: real-Metal tests cover delayed release, churn, and injected construction failures. `tests/CMakeLists.txt` builds them as their own executables, because the cap is install-once in each process, and gives one ctest entry to each case of the Metal test. + The Metal test uses `allocator().malloc` / `allocator().free`, which return and free a + plain `Buffer`, because upstream #4634 made `allocator::malloc` return an owning `Data`. Capped no-copy pages are first touched on the CPU so process physical footprint accounts for pages later written by the GPU. The native footprint contract is documented in `docs/src/usage/unified_memory.rst`. diff --git a/tests/standalone/process_allocation_cap_metal.cpp b/tests/standalone/process_allocation_cap_metal.cpp index 23c9ded0da..5c69db2456 100644 --- a/tests/standalone/process_allocation_cap_metal.cpp +++ b/tests/standalone/process_allocation_cap_metal.cpp @@ -174,7 +174,7 @@ void concurrent_case(size_t page) { for (size_t i = 0; i < workers.size(); ++i) { workers[i] = std::thread([&, i] { try { - buffers[i] = a::malloc(chunk); + buffers[i] = a::allocator().malloc(chunk); } catch (...) { errors[i] = std::current_exception(); } @@ -192,7 +192,7 @@ void concurrent_case(size_t page) { pending_snapshot = snapshot(); if (both_pending) { try { - contender = a::malloc(page); + contender = a::allocator().malloc(page); } catch (const std::exception&) { contender_refused = true; } @@ -225,21 +225,21 @@ void concurrent_case(size_t page) { snapshot().live_bytes == 2 * chunk, "pending-to-live transfer changed cap charge"); for (auto buffer : buffers) { - a::free(buffer); + a::allocator().free(buffer); } clear_cache(); require( snapshot().unreclaimed_bytes == 2 * chunk && snapshot().charged_bytes == cap, "allocator release refunded externally retained Metal backing"); - refuses([&] { a::malloc(page); }); + refuses([&] { a::allocator().malloc(page); }); state.retained[0]->release(); settled(heap + chunk); - auto recovered = a::malloc(chunk); + auto recovered = a::allocator().malloc(chunk); require( snapshot().charged_bytes == cap && snapshot().peak_bytes == cap, "callback recovery failed exact-cap replacement"); - a::free(recovered); + a::allocator().free(recovered); clear_cache(); settled(heap + chunk); state.retained[1]->release(); @@ -318,7 +318,7 @@ void failure_case(const std::string& mode, size_t page) { if (foreign) { (void)a::make_buffer(foreign_pages, page); } else { - (void)a::malloc(page); + (void)a::allocator().malloc(page); } }); } @@ -413,8 +413,8 @@ int main(int argc, char** argv) { } else if (mode.find("registration-") == 0 || mode == "nil-foreign") { failure_case(mode, page); } else if (mode == "late") { - auto b = a::malloc(page); - a::free(b); + auto b = a::allocator().malloc(page); + a::allocator().free(b); clear_cache(); refuses([] { install_process_allocation_cap(8 << 20); }); require(!snapshot().installed, "late install mutated state"); @@ -434,54 +434,54 @@ int main(int argc, char** argv) { refuses([&] { install_process_allocation_cap(cap); }); refuses([&] { install_process_allocation_cap(cap + page); }); require(snapshot().limit_bytes == cap, "limit changed"); - refuses([] { a::malloc(SIZE_MAX); }); + refuses([] { a::allocator().malloc(SIZE_MAX); }); require( snapshot().charged_bytes == heap, "overflow leaked reservation"); - auto exact = a::malloc(cap - heap); + auto exact = a::allocator().malloc(cap - heap); require(snapshot().charged_bytes == cap, "exact fill mismatch"); - refuses([&] { a::malloc(page); }); - a::free(exact); + refuses([&] { a::allocator().malloc(page); }); + a::allocator().free(exact); clear_cache(); settled(heap); } else if (mode == "retained") { - auto b = a::malloc(cap - heap); + auto b = a::allocator().malloc(cap - heap); auto* metal = static_cast(b.ptr()); metal->retain(); - a::free(b); + a::allocator().free(b); clear_cache(); require( snapshot().unreclaimed_bytes == cap - heap, "release refunded early"); require(snapshot().charged_bytes == cap, "extra reference lost charge"); - refuses([&] { a::malloc(page); }); + refuses([&] { a::allocator().malloc(page); }); metal->release(); settled(heap); - auto replacement = a::malloc(cap - heap); - a::free(replacement); + auto replacement = a::allocator().malloc(cap - heap); + a::allocator().free(replacement); clear_cache(); settled(heap); } else if (mode == "churn") { - auto tiny = a::malloc(8); + auto tiny = a::allocator().malloc(8); require( static_cast(tiny.ptr())->heap() != nullptr, "fixed heap unused"); require(snapshot().charged_bytes == heap, "heap double charged"); - a::free(tiny); + a::allocator().free(tiny); clear_cache(); for (size_t i = 0; i < 1000; ++i) { const auto size = page * (1 + i % 31); - auto b = a::malloc(size); + auto b = a::allocator().malloc(size); const auto bytes = snapshot().charged_bytes; auto pointer = b.ptr(); - a::free(b); + a::allocator().free(b); require( snapshot().cached_bytes > 0 && snapshot().charged_bytes == bytes, "cache transfer refunded credit"); - auto reused = a::malloc(size); + auto reused = a::allocator().malloc(size); require( reused.ptr() == pointer && snapshot().charged_bytes == bytes, "cache reuse allocated new backing"); - a::free(reused); + a::allocator().free(reused); clear_cache(); settled(heap); } From a7d8548a9d900908051eaa09cde353819f22f0ac Mon Sep 17 00:00:00 2001 From: David Tai Date: Sat, 24 Oct 2026 12:53:18 -0500 Subject: [PATCH 3/6] Make the standalone Metal cap test match the device The first CI run of the Metal cases failed 9 of 15 on the hosted runner, which has a virtual GPU ("Apple Paravirtual device"). The allocator makes no fixed heap there (metal/allocator.cpp), and the test assumed one: - install, retained, churn, foreign, gpu required heap_bytes > 0. They now require a heap exactly when the device is not paravirtual, and check the heap charge and the heap use against that. - The registration cases inject a failure into the creation of a new residency set. With the heap in set 0, the first page needs a new set; without it, the page went into the empty set 0 and the failure was never reached. The cases now fill one set with a page first, so the next page needs a new set on both devices, and require that residency sets are enabled. The binary prints the device name and whether residency sets are enabled, so the log shows which paths ran. Co-Authored-By: Claude Opus 5.5 (1M context) --- fork.yaml | 4 ++ .../process_allocation_cap_metal.cpp | 41 +++++++++++++++---- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/fork.yaml b/fork.yaml index 384658f5cb..7c34f3b087 100644 --- a/fork.yaml +++ b/fork.yaml @@ -120,6 +120,10 @@ def: install-once in each process, and gives one ctest entry to each case of the Metal test. The Metal test uses `allocator().malloc` / `allocator().free`, which return and free a plain `Buffer`, because upstream #4634 made `allocator::malloc` return an owning `Data`. + The allocator makes no fixed heap on a virtual GPU (the GitHub-hosted runner), so the + cases check the heap charge and heap use that match the device. The registration cases + fill one residency set with a page first, so that the injected failure of a new set is + reached with or without the heap in set 0. Capped no-copy pages are first touched on the CPU so process physical footprint accounts for pages later written by the GPU. The native footprint contract is documented in `docs/src/usage/unified_memory.rst`. diff --git a/tests/standalone/process_allocation_cap_metal.cpp b/tests/standalone/process_allocation_cap_metal.cpp index 5c69db2456..2a5ad7a409 100644 --- a/tests/standalone/process_allocation_cap_metal.cpp +++ b/tests/standalone/process_allocation_cap_metal.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "mlx/allocator.h" #include "mlx/backend/metal/device.h" @@ -34,6 +35,12 @@ void refuses(F f) { auto snapshot() { return get_process_allocation_cap_snapshot(); } +// The allocator makes no fixed heap on a virtual GPU, such as the one of a +// GitHub-hosted macOS runner (metal/allocator.cpp). +bool paravirtual() { + return std::get(gpu::device_info(0).at("device_name")) == + "Apple Paravirtual device"; +} void settled(size_t expected) { for (int i = 0; i < 200 && snapshot().charged_bytes != expected; ++i) { std::this_thread::sleep_for(std::chrono::milliseconds(5)); @@ -289,6 +296,13 @@ void failure_case(const std::string& mode, size_t page) { } set_wired_limit(8 << 20); sets.set_max_bytes_per_set(page); + require(sets.enabled(), "residency sets are disabled on this device"); + // The failure is injected where a new residency set is made. Fill one set + // with a page first, so that the next page needs a new set. On a device with + // the fixed heap, set 0 holds the heap and the filler gets a new set; on a + // device without it, the filler goes into the empty set 0. + auto filler = a::allocator().malloc(page); + const auto filled = capped ? snapshot().charged_bytes : 0; const auto wired = sets.wired_size(); const auto resources = get_num_resources(); const auto active = get_active_memory(); @@ -336,7 +350,7 @@ void failure_case(const std::string& mode, size_t page) { "failed registration changed allocator counters"); if (capped) { require( - snapshot().charged_bytes == baseline + page, + snapshot().charged_bytes == filled + page, "retained failure refunded early"); } require( @@ -345,11 +359,16 @@ void failure_case(const std::string& mode, size_t page) { retained_failure_buffer->release(); retained_failure_buffer = nullptr; if (capped) { - settled(baseline); + settled(filled); } if (foreign) { require(munmap(foreign_pages, page) == 0, "foreign pages lost ownership"); } + a::allocator().free(filler); + clear_cache(); + if (capped) { + settled(baseline); + } } // Capped backing is owned no-copy VM. Pages first written by the GPU must // still be charged to this process, or the OS cannot see the model's memory. @@ -404,6 +423,14 @@ int main(int argc, char** argv) { require(argc == 2, "one fresh-process case required"); const std::string mode = argv[1]; const size_t page = static_cast(getpagesize()); + // Facts of the device that decide which paths the cases take. + std::cout << "device: " + << std::get(gpu::device_info(0).at("device_name")) + << ", residency sets: " + << (metal::device(Device::gpu).residency_sets().enabled() + ? "enabled" + : "disabled") + << '\n'; if (mode == "footprint-delta") { footprint_delta_case(); } else if (mode == "gpu-footprint") { @@ -426,9 +453,8 @@ int main(int argc, char** argv) { install_process_allocation_cap(cap); const auto baseline = snapshot(); const auto heap = baseline.heap_bytes; - require( - heap > 0 && baseline.charged_bytes == heap, - "existing heap not charged"); + require((heap > 0) == !paravirtual(), "fixed heap does not match device"); + require(baseline.charged_bytes == heap, "existing heap not charged"); require(baseline.limit_bytes == cap, "wrong cap"); if (mode == "install") { refuses([&] { install_process_allocation_cap(cap); }); @@ -463,8 +489,9 @@ int main(int argc, char** argv) { } else if (mode == "churn") { auto tiny = a::allocator().malloc(8); require( - static_cast(tiny.ptr())->heap() != nullptr, - "fixed heap unused"); + (static_cast(tiny.ptr())->heap() != nullptr) == + (heap > 0), + "fixed heap use does not match device"); require(snapshot().charged_bytes == heap, "heap double charged"); a::allocator().free(tiny); clear_cache(); From db97e909fed36a54a3f4b220216b721eb78242a7 Mon Sep 17 00:00:00 2001 From: David Tai Date: Sat, 24 Oct 2026 13:10:16 -0500 Subject: [PATCH 4/6] Check the small buffer charge of the churn case on both devices Fork Tests job 120943910531: churn failed "heap double charged" on the hosted runner. Without the fixed heap, the 8-byte buffer is a capped no-copy buffer of its own and is charged one page. The case now expects that page when the buffer is not from the heap, and waits for the credit to return before the churn loop. Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/standalone/process_allocation_cap_metal.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/standalone/process_allocation_cap_metal.cpp b/tests/standalone/process_allocation_cap_metal.cpp index 2a5ad7a409..ef53404266 100644 --- a/tests/standalone/process_allocation_cap_metal.cpp +++ b/tests/standalone/process_allocation_cap_metal.cpp @@ -488,13 +488,18 @@ int main(int argc, char** argv) { settled(heap); } else if (mode == "churn") { auto tiny = a::allocator().malloc(8); + const bool from_heap = + static_cast(tiny.ptr())->heap() != nullptr; require( - (static_cast(tiny.ptr())->heap() != nullptr) == - (heap > 0), - "fixed heap use does not match device"); - require(snapshot().charged_bytes == heap, "heap double charged"); + from_heap == (heap > 0), "fixed heap use does not match device"); + // A small buffer from the heap adds no charge. Without the heap it is + // a capped buffer of its own, charged one page. + require( + snapshot().charged_bytes == heap + (from_heap ? 0 : page), + "small buffer charge wrong"); a::allocator().free(tiny); clear_cache(); + settled(heap); for (size_t i = 0; i < 1000; ++i) { const auto size = page * (1 + i % 31); auto b = a::allocator().malloc(size); From cfd37c5e672ae4b97353b2fe25f549051053643d Mon Sep 17 00:00:00 2001 From: David Tai Date: Sat, 24 Oct 2026 13:37:14 -0500 Subject: [PATCH 5/6] Skip the registration cases where the device has no residency sets David ruled on 2026-10-24: skip by capability. The 4 registration-* cases inject a failure into the creation of a residency set. When ResidencySets::enabled() is false (no Metal 3 GPU family or macOS before 15, as on the virtual GPU of the hosted runner), the allocator registers nothing and that path does not exist. The cases then print the reason and exit with 77, which their ctest entries declare as SKIP_RETURN_CODE, so ctest reports them as skipped. On a device with residency sets they run unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) --- fork.yaml | 5 +++++ tests/CMakeLists.txt | 6 ++++++ tests/standalone/process_allocation_cap_metal.cpp | 11 +++++++++++ 3 files changed, 22 insertions(+) diff --git a/fork.yaml b/fork.yaml index 7c34f3b087..bb9bad1772 100644 --- a/fork.yaml +++ b/fork.yaml @@ -124,6 +124,11 @@ def: cases check the heap charge and heap use that match the device. The registration cases fill one residency set with a page first, so that the injected failure of a new set is reached with or without the heap in set 0. + When the device has no residency sets (`ResidencySets::enabled()` is false: no Metal 3 + GPU family or macOS before 15, as on the virtual GPU of the hosted runner), the path + these cases test does not exist. They then print the reason and exit with 77, which + ctest reports as skipped (`SKIP_RETURN_CODE`). David ruled on 2026-10-24 to skip by + capability, like the 4 GiB capability skip below. Capped no-copy pages are first touched on the CPU so process physical footprint accounts for pages later written by the GPU. The native footprint contract is documented in `docs/src/usage/unified_memory.rst`. diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9b78e16ceb..8a00f114d8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -87,5 +87,11 @@ if(MLX_BUILD_METAL) registration-ordinary-foreign) add_test(NAME process_allocation_cap_metal.${case} COMMAND process_allocation_cap_metal ${case}) + # The registration cases exit with 77 when the device has no residency sets, + # so ctest reports them as skipped. + if(case MATCHES "^registration-") + set_tests_properties(process_allocation_cap_metal.${case} + PROPERTIES SKIP_RETURN_CODE 77) + endif() endforeach() endif() diff --git a/tests/standalone/process_allocation_cap_metal.cpp b/tests/standalone/process_allocation_cap_metal.cpp index ef53404266..5d86b3b049 100644 --- a/tests/standalone/process_allocation_cap_metal.cpp +++ b/tests/standalone/process_allocation_cap_metal.cpp @@ -437,6 +437,17 @@ int main(int argc, char** argv) { gpu_footprint_case(); } else if (mode == "concurrent") { concurrent_case(page); + } else if ( + mode.find("registration-") == 0 && + !metal::device(Device::gpu).residency_sets().enabled()) { + // These cases inject a failure into the creation of a residency set. + // Without residency sets (no Metal 3 GPU family or macOS < 15, as on a + // virtual GPU) the allocator registers nothing, so the path under test + // does not exist. Exit code 77 is SKIP_RETURN_CODE in + // tests/CMakeLists.txt. + std::cout << "SKIP " << mode + << ": residency sets are disabled on this device\n"; + return 77; } else if (mode.find("registration-") == 0 || mode == "nil-foreign") { failure_case(mode, page); } else if (mode == "late") { From c3694e4ae347a6ac80969895188d5e2a0311db08 Mon Sep 17 00:00:00 2001 From: David Tai Date: Sat, 24 Oct 2026 13:49:15 -0500 Subject: [PATCH 6/6] Print the output of every standalone cap case in the CI log ctest shows the output of a failed case only, so the reason that a registration case printed for its skip did not reach the log. The step now runs ctest with -V, which prints the output of every case (a few lines each). Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/fork-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fork-tests.yml b/.github/workflows/fork-tests.yml index c95b9c4a15..8af6aac956 100644 --- a/.github/workflows/fork-tests.yml +++ b/.github/workflows/fork-tests.yml @@ -144,12 +144,14 @@ jobs: # The process allocation cap is install-once in each process. ctest # runs each entry in a fresh process, and the Metal test runs one case # in each entry (tests/CMakeLists.txt). The build step built them. + # -V prints the output of every case, so the log shows why a case + # was skipped (a few lines for each case). if: ${{ !cancelled() && steps.build.outcome == 'success' }} env: LLVM_PROFILE_FILE: ${{ runner.temp }}/profiles/cap-%p-%m.profraw run: | - ctest --test-dir build -R '^process_allocation_cap' \ - --output-on-failure --no-tests=error + ctest --test-dir build -R '^process_allocation_cap' -V \ + --no-tests=error - name: Merge the coverage profiles if: ${{ !cancelled() && steps.build.outcome == 'success' }}