ci: improve sims gh action (#12049)

* ci: improve sims gh action

* update crons

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Julien Robert
2022-05-26 13:10:49 +02:00
committed by GitHub
co-authored by Marko
parent b363e0172e
commit 88ee7fb2e9
3 changed files with 24 additions and 21 deletions
+9 -8
View File
@@ -1,9 +1,9 @@
name: Sims
name: Sims release/0.45.x
# Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short)
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed
on:
schedule:
- cron: "* */3 * * *"
- cron: "0 0,12 * * *"
release:
types: [published]
@@ -50,7 +50,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'release/v0.45.x'
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -71,7 +71,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'release/v0.45.x'
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -92,7 +92,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'release/v0.45.x'
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -107,7 +107,8 @@ jobs:
make test-sim-multi-seed-short
sims-fail:
needs: [test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
@@ -117,7 +118,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
SLACK_USERNAME: Sim Tests release/0.45.x
SLACK_ICON_EMOJI: ':skull:'
SLACK_ICON_EMOJI: ":skull:"
SLACK_COLOR: danger
SLACK_MESSAGE: 0.45.x Sims are failing
SLACK_FOOTER: ''
SLACK_FOOTER: ""
+10 -9
View File
@@ -1,9 +1,9 @@
name: Sims
name: Sims release/0.46.x
# Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short)
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed
on:
schedule:
- cron: "* */3 * * *"
- cron: "0 0,12 * * *"
release:
types: [published]
@@ -50,7 +50,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'release/v0.46.x'
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -71,7 +71,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'release/v0.46.x'
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -92,7 +92,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'release/v0.46.x'
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -107,7 +107,8 @@ jobs:
make test-sim-multi-seed-short
sims-fail:
needs: [test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
@@ -116,8 +117,8 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
SLACK_USERNAME: Sim Tests 0.46
SLACK_ICON_EMOJI: ':skull:'
SLACK_USERNAME: Sim Tests release/0.46.x
SLACK_ICON_EMOJI: ":skull:"
SLACK_COLOR: danger
SLACK_MESSAGE: 0.46.x Sims are failing
SLACK_FOOTER: ''
SLACK_FOOTER: ""
+5 -4
View File
@@ -3,7 +3,7 @@ name: Sims
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed
on:
schedule:
- cron: "* */2 * * *"
- cron: "0 */2 * * *"
release:
types: [published]
@@ -101,7 +101,8 @@ jobs:
make test-sim-multi-seed-short
sims-fail:
needs: [test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
@@ -111,7 +112,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
SLACK_USERNAME: Sim Tests
SLACK_ICON_EMOJI: ':skull:'
SLACK_ICON_EMOJI: ":skull:"
SLACK_COLOR: danger
SLACK_MESSAGE: Sims are failing
SLACK_FOOTER: ''
SLACK_FOOTER: ""