From d6a2c7a9d4fde97cc31fdd48ae53605a260e7b1d Mon Sep 17 00:00:00 2001 From: egonspace Date: Tue, 5 Oct 2021 18:04:05 +0900 Subject: [PATCH] test: split long sim test into 3 parts --- .github/workflows/release-sims.yml | 32 +++++++++++++++++++++++++++--- Makefile | 13 ++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-sims.yml b/.github/workflows/release-sims.yml index bde140071d..63ccc111bd 100644 --- a/.github/workflows/release-sims.yml +++ b/.github/workflows/release-sims.yml @@ -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: @@ -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 diff --git a/Makefile b/Makefile index 217aaddac0..1cd511e761 100644 --- a/Makefile +++ b/Makefile @@ -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