Skip to content

Commit cda8c1f

Browse files
committed
Update deps
1 parent 0fb7fc2 commit cda8c1f

File tree

14 files changed

+1535
-1604
lines changed

14 files changed

+1535
-1604
lines changed

Cargo.lock

Lines changed: 1429 additions & 1558 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ futures = { version = "0.3.30", default-features = false }
2222
http = "1.2.0"
2323
jsonrpsee = { version = "0.25.1", features = ["tracing"] }
2424
parking_lot = "0.12.1"
25-
prost = "0.13.3"
25+
prost = "0.14.1"
2626
serde = "1.0.179"
2727
serde_json = "1.0.113"
28-
strum = { version = "0.26.3", features = ["derive"] }
28+
strum = { version = "0.27.2", features = ["derive"] }
2929
thiserror = "2.0.11"
3030
tiny-bip39 = "2.0.0"
3131
tokio = { version = "1.29.1", default-features = false, features = ["signal"] }
3232
tokio-util = "0.7.10"
33-
tonic = "0.12.3"
33+
tonic = "0.14.2"
3434
tracing = "0.1.40"
3535
tracing-subscriber = "0.3.20"
3636
utoipa = { version = "5.2.0", default-features = false }
@@ -39,12 +39,12 @@ uuid = "1.13.1"
3939
[workspace.dependencies.bip300301_enforcer_lib]
4040
default-features = false
4141
git = "https://github.com/LayerTwo-Labs/bip300301_enforcer"
42-
rev = "efc538e2b10619a2984acb197b9392cb17e05313"
42+
rev = "65ebb34f574b3e4368e3b2b1c915c85e8184b6ef"
4343

4444
[workspace.dependencies.bip300301_enforcer_integration_tests]
4545
default-features = false
4646
git = "https://github.com/LayerTwo-Labs/bip300301_enforcer"
47-
rev = "efc538e2b10619a2984acb197b9392cb17e05313"
47+
rev = "65ebb34f574b3e4368e3b2b1c915c85e8184b6ef"
4848

4949
[workspace.dependencies.l2l-openapi]
5050
git = "https://github.com/Ash-L2L/l2l-openapi"

app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tiny-bip39 = { workspace = true }
3434
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
3535
tokio-util = { workspace = true, features = ["rt"] }
3636
tonic = { workspace = true }
37-
tonic-health = "0.12.3"
37+
tonic-health = "0.14.2"
3838
# needs to line up with jsonrpsee tower version...
3939
tower = "0.5.2"
4040
tower-http = { version = "0.6.2", features = ["request-id", "trace"] }

deny.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,15 @@ confidence-threshold = 0.8
115115
exceptions = [
116116
# Each entry is the crate and version constraint, and its specific allow
117117
# list
118+
{ allow = ["CDLA-Permissive-2.0"], name = "webpki-roots", version = "1.0.4" },
119+
{ allow = ["CDLA-Permissive-2.0"], name = "webpki-root-certs", version = "0.26.11" },
120+
{ allow = ["CDLA-Permissive-2.0"], name = "webpki-root-certs", version = "1.0.4" },
118121
{ allow = ["LicenseRef-UFL-1.0", "OFL-1.1"], name = "epaint_default_fonts", version = "0.30.0" },
119122
{ allow = ["MPL-2.0"], name = "bitmaps", version = "3.2.1" },
120123
{ allow = ["MPL-2.0"], name = "imbl", version = "3.0.0" },
121124
{ allow = ["MPL-2.0"], name = "imbl-sized-chunks", version = "0.1.3" },
122125
{ allow = ["MPL-2.0"], name = "option-ext", version = "0.2.0" },
123-
{ allow = ["MPL-2.0"], name = "webpki-root-certs", version = "0.26.7" },
124126
{ allow = ["MPL-2.0"], name = "webpki-roots", version = "0.25.4" },
125-
{ allow = ["MPL-2.0"], name = "webpki-roots", version = "0.26.7" },
126127
{ allow = ["Zlib"], name = "foldhash" },
127128
{ allow = ["Zlib"], name = "slotmap", version = "1.0.7" },
128129
{ allow = ["Zlib"], name = "typewit", version = "1.11.0" },

integration_tests/ibd.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use bip300301_enforcer_integration_tests::{
88
Mode, Network, PostSetup as EnforcerPostSetup, Sidechain as _,
99
setup as setup_enforcer,
1010
},
11-
util::{AbortOnDrop, AsyncTrial},
11+
util::{AbortOnDrop, AsyncTrial, TestFailureCollector, TestFileRegistry},
1212
};
1313
use futures::{FutureExt, StreamExt as _, channel::mpsc, future::BoxFuture};
1414
use thunder_app_rpc_api::RpcClient as _;
@@ -162,11 +162,14 @@ async fn initial_block_download_task(
162162
}
163163
drop(thunder_nodes.syncer);
164164
drop(thunder_nodes.sender);
165-
tracing::info!("Removing {}", enforcer_post_setup.out_dir.path().display());
165+
tracing::info!(
166+
"Removing {}",
167+
enforcer_post_setup.directories.base_dir.path().display()
168+
);
166169
drop(enforcer_post_setup.tasks);
167170
// Wait for tasks to die
168171
sleep(std::time::Duration::from_secs(1)).await;
169-
enforcer_post_setup.out_dir.cleanup()?;
172+
enforcer_post_setup.directories.base_dir.cleanup()?;
170173
Ok(())
171174
}
172175

@@ -189,6 +192,13 @@ async fn ibd(bin_paths: BinPaths) -> anyhow::Result<()> {
189192

190193
pub fn ibd_trial(
191194
bin_paths: BinPaths,
195+
file_registry: TestFileRegistry,
196+
failure_collector: TestFailureCollector,
192197
) -> AsyncTrial<BoxFuture<'static, anyhow::Result<()>>> {
193-
AsyncTrial::new("initial_block_download", ibd(bin_paths).boxed())
198+
AsyncTrial::new(
199+
"initial_block_download",
200+
ibd(bin_paths).boxed(),
201+
file_registry,
202+
failure_collector,
203+
)
194204
}
Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use bip300301_enforcer_integration_tests::{
22
setup::{Mode, Network},
3-
util::AsyncTrial,
3+
util::{AsyncTrial, TestFailureCollector, TestFileRegistry},
44
};
55
use futures::{FutureExt, future::BoxFuture};
66

@@ -13,24 +13,48 @@ use crate::{
1313

1414
fn deposit_withdraw_roundtrip(
1515
bin_paths: BinPaths,
16+
file_registry: TestFileRegistry,
17+
failure_collector: TestFailureCollector,
1618
) -> AsyncTrial<BoxFuture<'static, anyhow::Result<()>>> {
17-
AsyncTrial::new("deposit_withdraw_roundtrip", async move {
18-
bip300301_enforcer_integration_tests::integration_test::deposit_withdraw_roundtrip::<PostSetup>(
19-
bin_paths.others, Network::Regtest, Mode::Mempool,
20-
Init {
21-
thunder_app: bin_paths.thunder,
22-
data_dir_suffix: None,
23-
},
24-
).await
25-
}.boxed())
19+
AsyncTrial::new(
20+
"deposit_withdraw_roundtrip",
21+
async move {
22+
let (res_tx, _) = futures::channel::mpsc::unbounded();
23+
let post_setup = bip300301_enforcer_integration_tests::setup::setup(
24+
&bin_paths.others,
25+
Network::Regtest,
26+
Mode::Mempool,
27+
res_tx
28+
).await?;
29+
bip300301_enforcer_integration_tests::integration_test::deposit_withdraw_roundtrip::<PostSetup>(
30+
post_setup,
31+
Init {
32+
thunder_app: bin_paths.thunder,
33+
data_dir_suffix: None,
34+
},
35+
).await
36+
}.boxed(),
37+
file_registry,
38+
failure_collector,
39+
)
2640
}
2741

2842
pub fn tests(
2943
bin_paths: BinPaths,
44+
file_registry: TestFileRegistry,
45+
failure_collector: TestFailureCollector,
3046
) -> Vec<AsyncTrial<BoxFuture<'static, anyhow::Result<()>>>> {
3147
vec![
32-
deposit_withdraw_roundtrip(bin_paths.clone()),
33-
ibd_trial(bin_paths.clone()),
34-
unknown_withdrawal_trial(bin_paths),
48+
deposit_withdraw_roundtrip(
49+
bin_paths.clone(),
50+
file_registry.clone(),
51+
failure_collector.clone(),
52+
),
53+
ibd_trial(
54+
bin_paths.clone(),
55+
file_registry.clone(),
56+
failure_collector.clone(),
57+
),
58+
unknown_withdrawal_trial(bin_paths, file_registry, failure_collector),
3559
]
3660
}

integration_tests/main.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
use bip300301_enforcer_integration_tests::util::{
2+
TestFailureCollector, TestFileRegistry,
3+
};
14
use clap::Parser;
25
use tracing_subscriber::{filter as tracing_filter, layer::SubscriberExt};
36

@@ -91,10 +94,16 @@ async fn main() -> anyhow::Result<std::process::ExitCode> {
9194

9295
// Create a list of tests
9396
let mut tests = Vec::<libtest_mimic::Trial>::new();
97+
let file_registry = TestFileRegistry::new();
98+
let failure_collector = TestFailureCollector::new();
9499
tests.extend(
95-
integration_test::tests(util::BinPaths::from_env()?)
96-
.into_iter()
97-
.map(|trial| trial.run_blocking(rt_handle.clone())),
100+
integration_test::tests(
101+
util::BinPaths::from_env()?,
102+
file_registry,
103+
failure_collector,
104+
)
105+
.into_iter()
106+
.map(|trial| trial.run_blocking(rt_handle.clone())),
98107
);
99108
// Run all tests and exit the application appropriatly.
100109
let exit_code = libtest_mimic::run(&args.test_args, tests).exit_code();

integration_tests/setup.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,13 @@ impl Sidechain for PostSetup {
148148
) -> Result<Self, Self::SetupError> {
149149
let reserved_ports = ReservedPorts::new()?;
150150
let thunder_dir = if let Some(suffix) = init.data_dir_suffix {
151-
post_setup.out_dir.path().join(format!("thunder-{suffix}"))
151+
post_setup
152+
.directories
153+
.base_dir
154+
.path()
155+
.join(format!("thunder-{suffix}"))
152156
} else {
153-
post_setup.out_dir.path().join("thunder")
157+
post_setup.directories.base_dir.path().join("thunder")
154158
};
155159
std::fs::create_dir(&thunder_dir)
156160
.map_err(Self::SetupError::CreateThunderDir)?;

integration_tests/unknown_withdrawal.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use bip300301_enforcer_integration_tests::{
99
Mode, Network, PostSetup as EnforcerPostSetup, Sidechain as _,
1010
setup as setup_enforcer,
1111
},
12-
util::{AbortOnDrop, AsyncTrial},
12+
util::{AbortOnDrop, AsyncTrial, TestFailureCollector, TestFileRegistry},
1313
};
1414
use futures::{
1515
FutureExt as _, StreamExt as _, channel::mpsc, future::BoxFuture,
@@ -141,11 +141,14 @@ async fn unknown_withdrawal_task(
141141
}
142142
drop(sidechain_successor);
143143
drop(sidechain_withdrawer);
144-
tracing::info!("Removing {}", enforcer_post_setup.out_dir.path().display());
144+
tracing::info!(
145+
"Removing {}",
146+
enforcer_post_setup.directories.base_dir.path().display()
147+
);
145148
drop(enforcer_post_setup.tasks);
146149
// Wait for tasks to die
147150
sleep(std::time::Duration::from_secs(1)).await;
148-
enforcer_post_setup.out_dir.cleanup()?;
151+
enforcer_post_setup.directories.base_dir.cleanup()?;
149152
Ok(())
150153
}
151154

@@ -167,6 +170,13 @@ async fn unknown_withdrawal(bin_paths: BinPaths) -> anyhow::Result<()> {
167170

168171
pub fn unknown_withdrawal_trial(
169172
bin_paths: BinPaths,
173+
file_registry: TestFileRegistry,
174+
failure_collector: TestFailureCollector,
170175
) -> AsyncTrial<BoxFuture<'static, anyhow::Result<()>>> {
171-
AsyncTrial::new("unknown_withdrawal", unknown_withdrawal(bin_paths).boxed())
176+
AsyncTrial::new(
177+
"unknown_withdrawal",
178+
unknown_withdrawal(bin_paths).boxed(),
179+
file_registry,
180+
failure_collector,
181+
)
172182
}

lib/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ version.workspace = true
88

99
[build-dependencies]
1010
prost = { workspace = true }
11-
prost-build = "0.13.3"
12-
protox = "0.7.1"
13-
tonic-build = "0.12.3"
11+
prost-build = "0.14.1"
12+
protox = "0.9.0"
13+
tonic-prost-build = "0.14.2"
1414

1515
[dependencies]
1616
anyhow = { workspace = true, features = ["backtrace"] }
@@ -35,7 +35,7 @@ merkle-cbt = "0.3.2"
3535
nonempty = { version = "0.11.0", features = ["serialize"] }
3636
parking_lot = { workspace = true }
3737
prost = { workspace = true }
38-
prost-types = "0.13.3"
38+
prost-types = "0.14.1"
3939
quinn = "0.11.6"
4040
rayon = "1.7.0"
4141
rcgen = "0.13.2"
@@ -54,6 +54,7 @@ tokio = { workspace = true, features = ["rt-multi-thread", "sync"] }
5454
tokio-stream = { version = "0.1.15", features = ["sync"] }
5555
tokio-util = { workspace = true, features = ["rt"] }
5656
tonic = { workspace = true }
57+
tonic-prost = "0.14.2"
5758
tracing = { workspace = true }
5859
transitive = "1.0.1"
5960
utoipa = { workspace = true, features = ["macros", "non_strict_integers"] }

0 commit comments

Comments
 (0)