Skip to content
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

chore: bump tonic to v0.12 #17889

Merged
merged 34 commits into from
Aug 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ef2deb2
try try tonic 0.12
BugenZhao Jul 31, 2024
9988967
bump more
BugenZhao Aug 1, 2024
5fc57af
manually downgrade array
BugenZhao Aug 1, 2024
34062d7
bump more more
BugenZhao Aug 1, 2024
dba2100
downgrade arrow again, generate patch
BugenZhao Aug 1, 2024
aa20289
cleanups
BugenZhao Aug 1, 2024
9830565
bump console-api
BugenZhao Aug 1, 2024
975e8e2
bump google cloud pubsub & downgrade tonic in ginepro
BugenZhao Aug 1, 2024
1c5d456
add oltp embedded back
BugenZhao Aug 1, 2024
8e89f84
fix monitor connection impl
BugenZhao Aug 1, 2024
7f6f955
fix compatibility of monitor connection
BugenZhao Aug 1, 2024
8504598
remove
BugenZhao Aug 1, 2024
4267c37
use crates.io madsim
BugenZhao Aug 1, 2024
5e6ae4a
patch tokio-stream
BugenZhao Aug 2, 2024
d0446b2
fix clippy
BugenZhao Aug 2, 2024
ad83a3f
fix more clippy
BugenZhao Aug 2, 2024
44249b8
do not patch tokio-stream
BugenZhao Aug 2, 2024
0e033b9
try try fix madsim
BugenZhao Aug 2, 2024
263d38c
fix check
BugenZhao Aug 2, 2024
4c65d11
use madsim-tonic 0.5.1
BugenZhao Aug 5, 2024
96b346b
Merge remote-tracking branch 'origin/main' into bz/tonic-0-12
BugenZhao Aug 5, 2024
6f26695
Merge branch 'main' into bz/tonic-0-12
wenym1 Aug 8, 2024
e4b87be
Merge branch 'main' into bz/tonic-0-12
BugenZhao Aug 12, 2024
9a1e018
Merge remote-tracking branch 'origin/main' into bz/tonic-0-12
BugenZhao Aug 12, 2024
fcec07c
also tolerate `"get error from control stream"`
BugenZhao Aug 12, 2024
b9b987b
tolerate more
BugenZhao Aug 12, 2024
5c36d92
Merge branch 'main' into bz/tonic-0-12
BugenZhao Aug 13, 2024
fa856f1
Merge branch 'main' into bz/tonic-0-12
BugenZhao Aug 13, 2024
82c4d34
try correctly release all resources in kafka sink protobuf test
BugenZhao Aug 13, 2024
8d8c136
enable span log to try try investigate stuck
BugenZhao Aug 13, 2024
7d41c78
Revert "enable span log to try try investigate stuck"
BugenZhao Aug 14, 2024
96de157
disable `SCHEMA_REGISTRY_DEBUG`
BugenZhao Aug 14, 2024
f7af5e4
Merge remote-tracking branch 'origin/main' into bz/tonic-0-12
BugenZhao Aug 14, 2024
e83f83f
fix protobuf.slt
BugenZhao Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
do not patch tokio-stream
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
BugenZhao committed Aug 2, 2024
commit 44249b8c2bf6748645fef3288d53a48be95ee202
51 changes: 31 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -195,6 +195,7 @@ sea-orm = { version = "0.12.14", features = [
"runtime-tokio-native-tls",
] }
sqlx = "0.7"
tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "0dd1055", features = ["net", "fs"] }
tokio-util = "0.7"
tracing-opentelemetry = "0.24"
rand = { version = "0.8", features = ["small_rng"] }
@@ -330,7 +331,9 @@ opt-level = 2
# Patch third-party crates for deterministic simulation.
quanta = { git = "https://github.com/madsim-rs/quanta.git", rev = "948bdc3" }
getrandom = { git = "https://github.com/madsim-rs/getrandom.git", rev = "e79a7ae" }
tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "0dd1055" }
# Don't patch `tokio-stream`, but only use the madsim version for **direct** dependencies.
# Imagine an unpatched dependency depends on the original `tokio` and the patched `tokio-stream`.
# tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "0dd1055" }
tokio-retry = { git = "https://github.com/madsim-rs/rust-tokio-retry.git", rev = "95e2fd3" }
tokio-postgres = { git = "https://github.com/madsim-rs/rust-postgres.git", rev = "ac00d88" }
futures-timer = { git = "https://github.com/madsim-rs/futures-timer.git", rev = "05b33b4" }
2 changes: 1 addition & 1 deletion src/batch/Cargo.toml
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"fs",
] }
tokio-metrics = "0.3.0"
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tonic = { workspace = true }
tracing = "0.1"
2 changes: 1 addition & 1 deletion src/bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"time",
"signal",
] }
tokio-stream = "0.1"
tokio-stream = { workspace = true }
toml = "0.8"
tracing = "0.1"
tracing-subscriber = "0.3.17"
4 changes: 2 additions & 2 deletions src/common/metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -36,13 +36,13 @@ serde = { version = "1", features = ["derive"] }
thiserror-ext = { workspace = true }
tokio = { version = "0.2", package = "madsim-tokio" }
tonic = { workspace = true }
tower-layer = "0.3.2"
tower-service = "0.3.2"
tracing = "0.1"
tracing-subscriber = "0.3.17"

[target.'cfg(not(madsim))'.dependencies]
http-body = "1"
tower-layer = "0.3.2"
tower-service = "0.3.2"
[target.'cfg(target_os = "linux")'.dependencies]
procfs = { version = "0.16", default-features = false }
libc = "0.2"
2 changes: 1 addition & 1 deletion src/compute/Cargo.toml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"signal",
"fs",
] }
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tonic = { workspace = true }
tower = { version = "0.4", features = ["util", "load-shed"] }
tracing = "0.1"
2 changes: 1 addition & 1 deletion src/connector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
] }
tokio-postgres = { version = "0.7", features = ["with-uuid-1"] }
tokio-retry = "0.3"
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tokio-util = { workspace = true, features = ["codec", "io"] }
tonic = { workspace = true }
tracing = "0.1"
2 changes: 1 addition & 1 deletion src/frontend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"signal",
"fs",
] }
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tonic = { workspace = true }
tracing = "0.1"
uuid = "1"
2 changes: 1 addition & 1 deletion src/meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"signal",
] }
tokio-retry = "0.3"
tokio-stream = { version = "0.1", features = ["net"] }
tokio-stream = { workspace = true }
tonic = { workspace = true }
tower = { version = "0.4", features = ["util", "load-shed"] }
tracing = "0.1"
2 changes: 1 addition & 1 deletion src/meta/service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"time",
"signal",
] }
tokio-stream = { version = "0.1", features = ["net"] }
tokio-stream = { workspace = true }
tonic = { workspace = true }
tracing = "0.1"

2 changes: 1 addition & 1 deletion src/rpc_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"signal",
] }
tokio-retry = "0.3"
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tonic = { workspace = true }
tower = "0.4"
tracing = "0.1"
2 changes: 1 addition & 1 deletion src/stream/Cargo.toml
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
] }
tokio-metrics = "0.3.0"
tokio-retry = "0.3"
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tonic = { workspace = true }
tracing = "0.1"

2 changes: 1 addition & 1 deletion src/tests/simulation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ tempfile = "3"
tikv-jemallocator = { workspace = true }
tokio = { version = "0.2", package = "madsim-tokio" }
tokio-postgres = "0.7"
tokio-stream = "0.1"
tokio-stream = { workspace = true }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

2 changes: 1 addition & 1 deletion src/tests/state_cleaning_test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ serde = { version = "1", features = ["derive"] }
serde_with = "3"
tokio = { version = "0.2", package = "madsim-tokio" }
tokio-postgres = "0.7"
tokio-stream = { version = "0.1", features = ["fs"] }
tokio-stream = { workspace = true }
toml = "0.8"
tracing = "0.1"