From d9413cec0ff196577a0cd9cff04884d180e830fc Mon Sep 17 00:00:00 2001 From: BFlat Date: Wed, 7 Oct 2026 16:19:48 +0700 Subject: [PATCH] FreeBSD CI: run the GPU integration tests one at a time (#576) The VM's software Vulkan driver crashes (SIGSEGV) when several tests set up a GPU device at once: about half of recent FreeBSD runs died within 0.05 s of a GPU test binary starting 2-3 tests in parallel (drag_preview_canvas, color_managed_canvas, adjust_preview_gpu), before any of them finished. Run photocraft-ui-egui's integration tests with --test-threads=1 there; everything else is unchanged. Co-authored-by: Claude Opus 5.5 --- .github/workflows/freebsd.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 00aac09a..a5b7f0a2 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -52,7 +52,12 @@ jobs: git config --global --add safe.directory "*" rustc --version CARGO_PROFILE_DEV_DEBUG=0 cargo build --workspace --all-targets --locked - CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked + CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked --exclude photocraft-ui-egui + CARGO_PROFILE_DEV_DEBUG=0 cargo test -p photocraft-ui-egui --locked --lib + CARGO_PROFILE_DEV_DEBUG=0 cargo test -p photocraft-ui-egui --locked --doc + # The VM's software Vulkan driver crashes (SIGSEGV) when several tests set up a GPU + # device at once, so the GPU integration tests run one at a time here. + CARGO_PROFILE_DEV_DEBUG=0 cargo test -p photocraft-ui-egui --locked --test '*' -- --test-threads=1 # The release package, as release.yml builds it. Free the debug build's disk first. rm -rf target/debug CARGO_BUILD_JOBS=4 bash packaging/freebsd/package.sh