From d84cae9525bb4886c1c58b6b90cc1f85b2cb57eb Mon Sep 17 00:00:00 2001 From: audichuang <72485427+audichuang@users.noreply.github.com> Date: Sat, 5 Dec 2026 09:02:30 +0800 Subject: [PATCH] ci: run the Docker Compose test from the workspace build (#7327) The Docker Compose step ran `cargo nextest run -p ide-host`, which resolves features for ide-host alone and rebuilt about 43 crates the workspace test build had already compiled. It now runs `--workspace` with a filter expression selecting the same single test, so only the src-tauri crate is rebuilt. Co-authored-by: audichuang <72485427+audichuang@users.noreply.github.com> --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d2da3e5b2..d65a9126c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,8 +218,9 @@ jobs: if: runner.os == 'Linux' && runner.environment != 'self-hosted' run: | docker pull busybox:latest - cargo nextest run -p ide-host --test remote_daemon --run-ignored only \ - -E 'test(=compose_service_survives_disconnect_and_is_removed_on_stop)' + # --workspace, not -p ide-host: -p would rebuild instead of reusing the test build above. + cargo nextest run --workspace --run-ignored only \ + -E 'package(=ide-host) & binary(=remote_daemon) & test(=compose_service_survives_disconnect_and_is_removed_on_stop)' # nextest skips doctests; ide-command's are its compile-fail tests. - if: runner.os == 'Linux' run: cargo test --doc -p ide-command