-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Replace runsim with Go stdlib testing (#20490)
- Loading branch information
Showing
23 changed files
with
802 additions
and
679 deletions.
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
build: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
runs-on: ubuntu-latest | ||
runs-on: large-sdk-runner | ||
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -24,15 +24,9 @@ jobs: | |
go-version: "1.22" | ||
check-latest: true | ||
- run: make build | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
||
test-sim-import-export: | ||
runs-on: ubuntu-latest | ||
runs-on: large-sdk-runner | ||
needs: [build] | ||
timeout-minutes: 60 | ||
steps: | ||
|
@@ -41,33 +35,26 @@ jobs: | |
with: | ||
go-version: "1.22" | ||
check-latest: true | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
- name: test-sim-import-export | ||
run: | | ||
make test-sim-import-export | ||
test-sim-after-import: | ||
runs-on: ubuntu-latest | ||
runs-on: large-sdk-runner | ||
needs: [build] | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
check-latest: true | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
- name: test-sim-after-import | ||
run: | | ||
make test-sim-after-import | ||
test-sim-multi-seed-short: | ||
runs-on: ubuntu-latest | ||
test-sim-deterministic: | ||
runs-on: large-sdk-runner | ||
needs: [build] | ||
timeout-minutes: 60 | ||
steps: | ||
|
@@ -76,18 +63,28 @@ jobs: | |
with: | ||
go-version: "1.22" | ||
check-latest: true | ||
- uses: actions/cache@v4 | ||
- name: test-sim-nondeterminism-streaming | ||
run: | | ||
make test-sim-nondeterminism-streaming | ||
test-sim-multi-seed-short: | ||
runs-on: large-sdk-runner | ||
needs: [build] | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
go-version: "1.22" | ||
check-latest: true | ||
- name: test-sim-multi-seed-short | ||
run: | | ||
make test-sim-multi-seed-short | ||
sims-notify-success: | ||
needs: | ||
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export] | ||
runs-on: ubuntu-latest | ||
runs-on: large-sdk-runner | ||
if: ${{ success() }} | ||
steps: | ||
- name: Check out repository | ||
|
@@ -115,7 +112,7 @@ jobs: | |
contents: none | ||
needs: | ||
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export] | ||
runs-on: ubuntu-latest | ||
runs-on: large-sdk-runner | ||
if: ${{ failure() }} | ||
steps: | ||
- name: Notify Slack on failure | ||
|
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
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
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
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
Oops, something went wrong.