diff --git a/.github/workflows/ci-zk-toolbox-reusable.yml b/.github/workflows/ci-zk-toolbox-reusable.yml index c3ef46453f13..f3238566eeec 100644 --- a/.github/workflows/ci-zk-toolbox-reusable.yml +++ b/.github/workflows/ci-zk-toolbox-reusable.yml @@ -28,6 +28,7 @@ jobs: - name: Start services run: | ci_localnet_up + ci_run sccache --start-server - name: Build run: | @@ -75,6 +76,7 @@ jobs: - name: Start services run: | ci_localnet_up + ci_run sccache --start-server - name: Initialize ecosystem run: | @@ -88,7 +90,7 @@ jobs: - name: Run server run: | - ci_run zk_inception server --ignore-prerequisites &>server.log & + ci_run zk_inception server --ignore-prerequisites -a --use-node-framework --verbose &>server.log & ci_run sleep 5 - name: Run integration tests diff --git a/zk_toolbox/crates/zk_inception/src/commands/args/run_server.rs b/zk_toolbox/crates/zk_inception/src/commands/args/run_server.rs index 47ab8dc75c5d..1ec211c25f6d 100644 --- a/zk_toolbox/crates/zk_inception/src/commands/args/run_server.rs +++ b/zk_toolbox/crates/zk_inception/src/commands/args/run_server.rs @@ -1,7 +1,9 @@ use clap::Parser; use serde::{Deserialize, Serialize}; -use crate::messages::{MSG_SERVER_COMPONENTS_HELP, MSG_SERVER_GENESIS_HELP}; +use crate::messages::{ + MSG_SERVER_ADDITIONAL_ARGS_HELP, MSG_SERVER_COMPONENTS_HELP, MSG_SERVER_GENESIS_HELP, +}; #[derive(Debug, Serialize, Deserialize, Parser)] pub struct RunServerArgs { @@ -9,4 +11,7 @@ pub struct RunServerArgs { pub components: Option>, #[clap(long, help = MSG_SERVER_GENESIS_HELP)] pub genesis: bool, + #[clap(long, short)] + #[arg(trailing_var_arg = true, allow_hyphen_values = true, hide = false, help = MSG_SERVER_ADDITIONAL_ARGS_HELP)] + additional_args: Vec, } diff --git a/zk_toolbox/crates/zk_inception/src/messages.rs b/zk_toolbox/crates/zk_inception/src/messages.rs index 7221f030d415..21f051470555 100644 --- a/zk_toolbox/crates/zk_inception/src/messages.rs +++ b/zk_toolbox/crates/zk_inception/src/messages.rs @@ -148,6 +148,8 @@ pub(super) const MSG_DEPLOYING_PAYMASTER: &str = "Deploying paymaster"; /// Run server related messages pub(super) const MSG_SERVER_COMPONENTS_HELP: &str = "Components of server to run"; pub(super) const MSG_SERVER_GENESIS_HELP: &str = "Run server in genesis mode"; +pub(super) const MSG_SERVER_ADDITIONAL_ARGS_HELP: &str = + "Additional arguments that can be passed through the CLI"; /// Accept ownership related messages pub(super) const MSG_ACCEPTING_GOVERNANCE_SPINNER: &str = "Accepting governance...";