From 51f5e5729b4ce2abbcabb5199252b476cd7dd467 Mon Sep 17 00:00:00 2001 From: Matthew Slipper Date: Thu, 4 Aug 2022 00:07:59 -0600 Subject: [PATCH] ci: Add devnet timeout `no_output_timeout` wasn't being honored because the deposit command produced output on each poll. Instead, use the `timeout` command to kill the process from within the job itself regardless of output. --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 40fc2e2b49ab2..4ee85f886cab7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -454,9 +454,8 @@ jobs: make devnet-up - run: name: Do a deposit - no_output_timeout: 5m command: | - npx hardhat deposit \ + timeout 5m npx hardhat deposit \ --to 0xB79f76EF2c5F0286176833E7B2eEe103b1CC3244 \ --amount-eth 1 \ --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \ @@ -464,7 +463,7 @@ jobs: working_directory: packages/contracts-bedrock - run: name: Deposit ERC20 through the bridge - command: npx hardhat deposit --network devnetL1 + command: timeout 5m npx hardhat deposit --network devnetL1 working_directory: packages/sdk - run: name: Check the status