You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/10/30 07:25:14 UTC
(incubator-opendal) 01/01: ci: Fix behavior tests ignored
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch fix-tests-ignored
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 6fbdceab42dfa74aec04161829372f7b99c22e9a
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Oct 30 15:24:53 2023 +0800
ci: Fix behavior tests ignored
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.github/actions/behavior_test_core/action.yaml | 2 +-
.github/workflows/service_test_atomicserver.yml | 2 +-
.github/workflows/service_test_cacache.yml | 2 +-
.github/workflows/service_test_dropbox.yml | 2 +-
.github/workflows/service_test_foundationdb.yml | 2 +-
.github/workflows/service_test_ftp.yml | 2 +-
.github/workflows/service_test_ghac.yml | 2 +-
.github/workflows/service_test_hdfs.yml | 4 ++--
.github/workflows/service_test_ipfs.yml | 4 ++--
.github/workflows/service_test_ipmfs.yml | 2 +-
.github/workflows/service_test_libsql.yml | 4 ++--
.github/workflows/service_test_persy.yml | 2 +-
.github/workflows/service_test_redb.yml | 2 +-
.github/workflows/service_test_redis.yml | 4 ++--
.github/workflows/service_test_rocksdb.yml | 2 +-
.github/workflows/service_test_s3.yml | 2 +-
.github/workflows/service_test_sftp.yml | 4 ++--
.github/workflows/service_test_sled.yml | 4 ++--
.github/workflows/service_test_supabase.yml | 2 +-
.github/workflows/service_test_tikv.yml | 4 ++--
.github/workflows/service_test_wasabi.yml | 2 +-
.github/workflows/service_test_webdav.yml | 8 ++++----
.github/workflows/service_test_webhdfs.yml | 4 ++--
core/tests/behavior/README.md | 8 ++++----
24 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/.github/actions/behavior_test_core/action.yaml b/.github/actions/behavior_test_core/action.yaml
index d38d13d24..1bdc27c82 100644
--- a/.github/actions/behavior_test_core/action.yaml
+++ b/.github/actions/behavior_test_core/action.yaml
@@ -41,7 +41,7 @@ runs:
- name: Run Test Core
shell: bash
working-directory: core
- run: cargo nextest run behavior --features ${{ inputs.feature }}
+ run: cargo nextest run behavior --features tests,${{ inputs.feature }}
env:
OPENDAL_TEST: ${{ inputs.service }}
EOF
diff --git a/.github/workflows/service_test_atomicserver.yml b/.github/workflows/service_test_atomicserver.yml
index fb2e78fce..f032caf43 100644
--- a/.github/workflows/service_test_atomicserver.yml
+++ b/.github/workflows/service_test_atomicserver.yml
@@ -46,7 +46,7 @@ jobs:
shell: bash
working-directory: core
run: |
- cargo test behavior --features services-atomicserver -j=1
+ cargo test behavior --features tests,services-atomicserver -j=1
env:
# TODO: enable test when we are ready.
# OPENDAL_TEST: atomicserver
diff --git a/.github/workflows/service_test_cacache.yml b/.github/workflows/service_test_cacache.yml
index 961756a45..9dd1d0c8b 100644
--- a/.github/workflows/service_test_cacache.yml
+++ b/.github/workflows/service_test_cacache.yml
@@ -46,7 +46,7 @@ jobs:
- name: Test cacache
shell: bash
working-directory: core
- run: cargo test behavior --features services-cacache -j=1
+ run: cargo test behavior --features tests,services-cacache -j=1
env:
RUST_BACKTRACE: full
RUST_LOG: debug
diff --git a/.github/workflows/service_test_dropbox.yml b/.github/workflows/service_test_dropbox.yml
index 3b81d33f5..b5b2f02f4 100644
--- a/.github/workflows/service_test_dropbox.yml
+++ b/.github/workflows/service_test_dropbox.yml
@@ -62,6 +62,6 @@ jobs:
working-directory: core
# It's easily for dropbox to trigger too_many_write_operations error.
# So we run tests one by one.
- run: cargo test behavior --features=services-dropbox -- --test-threads=1
+ run: cargo test behavior --features=tests,services-dropbox -- --test-threads=1
env:
OPENDAL_TEST: dropbox
diff --git a/.github/workflows/service_test_foundationdb.yml b/.github/workflows/service_test_foundationdb.yml
index 029e87edf..8a6cab139 100644
--- a/.github/workflows/service_test_foundationdb.yml
+++ b/.github/workflows/service_test_foundationdb.yml
@@ -51,7 +51,7 @@ jobs:
working-directory: core
run: |
sudo service foundationdb start
- cargo test behavior --features services-foundationdb -j=1
+ cargo test behavior --features tests,services-foundationdb -j=1
env:
# TODO: enable test when we are ready.
# OPENDAL_TEST: foundationdb
diff --git a/.github/workflows/service_test_ftp.yml b/.github/workflows/service_test_ftp.yml
index 6a9671ab9..3775dcdea 100644
--- a/.github/workflows/service_test_ftp.yml
+++ b/.github/workflows/service_test_ftp.yml
@@ -82,7 +82,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-ftp
+ run: cargo nextest run behavior --features tests,services-ftp
env:
OPENDAL_TEST: ftp
OPENDAL_FTP_ENDPOINT: ftp://127.0.0.1:2121
diff --git a/.github/workflows/service_test_ghac.yml b/.github/workflows/service_test_ghac.yml
index 788bc5d3e..623b3bcd3 100644
--- a/.github/workflows/service_test_ghac.yml
+++ b/.github/workflows/service_test_ghac.yml
@@ -57,7 +57,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior
+ run: cargo nextest run behavior --features tests
env:
OPENDAL_TEST: ghac
OPENDAL_GHAC_ENABLE_CREATE_SIMULATION: true
diff --git a/.github/workflows/service_test_hdfs.yml b/.github/workflows/service_test_hdfs.yml
index d3284fbb5..05df53510 100644
--- a/.github/workflows/service_test_hdfs.yml
+++ b/.github/workflows/service_test_hdfs.yml
@@ -64,7 +64,7 @@ jobs:
export CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath --glob)
export LD_LIBRARY_PATH=${{ env.JAVA_HOME }}/lib/server:${{ env.HADOOP_HOME }}/lib/native
- cargo test behavior --features services-hdfs
+ cargo test behavior --features tests,services-hdfs
env:
HADOOP_HOME: "/home/runner/hadoop-3.3.5"
OPENDAL_TEST: hdfs
@@ -122,7 +122,7 @@ jobs:
export CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath --glob)
export LD_LIBRARY_PATH=${{ env.JAVA_HOME }}/lib/server:${{ env.HADOOP_HOME }}/lib/native
- cargo test behavior --features services-hdfs
+ cargo test behavior --features tests,services-hdfs
env:
HADOOP_HOME: "/home/runner/hadoop-3.2.4"
OPENDAL_TEST: hdfs
diff --git a/.github/workflows/service_test_ipfs.yml b/.github/workflows/service_test_ipfs.yml
index 486f6ce6e..b5dc48d1b 100644
--- a/.github/workflows/service_test_ipfs.yml
+++ b/.github/workflows/service_test_ipfs.yml
@@ -58,7 +58,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-ipfs
+ run: cargo nextest run behavior --features tests,services-ipfs
env:
OPENDAL_TEST: ipfs
OPENDAL_IPFS_ROOT: /ipfs/QmPpCt1aYGb9JWJRmXRUnmJtVgeFFTJGzWFYEEX7bo9zGJ/
@@ -72,7 +72,7 @@ jobs:
# - uses: actions/checkout@v4
# - name: Test
# shell: bash
-# run: cargo test behavior --features services-ipfs -- --show-output
+# run: cargo test behavior --features tests,services-ipfs -- --show-output
# env:
# RUST_BACKTRACE: full
# RUST_LOG: debug
diff --git a/.github/workflows/service_test_ipmfs.yml b/.github/workflows/service_test_ipmfs.yml
index 9f3333086..020cd4498 100644
--- a/.github/workflows/service_test_ipmfs.yml
+++ b/.github/workflows/service_test_ipmfs.yml
@@ -53,7 +53,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior
+ run: cargo nextest run behavior --features tests
env:
# TODO: enable test when we are ready.
# OPENDAL_TEST: ipmfs
diff --git a/.github/workflows/service_test_libsql.yml b/.github/workflows/service_test_libsql.yml
index 0a27b72ad..651f1d068 100644
--- a/.github/workflows/service_test_libsql.yml
+++ b/.github/workflows/service_test_libsql.yml
@@ -75,7 +75,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-libsql
+ run: cargo nextest run behavior --features tests,services-libsql
env:
OPENDAL_TEST: libsql
OPENDAL_LIBSQL_CONNECTION_STRING: http://127.0.0.1:8080
@@ -122,7 +122,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-libsql
+ run: cargo nextest run behavior --features tests,services-libsql
env:
OPENDAL_TEST: libsql
OPENDAL_LIBSQL_CONNECTION_STRING: http://127.0.0.1:8080
diff --git a/.github/workflows/service_test_persy.yml b/.github/workflows/service_test_persy.yml
index 1640cdf25..36b5e0ccf 100644
--- a/.github/workflows/service_test_persy.yml
+++ b/.github/workflows/service_test_persy.yml
@@ -46,7 +46,7 @@ jobs:
- name: Test persy
shell: bash
working-directory: core
- run: cargo test behavior --features services-persy
+ run: cargo test behavior --features tests,services-persy
env:
RUST_BACKTRACE: full
RUST_LOG: debug
diff --git a/.github/workflows/service_test_redb.yml b/.github/workflows/service_test_redb.yml
index 919578030..bf4796557 100644
--- a/.github/workflows/service_test_redb.yml
+++ b/.github/workflows/service_test_redb.yml
@@ -52,7 +52,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo test behavior --features services-redb -j=1
+ run: cargo test behavior --features tests,services-redb -j=1
env:
OPENDAL_TEST: redb
OPENDAL_REDB_ROOT: /
diff --git a/.github/workflows/service_test_redis.yml b/.github/workflows/service_test_redis.yml
index 5276f3ff9..96845b0cf 100644
--- a/.github/workflows/service_test_redis.yml
+++ b/.github/workflows/service_test_redis.yml
@@ -61,7 +61,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-redis-rustls
+ run: cargo nextest run behavior --features tests,services-redis-rustls
env:
OPENDAL_TEST: redis
OPENDAL_REDIS_ENDPOINT: rediss://localhost:6379
@@ -94,7 +94,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-redis-rustls
+ run: cargo nextest run behavior --features tests,services-redis-rustls
env:
OPENDAL_TEST: redis
OPENDAL_REDIS_CLUSTER_ENDPOINTS: rediss://127.0.0.1:6380/,rediss://127.0.0.1:6381/,rediss://127.0.0.1:6382/,rediss://127.0.0.1:6383/,rediss://127.0.0.1:6384/,rediss://127.0.0.1:6385/
diff --git a/.github/workflows/service_test_rocksdb.yml b/.github/workflows/service_test_rocksdb.yml
index 87453bc1a..0a8d0c147 100644
--- a/.github/workflows/service_test_rocksdb.yml
+++ b/.github/workflows/service_test_rocksdb.yml
@@ -51,7 +51,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo test behavior --features services-rocksdb -j=1
+ run: cargo test behavior --features tests,services-rocksdb -j=1
env:
LD_LIBRARY_PATH: /tmp/rocksdb/lib:${{ env.LD_LIBRARY_PATH }}
OPENDAL_TEST: rocksdb
diff --git a/.github/workflows/service_test_s3.yml b/.github/workflows/service_test_s3.yml
index 247080584..ed2f5a387 100644
--- a/.github/workflows/service_test_s3.yml
+++ b/.github/workflows/service_test_s3.yml
@@ -61,7 +61,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior
+ run: cargo nextest run behavior --features tests
env:
AWS_WEB_IDENTITY_TOKEN_FILE: tests/data/web_identity_token
AWS_ROLE_ARN: arn:aws:iam::952853449216:role/opendal-testing-assume
diff --git a/.github/workflows/service_test_sftp.yml b/.github/workflows/service_test_sftp.yml
index 745875703..2baf7fd00 100644
--- a/.github/workflows/service_test_sftp.yml
+++ b/.github/workflows/service_test_sftp.yml
@@ -58,7 +58,7 @@ jobs:
shell: bash
timeout-minutes: 10
working-directory: core
- run: cargo nextest run behavior --features services-sftp
+ run: cargo nextest run behavior --features tests,services-sftp
env:
OPENDAL_TEST: sftp
OPENDAL_SFTP_ENDPOINT: ssh://127.0.0.1:2222
@@ -92,7 +92,7 @@ jobs:
shell: bash
timeout-minutes: 10
working-directory: core
- run: cargo nextest run behavior --features services-sftp
+ run: cargo nextest run behavior --features tests,services-sftp
env:
OPENDAL_TEST: sftp
OPENDAL_SFTP_ENDPOINT: ssh://127.0.0.1:2222
diff --git a/.github/workflows/service_test_sled.yml b/.github/workflows/service_test_sled.yml
index 30c1c8023..505fc815a 100644
--- a/.github/workflows/service_test_sled.yml
+++ b/.github/workflows/service_test_sled.yml
@@ -46,7 +46,7 @@ jobs:
- name: Test sled
shell: bash
working-directory: core
- run: cargo test behavior --features services-sled -j=1
+ run: cargo test behavior --features tests,services-sled -j=1
env:
RUST_BACKTRACE: full
RUST_LOG: debug
@@ -62,7 +62,7 @@ jobs:
- name: Test sled with tree
shell: bash
working-directory: core
- run: cargo test behavior --features services-sled -j=1
+ run: cargo test behavior --features tests,services-sled -j=1
env:
RUST_BACKTRACE: full
RUST_LOG: debug
diff --git a/.github/workflows/service_test_supabase.yml b/.github/workflows/service_test_supabase.yml
index c772f7605..5042487af 100644
--- a/.github/workflows/service_test_supabase.yml
+++ b/.github/workflows/service_test_supabase.yml
@@ -59,6 +59,6 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo test behavior --features=services-supabase
+ run: cargo test behavior --features=tests,services-supabase
env:
OPENDAL_TEST: supabase
diff --git a/.github/workflows/service_test_tikv.yml b/.github/workflows/service_test_tikv.yml
index 043f18fba..74a39358c 100644
--- a/.github/workflows/service_test_tikv.yml
+++ b/.github/workflows/service_test_tikv.yml
@@ -66,7 +66,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-tikv
+ run: cargo nextest run behavior --features tests,services-tikv
env:
OPENDAL_TEST: tikv
OPENDAL_TIKV_ENDPOINTS: "127.0.0.1:2379"
@@ -127,7 +127,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features services-tikv
+ run: cargo nextest run behavior --features tests,services-tikv
env:
OPENDAL_TEST: tikv
OPENDAL_TIKV_ENDPOINTS: "https://127.0.0.1:2379"
diff --git a/.github/workflows/service_test_wasabi.yml b/.github/workflows/service_test_wasabi.yml
index 765d06b9b..f8dd015af 100644
--- a/.github/workflows/service_test_wasabi.yml
+++ b/.github/workflows/service_test_wasabi.yml
@@ -63,6 +63,6 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior --features=services-wasabi
+ run: cargo nextest run behavior --features tests,services-wasabi
env:
OPENDAL_TEST: wasabi
diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml
index 36ec07c5a..128932916 100644
--- a/.github/workflows/service_test_webdav.yml
+++ b/.github/workflows/service_test_webdav.yml
@@ -55,7 +55,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo nextest run behavior
+ run: cargo nextest run behavior --features tests
env:
OPENDAL_TEST: webdav
OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080
@@ -77,7 +77,7 @@ jobs:
- name: Test with password
shell: bash
working-directory: core
- run: cargo nextest run behavior
+ run: cargo nextest run behavior --features tests
env:
OPENDAL_TEST: webdav
OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080
@@ -101,7 +101,7 @@ jobs:
- name: Test empty password
shell: bash
working-directory: core
- run: cargo nextest run behavior
+ run: cargo nextest run behavior --features tests
env:
OPENDAL_TEST: webdav
OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080
@@ -125,7 +125,7 @@ jobs:
shell: bash
working-directory: core
run: |
- cargo nextest run behavior
+ cargo nextest run behavior --features tests
env:
OPENDAL_TEST: webdav
OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8081
diff --git a/.github/workflows/service_test_webhdfs.yml b/.github/workflows/service_test_webhdfs.yml
index f6b7170b3..4db1f3a29 100644
--- a/.github/workflows/service_test_webhdfs.yml
+++ b/.github/workflows/service_test_webhdfs.yml
@@ -70,7 +70,7 @@ jobs:
- name: Test
shell: bash
working-directory: core
- run: cargo test behavior
+ run: cargo test behavior --features tests
env:
OPENDAL_TEST: webhdfs
OPENDAL_WEBHDFS_ROOT: /
@@ -109,7 +109,7 @@ jobs:
- name: Test with disable_list_batch
shell: bash
working-directory: core
- run: cargo test behavior
+ run: cargo test behavior --features tests
env:
OPENDAL_TEST: webhdfs
OPENDAL_WEBHDFS_ROOT: /
diff --git a/core/tests/behavior/README.md b/core/tests/behavior/README.md
index 408aa4cb5..03bab9ecf 100644
--- a/core/tests/behavior/README.md
+++ b/core/tests/behavior/README.md
@@ -27,23 +27,23 @@ Notice: If the env variables are not set, all behavior tests will be skipped by
Use `OPENDAL_TEST` to control which service to test:
```shell
-OPENDAL_TEST=fs cargo test behavior
+OPENDAL_TEST=fs cargo test behavior --features tests
```
To run certain types of tests(such as `write`), we use `behavior::test_write`.
```shell
-OPENDAL_TEST=fs cargo test behavior::test_write
+OPENDAL_TEST=fs cargo test behavior::test_write --features tests
```
You can also run specific test(such as `test_stat_dir`) for specific backend.
```shell
-OPENDAL_TEST=fs cargo test behavior::test_stat_dir
+OPENDAL_TEST=fs cargo test behavior::test_stat_dir --features tests
```
## Debug
-To debug a behavior test, you can use `RUST_LOG=debug RUST_BACKTRACE=full cargo test behavior -- --show-output` to print the log with backtrace.
+To debug a behavior test, you can use `RUST_LOG=debug RUST_BACKTRACE=full cargo test behavior --features tests -- --show-output` to print the log with backtrace.
For more details, please visit [cargo test](https://doc.rust-lang.org/cargo/commands/cargo-test.html) or run the command `cargo test --help`.