-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add monitoring test matrix #1848
Merged
Merged
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1f5c87a
add assertion monitor in CI
douglance f71b185
adds core assertion monitor
douglance f30c9ed
fix ref
douglance d3f9bf5
updates trigger
douglance 8090d66
update refs to main
douglance 6dba9fb
removes push triggers
douglance 6b312b3
ci: test single monitoring file
douglance 5114dc9
add push trigger
douglance 09c27c2
fix location
douglance c4b1904
fix cache
douglance f62eba1
remove cache
douglance 4484141
Merge branch 'master' into dl/test-matrix-monitoring
douglance 2a7498d
breaks out monitoring into into reusable workflow
douglance 95e75b5
add debug cmd
douglance 233cfdf
more debug
douglance 96b5faa
debug
douglance bb3f859
update ref
douglance 58439b7
break out into new file per monitor
douglance b9ede97
fix name
douglance 36d0e86
move files
douglance 93cc52d
remove push and rename
douglance 69274ff
restore individual slack token/chain specifiers
douglance 8d7f795
update cron
douglance c596855
Merge branch 'master' into dl/test-matrix-monitoring
douglance ff6d927
restores push trigger
douglance 9153db0
update names
douglance 69e0db7
Merge branch 'master' into dl/test-matrix-monitoring
douglance File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Assertion Monitor | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 */6 * * *" # Run every 6 hours | ||
|
||
jobs: | ||
run-monitoring: | ||
strategy: | ||
matrix: | ||
chain: [core, orbit] | ||
uses: ./.github/workflows/monitoring.yml | ||
with: | ||
chain: ${{ matrix.chain }} | ||
monitor: assertion | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Batch Poster Monitor | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 */6 * * *" # Run every 6 hours | ||
|
||
jobs: | ||
run-monitoring: | ||
strategy: | ||
matrix: | ||
chain: [core, orbit] | ||
uses: ./.github/workflows/monitoring.yml | ||
with: | ||
chain: ${{ matrix.chain }} | ||
monitor: batch-poster | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"core": { | ||
"generateCommand": "generateCoreChainsToMonitor", | ||
"configFile": "__auto-generated-core-chains.json" | ||
}, | ||
"orbit": { | ||
"generateCommand": "generateOrbitChainsToMonitor", | ||
"configFile": "__auto-generated-orbit-chains.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Reusable Monitoring Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
chain: | ||
required: true | ||
type: string | ||
monitor: | ||
required: true | ||
type: string | ||
|
||
env: | ||
NEXT_PUBLIC_INFURA_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_KEY }} | ||
NOVA_MONITOR_RPC_URL: ${{ secrets.NOVA_MONITOR_RPC_URL }} | ||
ARB_ONE_MONITOR_RPC_URL: ${{ secrets.ARB_ONE_MONITOR_RPC_URL }} | ||
NODE_ENV: "CI" | ||
RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.RETRYABLE_MONITORING_SLACK_TOKEN }} | ||
RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.RETRYABLE_MONITORING_SLACK_CHANNEL }} | ||
BATCH_POSTER_MONITORING_SLACK_TOKEN: ${{ secrets.BATCH_POSTER_MONITORING_SLACK_TOKEN }} | ||
BATCH_POSTER_MONITORING_SLACK_CHANNEL: ${{ secrets.BATCH_POSTER_MONITORING_SLACK_CHANNEL }} | ||
ASSERTION_MONITORING_SLACK_TOKEN: ${{ secrets.ASSERTION_MONITORING_SLACK_TOKEN }} | ||
ASSERTION_MONITORING_SLACK_CHANNEL: ${{ secrets.ASSERTION_MONITORING_SLACK_CHANNEL }} | ||
|
||
jobs: | ||
run-monitoring: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repositories | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: OffchainLabs/arbitrum-token-bridge | ||
|
||
- name: Install node_modules | ||
uses: OffchainLabs/actions/node-modules/install@main | ||
|
||
- name: Checkout Arbitrum Monitoring repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: OffchainLabs/arbitrum-monitoring | ||
path: arbitrum-monitoring | ||
|
||
- name: Setup Node and install dependencies | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
- run: cd ./arbitrum-monitoring && yarn install | ||
|
||
- name: Load configuration | ||
id: config | ||
run: | | ||
CONFIG=$(cat .github/workflows/monitor-config.json | jq -r '.${{ inputs.chain }}') | ||
echo "generate_command=$(echo $CONFIG | jq -r '.generateCommand')" >> $GITHUB_OUTPUT | ||
echo "config_file=$(echo $CONFIG | jq -r '.configFile')" >> $GITHUB_OUTPUT | ||
|
||
- name: Generate chains JSON | ||
run: yarn workspace arb-token-bridge-ui ${{ steps.config.outputs.generate_command }} | ||
env: | ||
BATCH_POSTER_MONITORING: ${{ inputs.monitor == 'batch-poster' }} | ||
|
||
- 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 | ||
|
||
- name: Run monitoring command | ||
run: cd ./arbitrum-monitoring && yarn ${{ inputs.monitor }}-monitor --enableAlerting |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Retryable Monitor | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" # Run every 24 hours at midnight UTC | ||
|
||
jobs: | ||
run-retryable-monitoring: | ||
strategy: | ||
matrix: | ||
chain: [core, orbit] | ||
uses: ./.github/workflows/monitoring.yml | ||
with: | ||
chain: ${{ matrix.chain }} | ||
monitor: retryable | ||
secrets: inherit |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original monitor runs at
- cron: "3 8 * * *"
along with ArbitrumOne retryable monitor. We should maintain that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch tyty