This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 8fb3faf05e ci(core): run unit tests with --no-default-features (#8727)
8fb3faf05e is described below

commit 8fb3faf05ed3cef6ad12d6f3df74cdd27d7c0067
Author: Xuanwo <[email protected]>
AuthorDate: Mon Nov 23 05:19:59 2026 +0800

    ci(core): run unit tests with --no-default-features (#8727)
    
    Refs #6681.
    
    The unit job only exercises --all-features, so tests gated on
    not(feature = "auto-simulate") never run in CI. Add a focused job
    running cargo nextest over the opendal and opendal-core lib tests
    without default features, keeping the facade registration and tokio
    executor features so the facade unit test still exercises
    auto-simulate-off operators.
---
 .github/workflows/ci_core.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.github/workflows/ci_core.yml b/.github/workflows/ci_core.yml
index 0b25ce8759..62fb1d412d 100644
--- a/.github/workflows/ci_core.yml
+++ b/.github/workflows/ci_core.yml
@@ -337,6 +337,27 @@ jobs:
           # Add rocksdb and java lib path to LD_LIBRARY_PATH
           LD_LIBRARY_PATH: /tmp/rocksdb/lib:${{ env.JAVA_HOME 
}}/lib/server:${{ env.LD_LIBRARY_PATH }}
 
+  # Catches regressions that only appear without default features, such as
+  # the `not(feature = "auto-simulate")` tests in opendal-core.
+  unit_no_default_features:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v7
+
+      - name: Setup Rust toolchain
+        uses: ./.github/actions/setup
+        with:
+          need-nextest: true
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Test
+        working-directory: core
+        run: |
+          cargo nextest run --locked --no-default-features \
+            -p opendal -p opendal-core \
+            --features opendal/auto-register-services,opendal/executors-tokio
+
   doc-test:
     runs-on: ubuntu-latest
 

Reply via email to