Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Tests: 16 sculptforge_tests shards (4 Windows CI runners no longer pair the same heavy shards); CI keeps passed tests' full output so the slowest-tests table sees every test
islandmed0fa06892ef66
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 31323751..50e70af8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -198,10 +198,10 @@ jobs:if: runner.os == 'Linux'run: |xvfb-run -a -s "-screen 0 1920x1080x24" env LIBGL_ALWAYS_SOFTWARE=1 \- ctest --test-dir build -C Release --output-on-failure --output-junit ctest.xml -j 4 -I '${{ matrix.shard }},,${{ matrix.shards }}'+ ctest --test-dir build -C Release --output-on-failure --output-junit ctest.xml --test-output-size-passed 262144 -j 4 -I '${{ matrix.shard }},,${{ matrix.shards }}'- name: Test (C++ and Python API; UI tests need a display)if: runner.os == 'macOS'- run: ctest --test-dir build -C Release --output-on-failure --output-junit ctest.xml -LE ui -j 4 -I '${{ matrix.shard }},,${{ matrix.shards }}'+ run: ctest --test-dir build -C Release --output-on-failure --output-junit ctest.xml --test-output-size-passed 262144 -LE ui -j 4 -I '${{ matrix.shard }},,${{ matrix.shards }}'- name: Test (C++, Python API, UI tests with Mesa llvmpipe)if: runner.os == 'Windows'shell: pwsh@@ -214,7 +214,7 @@ jobs:}7z e mesa.7z x64/opengl32.dll x64/libgallium_wgl.dll -obuild/Release -y | Out-Null$env:GALLIUM_DRIVER = 'llvmpipe'- ctest --test-dir build -C Release --output-on-failure --output-junit ctest.xml -j 4 -I '${{ matrix.shard }},,${{ matrix.shards }}'+ ctest --test-dir build -C Release --output-on-failure --output-junit ctest.xml --test-output-size-passed 262144 -j 4 -I '${{ matrix.shard }},,${{ matrix.shards }}'if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }- name: Slowest tests (job summary; tells which test to split when a shard is the long pole)if: always()diff --git a/CMakeLists.txt b/CMakeLists.txtindex 066f3207..450f707e 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -586,10 +586,10 @@ if(SCULPTFORGE_BUILD_TESTS)if(MSVC)target_compile_options(sculptforge_tests PRIVATE /utf-8)endif()- # The suite as SCULPTFORGE_TEST_SHARDS processes (sculptforge_tests_0of8 ...; `ctest -j` runs them at once, CI does;+ # The suite as SCULPTFORGE_TEST_SHARDS processes (sculptforge_tests_0of16 ...; `ctest -j` runs them at once, CI does;# more shards than cores balance better), each with its own temporary folder so tests in different shards never# share a scratch file.- set(SCULPTFORGE_TEST_SHARDS 8 CACHE STRING "Number of ctest entries the sculptforge_tests suite is split into")+ set(SCULPTFORGE_TEST_SHARDS 16 CACHE STRING "Number of ctest entries the sculptforge_tests suite is split into")math(EXPR last_shard "${SCULPTFORGE_TEST_SHARDS} - 1")foreach(k RANGE ${last_shard})set(shard_tmp ${CMAKE_CURRENT_BINARY_DIR}/test-tmp/shard${k})diff --git a/tests/test_main.cpp b/tests/test_main.cppindex e64ebcc8..c0b1ddf8 100644--- a/tests/test_main.cpp+++ b/tests/test_main.cpp@@ -3,7 +3,7 @@//// Runs every TEST registered by the tests/test_*.cpp files (with arguments: only the tests whose names contain// one of them, e.g. `sculptforge_tests qremesh_guide`). `--shard K/N` runs only shard K (0-based) of N, so the-// suite can run as N processes at once (CMake registers sculptforge_tests_0of8 ... for ctest -j); every test is+// suite can run as N processes at once (CMake registers sculptforge_tests_0of16 ... for ctest -j); every test is// in exactly one shard (sf::test::inShard).#include "TestHarness.h"