ci(integration_bench): apply nightly rustfmt and drop integration_tests unused deps

This commit is contained in:
moudyellaz 2026-05-20 13:08:48 +02:00
parent b0a5b3478b
commit 33b20bb480
4 changed files with 22 additions and 17 deletions

7
Cargo.lock generated
View File

@ -3994,29 +3994,22 @@ dependencies = [
"authenticated_transfer_core",
"bytesize",
"common",
"env_logger",
"faucet_core",
"futures",
"hex",
"indexer_ffi",
"indexer_service",
"indexer_service_protocol",
"indexer_service_rpc",
"jsonrpsee",
"key_protocol",
"log",
"nssa",
"nssa_core",
"sequencer_core",
"sequencer_service",
"sequencer_service_rpc",
"serde_json",
"tempfile",
"test_fixtures",
"testcontainers",
"token_core",
"tokio",
"url",
"vault_core",
"wallet",
"wallet-ffi",

View File

@ -14,11 +14,9 @@ nssa_core = { workspace = true, features = ["host"] }
nssa.workspace = true
authenticated_transfer_core.workspace = true
sequencer_core = { workspace = true, features = ["default", "testnet"] }
sequencer_service.workspace = true
wallet.workspace = true
common.workspace = true
key_protocol.workspace = true
indexer_service.workspace = true
serde_json.workspace = true
token_core.workspace = true
ata_core.workspace = true
@ -26,18 +24,13 @@ vault_core.workspace = true
faucet_core.workspace = true
indexer_service_rpc = { workspace = true, features = ["client"] }
sequencer_service_rpc = { workspace = true, features = ["client"] }
jsonrpsee = { workspace = true, features = ["ws-client"] }
wallet-ffi.workspace = true
indexer_ffi.workspace = true
indexer_service_protocol.workspace = true
url.workspace = true
anyhow.workspace = true
env_logger.workspace = true
log.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
hex.workspace = true
tempfile.workspace = true
bytesize.workspace = true
futures.workspace = true
testcontainers = { version = "0.27.3", features = ["docker-compose"] }

View File

@ -61,7 +61,10 @@ pub struct ScenarioOutput {
/// reporting the sequencer tip as L1-finalised. Effectively measures the
/// sequencer→Bedrock posting + Bedrock finalisation + indexer L1 ingest path.
/// A value at the timeout (60s) means finalisation did not happen within the bench window.
#[serde(serialize_with = "ser_opt_duration_secs", rename = "bedrock_finality_s")]
#[serde(
serialize_with = "ser_opt_duration_secs",
rename = "bedrock_finality_s"
)]
pub bedrock_finality: Option<Duration>,
}

View File

@ -24,10 +24,26 @@ pub async fn run(ctx: &mut TestContext) -> Result<ScenarioOutput> {
let user_lp = new_public_account(ctx, &mut output, "create_acc_user_lp").await?;
timed_token_new(ctx, &mut output, "token_a_new", def_a, supply_a, "TokA").await?;
timed_token_send(ctx, &mut output, "token_a_fund_user", supply_a, user_a, 1_000).await?;
timed_token_send(
ctx,
&mut output,
"token_a_fund_user",
supply_a,
user_a,
1_000,
)
.await?;
timed_token_new(ctx, &mut output, "token_b_new", def_b, supply_b, "TokB").await?;
timed_token_send(ctx, &mut output, "token_b_fund_user", supply_b, user_b, 1_000).await?;
timed_token_send(
ctx,
&mut output,
"token_b_fund_user",
supply_b,
user_b,
1_000,
)
.await?;
output
.step(ctx, "amm_new_pool", async |ctx| {