Skip to content

Commit

Permalink
ci: update retryable tracking scripts (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanshparashar authored Jul 11, 2024
1 parent 8ace330 commit 830e1d4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/core-retryable-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout Bridge
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: OffchainLabs/arbitrum-token-bridge

Expand All @@ -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
30 changes: 15 additions & 15 deletions .github/workflows/orbit-retryable-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ 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:
runs-on: ubuntu-latest

steps:
- name: Checkout Bridge
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: OffchainLabs/arbitrum-token-bridge

Expand All @@ -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
Expand Down

0 comments on commit 830e1d4

Please sign in to comment.