From 1614c24f764e28b8966e706c7207725f44631d12 Mon Sep 17 00:00:00 2001 From: Alexander Kiselev Date: Sun, 22 Feb 2026 16:50:39 -0800 Subject: [PATCH] fix: split release workflow integration tests to match test.yml structure Running all tests with `cargo test --test '*'` causes cross-contamination: OnceLock-based test binaries (comment_tests etc.) leave the bridge running, and daemon_tests reuses then stops that bridge, leaving subsequent daemon tests unable to start a fresh bridge ("Could not find project"). Split into separate cargo test invocations matching test.yml groups, with explicit bridge stops between groups to ensure clean state. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fad94ec..20050b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,9 +84,32 @@ jobs: - name: Run unit tests run: cargo test --lib --verbose - - name: Run integration tests - run: cargo test --test '*' --verbose -- --nocapture - timeout-minutes: 80 + - name: Run CLI tests + run: cargo test --test e2e --test output_format_integration --verbose + + - name: Run read-only integration tests + run: cargo test --test readonly_tests --test command_tests --verbose -- --nocapture + timeout-minutes: 30 + env: + RUST_LOG: info + + - name: Stop bridge before mutation tests + run: cargo run -- stop --project ci-test || true + shell: bash + + - name: Run mutation integration tests + run: cargo test --test comment_tests --test symbol_tests --test patch_tests --test type_tests --test script_tests --verbose -- --nocapture + timeout-minutes: 30 + env: + RUST_LOG: info + + - name: Stop bridge before infrastructure tests + run: cargo run -- stop --project ci-test || true + shell: bash + + - name: Run infrastructure tests + run: cargo test --test daemon_tests --test reliability_tests --test project_tests --verbose -- --nocapture + timeout-minutes: 30 env: RUST_LOG: info