-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(ci): multi-version tikv-jemalloc-sys break docker pipeline #12315
Comments
And compared with |
The duplicated versions are with and without feature I guess it's because the We can see cargo does not unify features for
|
If we add target in hakari config risingwave/.config/hakari.toml Line 18 in 214118b
It will add new section [target.x86_64-unknown-linux-gnu.dependencies]
#...
tikv-jemalloc-sys = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", default-features = false, features = ["unprefixed_malloc_on_supported_platforms"] }
tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"] }
#...
[target.x86_64-unknown-linux-gnu.build-dependencies]
#...
tikv-jemalloc-sys = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", default-features = false, features = ["unprefixed_malloc_on_supported_platforms"] }
tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"] }
#... |
Alternatively, this also exclude it from hakari diff --git a/.config/hakari.toml b/.config/hakari.toml
index e998f5fea..9cdfbb3b0 100644
--- a/.config/hakari.toml
+++ b/.config/hakari.toml
@@ -35,6 +35,4 @@ third-party = [
{ name = "criterion" },
{ name = "console" },
{ name = "similar" },
- # FYI: https://github.com/risingwavelabs/risingwave/issues/12315
- { name = "tikv-jemalloc-sys", git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9" },
]
diff --git a/src/compute/Cargo.toml b/src/compute/Cargo.toml
index 24d12151c..6e3f8674a 100644
--- a/src/compute/Cargo.toml
+++ b/src/compute/Cargo.toml
@@ -39,7 +39,6 @@ risingwave_storage = { workspace = true }
risingwave_stream = { workspace = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
-tikv-jemalloc-ctl = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9" }
tokio = { version = "0.2", package = "madsim-tokio", features = [
"rt",
"rt-multi-thread",
@@ -54,6 +53,10 @@ tonic = { workspace = true }
tower = { version = "0.4", features = ["util", "load-shed"] }
tracing = "0.1"
+[target.'cfg(unix)'.dev-dependencies]
+tikv-jemalloc-ctl = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9" }
+
+
[target.'cfg(not(madsim))'.dependencies]
workspace-hack = { path = "../workspace-hack" }
diff --git a/src/tests/simulation/Cargo.toml b/src/tests/simulation/Cargo.toml
index 82992b8b0..01c20b172 100644
--- a/src/tests/simulation/Cargo.toml
+++ b/src/tests/simulation/Cargo.toml
@@ -46,11 +46,14 @@ serde_derive = "1.0.188"
serde_json = "1.0.107"
sqllogictest = "0.15.3"
tempfile = "3"
-tikv-jemallocator = { workspace = true }
tokio = { version = "0.2.23", package = "madsim-tokio" }
tokio-postgres = "0.7"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
+[target.'cfg(unix)'.dev-dependencies]
+tikv-jemallocator = { workspace = true }
+
+
[lints]
workspace = true
|
|
[target.x86_64-unknown-linux-gnu.dependencies]
axum = { version = "0.6" }
memchr = { version = "2" }
mime_guess = { version = "2" }
miniz_oxide = { version = "0.7", default-features = false, features = ["with-alloc"] }
once_cell = { version = "1", features = ["unstable"] }
openssl-sys = { version = "0.9", default-features = false, features = ["vendored"] }
opentelemetry = { version = "0.20", default-features = false, features = ["metrics", "rt-tokio", "trace"] }
opentelemetry_sdk = { version = "0.20", default-features = false, features = ["rt-tokio"] }
rdkafka-sys = { git = "https://github.com/MaterializeInc/rust-rdkafka", rev = "8ea07c4", default-features = false, features = ["cmake-build", "gssapi", "libz", "ssl-vendored", "zstd"] }
rustix = { version = "0.38", features = ["fs", "termios"] }
rustls = { version = "0.21", features = ["dangerous_configuration"] }
serde_json = { version = "1", default-features = false, features = ["raw_value"] }
tikv-jemalloc-sys = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"] }
tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"] }
tower-http = { version = "0.4", features = ["add-extension", "cors", "fs"] }
zstd-sys = { version = "2", features = ["std"] }
[target.x86_64-unknown-linux-gnu.build-dependencies]
axum = { version = "0.6" }
memchr = { version = "2" }
mime_guess = { version = "2" }
miniz_oxide = { version = "0.7", default-features = false, features = ["with-alloc"] }
once_cell = { version = "1", features = ["unstable"] }
openssl-sys = { version = "0.9", default-features = false, features = ["vendored"] }
opentelemetry = { version = "0.20", default-features = false, features = ["metrics", "rt-tokio", "trace"] }
opentelemetry_sdk = { version = "0.20", default-features = false, features = ["rt-tokio"] }
rdkafka-sys = { git = "https://github.com/MaterializeInc/rust-rdkafka", rev = "8ea07c4", default-features = false, features = ["cmake-build", "gssapi", "libz", "ssl-vendored", "zstd"] }
rustix = { version = "0.38", features = ["fs", "termios"] }
rustls = { version = "0.21", features = ["dangerous_configuration"] }
serde_json = { version = "1", default-features = false, features = ["raw_value"] }
tikv-jemalloc-sys = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"] }
tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9", features = ["profiling", "stats", "unprefixed_malloc_on_supported_platforms"] }
tower-http = { version = "0.4", features = ["add-extension", "cors", "fs"] }
zstd-sys = { version = "2", features = ["std"] } @xxchan |
And this time both |
There are no duplicates |
Wired. But it did build 2 duplicated targets. https://buildkite.com/risingwavelabs/docker/builds/14287 |
I found debug build doesn't have duplicates, but release build has. Too weird.. |
I think this is because (dependency's) |
https://doc.rust-lang.org/cargo/reference/profiles.html#build-dependencies
|
Before: `cargo build --release`: Building [========> ] ../1339 After: Building [========> ] ../1065 Background #12315 (comment)
This doesn't seem to be caused by In my cases (#12625), |
Describe the bug
RisingWave got 2 version of
tikv-jemalloc-sys
built in docker pipeline. And it breaks CI.cp ./target/release/build/tikv-jemalloc-sys-*/out/build/bin/jeprof /risingwave/bin/
Error message/log
The text was updated successfully, but these errors were encountered: