From 830e1d4c020f04b2a6ef68a99fcfd941da4918f8 Mon Sep 17 00:00:00 2001 From: Dewansh Date: Thu, 11 Jul 2024 17:52:59 +0400 Subject: [PATCH] ci: update retryable tracking scripts (#1748) --- .github/workflows/core-retryable-monitor.yml | 31 +++++++++---------- .github/workflows/orbit-retryable-monitor.yml | 30 +++++++++--------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/.github/workflows/core-retryable-monitor.yml b/.github/workflows/core-retryable-monitor.yml index 371b6946bb..48b350a351 100644 --- a/.github/workflows/core-retryable-monitor.yml +++ b/.github/workflows/core-retryable-monitor.yml @@ -8,8 +8,8 @@ on: env: NEXT_PUBLIC_INFURA_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_KEY }} - CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN }} - CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL }} + RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN }} + RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL }} NOVA_MONITOR_RPC_URL: ${{ secrets.NOVA_MONITOR_RPC_URL }} jobs: @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout Bridge - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: OffchainLabs/arbitrum-token-bridge @@ -33,30 +33,29 @@ jobs: env: NOVA_MONITOR_RPC_URL: ${{ secrets.NOVA_MONITOR_RPC_URL }} - - name: Checkout Retryable-Tracker repository - uses: actions/checkout@v3 + - name: Checkout Arbitrum Monitoring repository + uses: actions/checkout@v4 with: - repository: OffchainLabs/orbit-retryable-tracker - path: retryable-tracker + repository: OffchainLabs/arbitrum-monitoring + path: arbitrum-monitoring - - name: Copy chains JSON to Retryable-Tracker - run: cp ./packages/arb-token-bridge-ui/public/__auto-generated-core-chains.json ./retryable-tracker/lib/config.json + - name: Copy chains JSON to Arbitrum Monitoring + run: cp ./packages/arb-token-bridge-ui/public/__auto-generated-core-chains.json ./arbitrum-monitoring/packages/retryable-monitor/config.json - - name: Setup Node for Retryable-Tracker + - name: Setup Node for Arbitrum Monitoring uses: actions/setup-node@v4 with: node-version: latest - - name: Install dependencies for Retryable-Tracker - run: cd ./retryable-tracker && yarn install + - name: Install dependencies for Arbitrum Monitoring + run: cd ./arbitrum-monitoring && yarn install - name: Run alerting command - run: cd ./retryable-tracker && yarn findRetryables --enableAlerting + run: cd ./arbitrum-monitoring && yarn retryable-monitor --enableAlerting env: NODE_ENV: "CI" - ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN }} - ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL }} - + RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN }} + RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL }} - name: Clean up run: rm ./packages/arb-token-bridge-ui/public/__auto-generated-core-chains.json diff --git a/.github/workflows/orbit-retryable-monitor.yml b/.github/workflows/orbit-retryable-monitor.yml index 6360e48b51..79d4889d86 100644 --- a/.github/workflows/orbit-retryable-monitor.yml +++ b/.github/workflows/orbit-retryable-monitor.yml @@ -8,8 +8,8 @@ on: env: NEXT_PUBLIC_INFURA_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_KEY }} - ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN }} - ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL }} + RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN }} + RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL }} jobs: run-alerting: @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout Bridge - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: OffchainLabs/arbitrum-token-bridge @@ -30,29 +30,29 @@ jobs: - name: Generate chains JSON run: yarn workspace arb-token-bridge-ui generateOrbitChainsToMonitor - - name: Checkout Orbit-Retryable-Tracker repository - uses: actions/checkout@v3 + - name: Checkout Arbitrum Monitoring repository + uses: actions/checkout@v4 with: - repository: OffchainLabs/orbit-retryable-tracker - path: orbit-retryable-tracker + repository: OffchainLabs/arbitrum-monitoring + path: arbitrum-monitoring - - name: Copy chains JSON to Retryable-Tracker - run: cp ./packages/arb-token-bridge-ui/public/__auto-generated-orbit-chains.json ./orbit-retryable-tracker/lib/config.json + - name: Copy chains JSON to Arbitrum Monitoring + run: cp ./packages/arb-token-bridge-ui/public/__auto-generated-orbit-chains.json ./arbitrum-monitoring/packages/retryable-monitor/config.json - - name: Setup Node for Retryable-Tracker + - name: Setup Node for Arbitrum Monitoring uses: actions/setup-node@v4 with: node-version: latest - - name: Install dependencies for Retryable-Tracker - run: cd ./orbit-retryable-tracker && yarn install + - name: Install dependencies for Arbitrum Monitoring + run: cd ./arbitrum-monitoring && yarn install - name: Run alerting command - run: cd ./orbit-retryable-tracker && yarn findRetryables --enableAlerting + run: cd ./arbitrum-monitoring && yarn retryable-monitor --enableAlerting env: NODE_ENV: "CI" - ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN }} - ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL }} + RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN }} + RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL }} - name: Clean up