Skip to content

Commit

Permalink
test: split long sim test into 3 parts (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Woosang Son authored Oct 5, 2021
1 parent 81bdb22 commit 678637c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/release-sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary

test-sim-multi-seed-long:
test-sim-multi-seed-long-part1:
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
Expand All @@ -44,6 +44,32 @@ jobs:
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: test-sim-multi-seed-long
- name: test-sim-multi-seed-long-part1
run: |
make test-sim-multi-seed-long
make test-sim-multi-seed-long-part1
test-sim-multi-seed-long-part2:
runs-on: ubuntu-latest
needs: [build, install-runsim, test-sim-multi-seed-long-part1]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.3
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: test-sim-multi-seed-long-part2
run: |
make test-sim-multi-seed-long-part2
test-sim-multi-seed-long-part3:
runs-on: ubuntu-latest
needs: [build, install-runsim, test-sim-multi-seed-long-part2]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.3
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: test-sim-multi-seed-long-part3
run: |
make test-sim-multi-seed-long-part3
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,19 @@ test-sim-multi-seed-long: runsim
@echo "Running long multi-seed application simulation. This may take awhile!"
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail 500 50 TestFullAppSimulation

# Seeds is from https://github.com/cosmos/tools/blob/master/cmd/runsim/main.go
test-sim-multi-seed-long-part1: runsim
@echo "Running long multi-seed application simulation. This may take awhile!"
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail -Seeds="1,2,4,7,32,123,124,582,1893,2989,3012,4728" 500 50 TestFullAppSimulation

test-sim-multi-seed-long-part2: runsim
@echo "Running long multi-seed application simulation. This may take awhile!"
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail -Seeds="37827,981928,87821,891823782,989182,89182391,11,22,44,77,99,2020" 500 50 TestFullAppSimulation

test-sim-multi-seed-long-part3: runsim
@echo "Running long multi-seed application simulation. This may take awhile!"
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail -Seeds="3232,123123,124124,582582,18931893,29892989,30123012,47284728,7601778,8090485,977367484,491163361,424254581,673398983" 500 50 TestFullAppSimulation

test-sim-multi-seed-short: runsim
@echo "Running short multi-seed application simulation. This may take awhile!"
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail 50 10 TestFullAppSimulation
Expand Down

0 comments on commit 678637c

Please sign in to comment.