Skip to content

Commit

Permalink
reset run-locally changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Dec 14, 2023
1 parent 7448197 commit cad38f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
20 changes: 9 additions & 11 deletions rust/utils/run-locally/src/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@ pub fn start_anvil(config: Arc<Config>) -> AgentHandles {
}
yarn_monorepo.clone().cmd("build").run().join();

// if !config.is_ci_env {
// // Kill any existing anvil processes just in case since it seems to have issues getting cleaned up
// Program::new("pkill")
// .raw_arg("-SIGKILL")
// .cmd("anvil")
// .run_ignore_code()
// .join();
// }
if !config.is_ci_env {
// Kill any existing anvil processes just in case since it seems to have issues getting cleaned up
Program::new("pkill")
.raw_arg("-SIGKILL")
.cmd("anvil")
.run_ignore_code()
.join();
}
log!("Launching anvil...");
let anvil_args = Program::new("sleep")
.raw_arg("1000000")
.filter_logs(|_| false); // for now do not keep any of the anvil logs
let anvil_args = Program::new("anvil").flag("silent").filter_logs(|_| false); // for now do not keep any of the anvil logs
let anvil = anvil_args.spawn("ETH");

sleep(Duration::from_secs(10));
Expand Down
9 changes: 4 additions & 5 deletions rust/utils/run-locally/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ fn main() -> ExitCode {
.cmd("kathy")
.arg("messages", (config.kathy_messages / 4).to_string())
.arg("timeout", "1000");
kathy_env_single_insertion.clone().run();
kathy_env_single_insertion.clone().run().join();

let kathy_env_zero_insertion = Program::new("yarn")
.working_dir(INFRA_PATH)
Expand All @@ -349,7 +349,7 @@ fn main() -> ExitCode {
// replacing the `aggregationHook` with the `interchainGasPaymaster` means there
// is no more `merkleTreeHook`, causing zero merkle insertions to occur.
.arg("default-hook", "interchainGasPaymaster");
kathy_env_zero_insertion.clone().run();
kathy_env_zero_insertion.clone().run().join();

let kathy_env_double_insertion = Program::new("yarn")
.working_dir(INFRA_PATH)
Expand All @@ -359,7 +359,7 @@ fn main() -> ExitCode {
// replacing the `protocolFees` required hook with the `merkleTreeHook`
// will cause double insertions to occur, which should be handled correctly
.arg("required-hook", "merkleTreeHook");
kathy_env_double_insertion.clone().run();
kathy_env_double_insertion.clone().run().join();

// Send some sealevel messages before spinning up the agents, to test the backward indexing cursor
// for _i in 0..(SOL_MESSAGES_EXPECTED / 2) {
Expand All @@ -372,8 +372,7 @@ fn main() -> ExitCode {
state.push_agent(validator);
}

// state.push_agent(relayer_env.spawn("RLY"));
println!("Relayer command: {:?}", relayer_env.create_command());
state.push_agent(relayer_env.spawn("RLY"));

// Send some sealevel messages after spinning up the relayer, to test the forward indexing cursor
// for _i in 0..(SOL_MESSAGES_EXPECTED / 2) {
Expand Down

0 comments on commit cad38f8

Please sign in to comment.