Commit 807ad035 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #2247 from mslipper/bugfix/nightly-itests

ci: Update nightly address manager addr, notify on itest failures
parents 7dc259c0 c7c0e54e
...@@ -2,7 +2,7 @@ version: 2.1 ...@@ -2,7 +2,7 @@ version: 2.1
orbs: orbs:
gcp-gke: circleci/gcp-gke@1.3.0 gcp-gke: circleci/gcp-gke@1.3.0
slack: circleci/slack@4.5.1 slack: circleci/slack@4.5.1
slack-fail-post-step: &slack-fail-post-step slack-nightly-build-fail-post-step: &slack-nightly-build-fail-post-step
post-steps: post-steps:
- slack/notify: - slack/notify:
channel: $SLACK_DEFAULT_CHANNEL channel: $SLACK_DEFAULT_CHANNEL
...@@ -154,7 +154,7 @@ jobs: ...@@ -154,7 +154,7 @@ jobs:
--env PRIVATE_KEY=$NIGHTLY_ITESTS_PRIVKEY \ --env PRIVATE_KEY=$NIGHTLY_ITESTS_PRIVKEY \
--env L1_URL=https://nightly-l1.optimism-stacks.net \ --env L1_URL=https://nightly-l1.optimism-stacks.net \
--env L2_URL=https://nightly-l2.optimism-stacks.net \ --env L2_URL=https://nightly-l2.optimism-stacks.net \
--env ADDRESS_MANAGER=0x22D4E211ef8704f2ca2d6dfdB32125E2530ACE3e \ --env ADDRESS_MANAGER=0xfcA6De8Db94C4d99bD5a7f5De1bb7A039265Ac42 \
--env L2_CHAINID=69 \ --env L2_CHAINID=69 \
--env MOCHA_BAIL=true \ --env MOCHA_BAIL=true \
--env MOCHA_TIMEOUT=300000 \ --env MOCHA_TIMEOUT=300000 \
...@@ -190,6 +190,66 @@ workflows: ...@@ -190,6 +190,66 @@ workflows:
- run-itests-nightly: - run-itests-nightly:
context: context:
- optimism - optimism
post-steps:
- slack/notify:
channel: $SLACK_DEFAULT_CHANNEL
event: fail
custom: |
{
"text": "",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "🔴 Nightly integration tests failed!"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Job"
},
"url": "${CIRCLE_BUILD_URL}"
}
]
}
]
}
- slack/notify:
channel: $SLACK_DEFAULT_CHANNEL
event: pass
custom: |
{
"text": "",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "✅ Nightly integration tests passed."
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Job"
},
"url": "${CIRCLE_BUILD_URL}"
}
]
}
]
}
nightly: nightly:
triggers: triggers:
- schedule: - schedule:
...@@ -203,47 +263,47 @@ workflows: ...@@ -203,47 +263,47 @@ workflows:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-batch-submitter: - build-batch-submitter:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-deployer: - build-deployer:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-l2geth: - build-l2geth:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-gas-oracle: - build-gas-oracle:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-integration-tests: - build-integration-tests:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-go-batch-submitter: - build-go-batch-submitter:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- build-proxyd: - build-proxyd:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
- deploy-nightly: - deploy-nightly:
context: context:
- optimism - optimism
- slack - slack
<<: *slack-fail-post-step <<: *slack-nightly-build-fail-post-step
requires: requires:
- build-dtl - build-dtl
- build-batch-submitter - build-batch-submitter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment