-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Update TM to latest (+add test) #7442
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7442 +/- ##
==========================================
+ Coverage 55.54% 57.05% +1.50%
==========================================
Files 440 306 -134
Lines 29222 19477 -9745
==========================================
- Hits 16232 11112 -5120
+ Misses 11358 7168 -4190
+ Partials 1632 1197 -435 |
// NewAppConstructor returns a new simapp AppConstructor | ||
func NewAppConstructor(encodingCfg params.EncodingConfig) AppConstructor { | ||
return func(val Validator) servertypes.Application { | ||
return simapp.NewSimApp( | ||
val.Ctx.Logger, dbm.NewMemDB(), nil, true, make(map[int64]bool), val.Ctx.Config.RootDir, 0, | ||
encodingCfg, | ||
baseapp.SetPruning(storetypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), | ||
baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), | ||
) | ||
} |
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.
just a refactor to avoid creating an additional simapp.MakeEncodingConfig()
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
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, pending tests pass
I've restarted the tests 3 times, and this edit: hmm seems to time out on master too... |
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.
Good job.
…-sdk into am-7401-blockresults
@@ -305,7 +305,7 @@ jobs: | |||
name: "${{ github.sha }}-ab" | |||
if: "env.GIT_DIFF != ''" | |||
- name: Run tests with race detector | |||
run: cat xab.txt | xargs go test -mod=readonly -json -timeout 15m -race -tags='cgo ledger test_ledger_mock' > xab-race-output.txt | |||
run: cat xab.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xab-race-output.txt |
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.
@alessio I'm doubling the timeout here, because:
- it often fails on master https://github.com/cosmos/cosmos-sdk/commits/master
- when it doesn't fail, it finishes in ~14m, e.g. https://github.com/cosmos/cosmos-sdk/pull/7475/checks?check_run_id=1221058280
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.
There seems to be a test or something else that is consuming a massive amount time. Increasing the timeout to 30m defeats the purpose of splitting tests into multiple jobs (decrease overall time)
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.
Agreed 👍 . I see this more as a band-aid patch, as it's blocking ~3-4 automerge PRs. Unless someone has an idea for a quick fix?
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! 👍 . If its hanging then 30m wont change it
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.
my hypothesis is that it's not hanging, it passes in some PRs, the test I linked above finished in 14m39s.
but anyways, "Cancelled after 15m" https://github.com/cosmos/cosmos-sdk/pull/7442/checks?check_run_id=1225173890#step:7:1 :( Edit: fixed.
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.
it's probably due to the IBC tests. We rely heavily on simapp since it's kinda hard to unit test interactions between different chains and using simapp makes testing a lot more robust. I noticed recently the test times on my machine almost doubled in duration, so I wonder if there was a change to simapp that slowed things down?
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.
the -race
flag slows things down a lot. This plus the IBC tests could be the culprit.
670f2d4
to
5fe0081
Compare
can we automerge? Looks like tests are passing with the timeout bump |
|
@amaurymartiny want to fix liveness-test? makefile cmds seem to be changing but docker files aren't being updated |
liveness test is failing on master as well. So maybe it is outside the scope of this pr? |
another PR can be made, it's a one word change. |
Actually @marbar3778, could you do it? I spent 5min looking at Alessio's Makefile PR, have no idea what to change to make liveness pass 😅 |
continuing the test timeout conversation here: #7482 |
Description
closes: #7401
depends on: tendermint/tendermint#5459
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