From 8c9ff2ecce7c6ed823e99de1d1bafbafe1745ebc Mon Sep 17 00:00:00 2001 From: Doug <4741454+douglance@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:56:47 -0400 Subject: [PATCH] ci: removes arb one from retryable monitor (#1857) Co-authored-by: Fionna Chan <13184582+fionnachan@users.noreply.github.com> --- .github/workflows/monitoring.yml | 2 +- .../scripts/generateCoreChainsToMonitor.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/monitoring.yml b/.github/workflows/monitoring.yml index 74ded940cf..281513c6dd 100644 --- a/.github/workflows/monitoring.yml +++ b/.github/workflows/monitoring.yml @@ -53,7 +53,7 @@ jobs: - name: Generate chains JSON run: yarn workspace arb-token-bridge-ui ${{ steps.config.outputs.generate_command }} env: - BATCH_POSTER_MONITORING: ${{ inputs.monitor == 'batch-poster' }} + INCLUDE_ARB_ONE_AS_CORE_CHAIN: ${{ inputs.monitor != 'retryable' }} - name: Copy chains JSON to Arbitrum Monitoring run: cp ./packages/arb-token-bridge-ui/public/${{ steps.config.outputs.config_file }} ./arbitrum-monitoring/packages/${{ inputs.monitor }}-monitor/config.json diff --git a/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts b/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts index 690a45d789..e9170e9b7c 100644 --- a/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts +++ b/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts @@ -24,9 +24,10 @@ async function generateCoreChainsToMonitor() { } // don't need to monitor arbOne chain in case of retryable-monitoring - const chains = process.env.BATCH_POSTER_MONITORING - ? [arbOneChain, novaChain] - : [novaChain] + const chains = + process.env.INCLUDE_ARB_ONE_AS_CORE_CHAIN === 'true' + ? [arbOneChain, novaChain] + : [novaChain] // make the chain data compatible with that required by the monitoring script const coreChainsToMonitor = chains.map(coreChain =>