-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: enable sim test, race test #326
Conversation
Codecov Report
@@ Coverage Diff @@
## main #326 +/- ##
=======================================
Coverage ? 53.16%
=======================================
Files ? 642
Lines ? 67253
Branches ? 0
=======================================
Hits ? 35757
Misses ? 28551
Partials ? 2945 |
Looking good to me, other than lint failure. |
@@ -361,7 +361,7 @@ func (app *BaseApp) setCheckState(header ocproto.Header) { | |||
|
|||
app.checkState = &state{ | |||
ms: ms, | |||
ctx: ctx.WithConsensusParams(app.GetConsensusParams(ctx)), | |||
ctx: ctx, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification reverts a part of #142.
The previous code causes sim test failure.
We must not call app.GetConsensusParams()
while we initialize checkState
because app.GetConsensusParams()
caches nil value in cache store.
Normally, this is not a problem, but this is a problem because simulation tests do deliverTx
immediately without checkTx
.
# - name: Run cosmovisor tests | ||
# run: cd cosmovisor; make | ||
# if: env.GIT_DIFF | ||
# TODO: disable test-cosmovisor; this test uses uploaded binary(cosmos-sdk) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to enable this, research on test-cosmovisor
is needed. We have to do this as a separate task.
.github/workflows/sims.yml
Outdated
@@ -142,8 +141,9 @@ jobs: | |||
run: go version | |||
- uses: technote-space/get-diff-action@v5.0.1 | |||
with: | |||
SUFFIX_FILTER: | | |||
PATTERNSR: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a typo. I'll fix it in next PR or next commit for a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I've left a minor comment.
x/auth/types/account.go
Outdated
PubType byte `json:"pub_type"` | ||
PubKey []byte `json:"pub_key"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about grouping the pubkey properties?
e.g.
{
"address": ...,
"sequence": ...,
"pub_key": {
"type":...,
"key":...,
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I apply it.
Description
test.yml
github actionGetConsensusParams()
while initializingcheckState
. Reverts a part of feat: implementvalidateGasWanted()
(#48) #142.BaseAccount
marshal/unmarshalBaseVestingAccount
,ContinuousVestingAccount
,PeriodicVestingAccount
andDelayedVestingAccount
marshalJSONPB/unmarshalJSONPBx/distribution/keeper/hooks.go
address conversion bugx/distribution/types/keys.go
key prefix bugSet
s and noWrite
make the mismatch between db store and cache. Reverts chore: caching paramset #198x/slashing/keeper/hooks.go
address conversion bugSUFFIX_FILTER
fromsims.yml
docs/core/proto-docs.md
closes: #318
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes