-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add sim_test * test: add decoder and its unit tests * test: add randomized genesis params * test: add params and unit tests * chore: adding operations * test: add operations and tests * fix: lint checks * fix: nolint check for interBlockCacheOpt * test: nolint unused code * lint: last test * chore: fix broken test and add todo for public plan proposal * chore: fix param changes, randomize epoch days, add farming fee collector, add workflow * fix: broken test * docs: fix backticks location * chore: add migration tests, sort imports, fix db to newDB, update Makefile * chore: fix simulation logic, add minter permission to module account, work in progress to solve harvest issue * feat: adding public plan proposals * chore: adding simulation for public plan proposals work in progress * fix: add check for duplicate name value when creating private plans #101 * test: fix broken tests * chore: remove comments, refactor logic, fixing harvest * build: update github workflow to split simulation jobs * chore: add public plans, remove unused test codes and clean up logics - add request public plan proposal - update request public plan proposal - delete request public plan proposal - comment TODO to improve public plans logic * chore: debugging export and import simulation * fix: update simulation logics for f1 spec * fix: fix test plan dates and expected codes, lint * fix: lint and validation logic of simulation * fix: revert test plan and add validation logic for unstake * chore: remove unused test functions * fix: apply suggested reviews * chore: fix lint Co-authored-by: dongsam <[email protected]>
- Loading branch information
Showing
39 changed files
with
2,084 additions
and
225 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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: Sims | ||
# Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import) | ||
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
- name: Display go version | ||
run: go version | ||
- run: make build | ||
|
||
install-runsim: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
||
test-sim-nondeterminism: | ||
runs-on: ubuntu-latest | ||
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/get-diff-action@v4 | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
if: env.GIT_DIFF | ||
- name: test-sim-nondeterminism | ||
run: | | ||
make test-sim-nondeterminism | ||
if: env.GIT_DIFF | ||
|
||
# test-sim-import-export: | ||
# runs-on: ubuntu-latest | ||
# needs: [build, install-runsim] | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/[email protected] | ||
# with: | ||
# go-version: 1.16 | ||
# - name: Display go version | ||
# run: go version | ||
# - uses: technote-space/get-diff-action@v4 | ||
# with: | ||
# SUFFIX_FILTER: | | ||
# **/**.go | ||
# go.mod | ||
# go.sum | ||
# SET_ENV_NAME_INSERTIONS: 1 | ||
# SET_ENV_NAME_LINES: 1 | ||
# - uses: actions/[email protected] | ||
# with: | ||
# path: ~/go/bin | ||
# key: ${{ runner.os }}-go-runsim-binary | ||
# if: env.GIT_DIFF | ||
# - name: test-sim-import-export | ||
# run: | | ||
# make test-sim-import-export | ||
# if: env.GIT_DIFF | ||
|
||
# test-sim-after-import: | ||
# runs-on: ubuntu-latest | ||
# needs: [build, install-runsim] | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/[email protected] | ||
# with: | ||
# go-version: 1.16 | ||
# - name: Display go version | ||
# run: go version | ||
# - uses: technote-space/get-diff-action@v4 | ||
# with: | ||
# SUFFIX_FILTER: | | ||
# **/**.go | ||
# go.mod | ||
# go.sum | ||
# SET_ENV_NAME_INSERTIONS: 1 | ||
# SET_ENV_NAME_LINES: 1 | ||
# - uses: actions/[email protected] | ||
# with: | ||
# path: ~/go/bin | ||
# key: ${{ runner.os }}-go-runsim-binary | ||
# if: env.GIT_DIFF | ||
# - name: test-sim-after-import | ||
# run: | | ||
# make test-sim-after-import | ||
# if: env.GIT_DIFF |
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 |
---|---|---|
|
@@ -87,4 +87,4 @@ jobs: | |
done | ||
- uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.txt | ||
file: ./coverage.txt |
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
Oops, something went wrong.