From ddea25253d6346d89332ab621dcef8040fb7a6c4 Mon Sep 17 00:00:00 2001 From: xxchan Date: Tue, 14 Nov 2023 23:50:58 +0800 Subject: [PATCH 1/8] check ut sccache stats --- ci/scripts/run-unit-test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/scripts/run-unit-test.sh b/ci/scripts/run-unit-test.sh index c1b7a1b71782d..9ecfe78899e60 100755 --- a/ci/scripts/run-unit-test.sh +++ b/ci/scripts/run-unit-test.sh @@ -14,6 +14,9 @@ echo "+++ Run unit tests with coverage" # use tee to disable progress bar NEXTEST_PROFILE=ci cargo llvm-cov nextest --lcov --output-path lcov.info --features failpoints,sync_point --workspace --exclude risingwave_simulation +echo "--- Show sccache stats" +sccache --show-stats + echo "--- Codecov upload coverage reports" curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov ./codecov -t "$CODECOV_TOKEN" -s . -F rust From f66f511e321169982c5e5cb9c8e56bc20fee50d9 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 00:07:36 +0800 Subject: [PATCH 2/8] rerun ci From e4ac8f38cf39d25d402262a8ca04d922542b5649 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 08:53:15 +0800 Subject: [PATCH 3/8] check timings --- ci/scripts/run-unit-test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/scripts/run-unit-test.sh b/ci/scripts/run-unit-test.sh index 9ecfe78899e60..c57a87fc2e003 100755 --- a/ci/scripts/run-unit-test.sh +++ b/ci/scripts/run-unit-test.sh @@ -11,7 +11,8 @@ python3 -m pytest cd ${REPO_ROOT} echo "+++ Run unit tests with coverage" -# use tee to disable progress bar +cargo test --no-run --features failpoints,sync_point --workspace --exclude risingwave_simulation --timings +buildkite-agent artifact upload target/cargo-timings/cargo-timing.html NEXTEST_PROFILE=ci cargo llvm-cov nextest --lcov --output-path lcov.info --features failpoints,sync_point --workspace --exclude risingwave_simulation echo "--- Show sccache stats" From 46715a4be4bf6598e81fa09f5fa2f83e8c7fed44 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 14:00:28 +0800 Subject: [PATCH 4/8] mount-buildkite-agent: true --- ci/workflows/pull-request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/workflows/pull-request.yml b/ci/workflows/pull-request.yml index bd71c7f7044ef..0d25d78e4eaa2 100644 --- a/ci/workflows/pull-request.yml +++ b/ci/workflows/pull-request.yml @@ -296,6 +296,7 @@ steps: - docker-compose#v4.9.0: run: rw-build-env config: ci/docker-compose.yml + mount-buildkite-agent: true environment: - CODECOV_TOKEN timeout_in_minutes: 20 From 850544d29bc9133aae65fd760cf0f0e67a578378 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 16:28:34 +0800 Subject: [PATCH 5/8] disable tests for ctl --- src/ctl/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ctl/Cargo.toml b/src/ctl/Cargo.toml index 4c9fe916d29b9..f8bd5d9d4d27d 100644 --- a/src/ctl/Cargo.toml +++ b/src/ctl/Cargo.toml @@ -58,3 +58,6 @@ risingwave_hummock_sdk = { workspace = true, features = ["enable_test_epoch"] } [lints] workspace = true + +[lib] +test = false From e7d388459ebc5c3c7d6b9bacc8ea2ad8453b9a58 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 16:46:12 +0800 Subject: [PATCH 6/8] remove some test targets --- src/tests/compaction_test/Cargo.toml | 3 +++ src/tests/sqlsmith/Cargo.toml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/tests/compaction_test/Cargo.toml b/src/tests/compaction_test/Cargo.toml index 98fe4ce6eedd2..3380cf7bfa073 100644 --- a/src/tests/compaction_test/Cargo.toml +++ b/src/tests/compaction_test/Cargo.toml @@ -50,6 +50,9 @@ risingwave_hummock_sdk = { workspace = true, features = ["enable_test_epoch"] } [target.'cfg(not(madsim))'.dependencies] workspace-hack = { path = "../../workspace-hack" } +[lib] +test = false + [[bin]] name = "compaction-test" path = "src/bin/compaction.rs" diff --git a/src/tests/sqlsmith/Cargo.toml b/src/tests/sqlsmith/Cargo.toml index 402c6119cd1cf..726b8d15ea1ec 100644 --- a/src/tests/sqlsmith/Cargo.toml +++ b/src/tests/sqlsmith/Cargo.toml @@ -43,10 +43,12 @@ libtest-mimic = "0.6" [[bin]] name = "sqlsmith" path = "src/bin/main.rs" +test = false [[bin]] name = "sqlsmith-reducer" path = "src/bin/reducer.rs" +test = false [features] enable_sqlsmith_unit_test = [] From 369ebc2fb97855d2a4d40279d58e6507df11c24d Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 17:53:35 +0800 Subject: [PATCH 7/8] revert ci --- ci/scripts/run-unit-test.sh | 6 +----- ci/workflows/pull-request.yml | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ci/scripts/run-unit-test.sh b/ci/scripts/run-unit-test.sh index c57a87fc2e003..c1b7a1b71782d 100755 --- a/ci/scripts/run-unit-test.sh +++ b/ci/scripts/run-unit-test.sh @@ -11,13 +11,9 @@ python3 -m pytest cd ${REPO_ROOT} echo "+++ Run unit tests with coverage" -cargo test --no-run --features failpoints,sync_point --workspace --exclude risingwave_simulation --timings -buildkite-agent artifact upload target/cargo-timings/cargo-timing.html +# use tee to disable progress bar NEXTEST_PROFILE=ci cargo llvm-cov nextest --lcov --output-path lcov.info --features failpoints,sync_point --workspace --exclude risingwave_simulation -echo "--- Show sccache stats" -sccache --show-stats - echo "--- Codecov upload coverage reports" curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov ./codecov -t "$CODECOV_TOKEN" -s . -F rust diff --git a/ci/workflows/pull-request.yml b/ci/workflows/pull-request.yml index 0d25d78e4eaa2..bd71c7f7044ef 100644 --- a/ci/workflows/pull-request.yml +++ b/ci/workflows/pull-request.yml @@ -296,7 +296,6 @@ steps: - docker-compose#v4.9.0: run: rw-build-env config: ci/docker-compose.yml - mount-buildkite-agent: true environment: - CODECOV_TOKEN timeout_in_minutes: 20 From 993b4fd757bc2f082c922bf294d7c865ac7f5df6 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 15 Nov 2023 21:26:37 +0800 Subject: [PATCH 8/8] fix --- src/tests/compaction_test/Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/compaction_test/Cargo.toml b/src/tests/compaction_test/Cargo.toml index 3380cf7bfa073..786ddb269fbd6 100644 --- a/src/tests/compaction_test/Cargo.toml +++ b/src/tests/compaction_test/Cargo.toml @@ -50,16 +50,15 @@ risingwave_hummock_sdk = { workspace = true, features = ["enable_test_epoch"] } [target.'cfg(not(madsim))'.dependencies] workspace-hack = { path = "../../workspace-hack" } -[lib] -test = false - [[bin]] name = "compaction-test" path = "src/bin/compaction.rs" +test = false [[bin]] name = "delete-range-test" path = "src/bin/delete_range.rs" +test = false [lints] workspace = true