Skip to content

Commit

Permalink
chore(starknet_integration_tests): disable l1 scraper to pass docker …
Browse files Browse the repository at this point in the history
…build push (#4506)
  • Loading branch information
ArniStarkware authored Mar 2, 2025
1 parent 10d81de commit afb296c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"components.l1_provider.remote_client_config.idle_timeout": 90,
"components.l1_provider.remote_client_config.retries": 3,
"components.l1_provider.url": "localhost",
"components.l1_scraper.execution_mode": "Enabled",
"components.l1_scraper.execution_mode": "Disabled",
"components.mempool.execution_mode": "LocalExecutionWithRemoteDisabled",
"components.mempool.ip": "0.0.0.0",
"components.mempool.local_server_config.channel_buffer_size": 32,
Expand Down
22 changes: 19 additions & 3 deletions crates/starknet_integration_tests/src/node_component_configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,21 @@ pub fn create_consolidated_sequencer_configs(
num_of_consolidated_nodes: usize,
) -> Vec<NodeComponentConfigs> {
// Both batcher and http server are in executable index 0.
std::iter::repeat_with(|| NodeComponentConfigs::new(vec![ComponentConfig::default()], 0, 0))
.take(num_of_consolidated_nodes)
.collect()
std::iter::repeat_with(|| {
NodeComponentConfigs::new(
vec![ComponentConfig {
// The L1 scraper is disabled in to avoid running an instance of L1 in the
// 'docker-build-push' test.
// TODO(Arni): reenable the l1 scraper.
l1_scraper: ActiveComponentExecutionConfig::disabled(),
..ComponentConfig::default()
}],
0,
0,
)
})
.take(num_of_consolidated_nodes)
.collect()
}

// TODO(Nadin/Tsabary): find a better name for this function.
Expand Down Expand Up @@ -177,6 +189,10 @@ fn get_non_http_container_config(
class_manager_socket.ip(),
class_manager_socket.port(),
),
// The L1 scraper is disabled in to avoid running an instance of L1 in the
// 'docker-build-push' test.
// TODO(Arni): reenable the l1 scraper.
l1_scraper: ActiveComponentExecutionConfig::disabled(),
..ComponentConfig::default()
}
}
Expand Down

0 comments on commit afb296c

Please sign in to comment.