From 163eb89477f1c7ee0808fbd65e2ccb0c21ab12e0 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Sat, 28 Nov 2026 11:12:41 +0100 Subject: [PATCH] ci: isolate FreeBSD tests to release retained UI memory (#4228) * ci: serialize FreeBSD tests to bound concurrent render memory * Isolate FreeBSD tests in fresh processes to release retained UI state --------- Co-authored-by: Fredrik Hallin --- .github/workflows/freebsd.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 8967f9431..942b8f470 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -29,4 +29,21 @@ permissions: jobs: freebsd: # Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos. - uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main \ No newline at end of file + uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main + with: + # Serial libtest still accumulates UI process state until the VM runs out of RAM. + # Keep every test, but release process-owned caches after each one, as the main gate does. + custom-test-command: | + export CARGO_PROFILE_DEV_DEBUG=0 + nextest_dir=$(mktemp -d) + curl -fLsS --retry 3 -o "$nextest_dir/nextest.tar.gz" https://github.com/nextest-rs/nextest/releases/download/cargo-nextest-0.9.150/cargo-nextest-0.9.150-x86_64-unknown-freebsd.tar.gz + if [ "$(sha256 -q "$nextest_dir/nextest.tar.gz")" != 7f75971eb6e0d44dfa76e75a936b438140e69292793d630e6c02331a9c6b3c31 ]; then + echo 'error: cargo-nextest archive checksum mismatch' >&2 + exit 1 + fi + tar -xzf "$nextest_dir/nextest.tar.gz" -C "$nextest_dir" + export PATH="$nextest_dir:$PATH" + failed=0 + cargo nextest run --workspace --locked --no-fail-fast --test-threads=1 || failed=1 + cargo test --workspace --locked --doc --no-fail-fast || failed=1 + exit "$failed"