Skip to content
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

Merged
merged 25 commits into from
Oct 8, 2020
Merged

Update TM to latest (+add test) #7442

merged 25 commits into from
Oct 8, 2020

Conversation

amaury1093
Copy link
Contributor

@amaury1093 amaury1093 commented Oct 2, 2020

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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Oct 2, 2020

Codecov Report

Merging #7442 into master will increase coverage by 1.50%.
The diff coverage is 100.00%.

@@            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     

std/codec.go Outdated Show resolved Hide resolved
Comment on lines +56 to +65
// 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),
)
}
Copy link
Contributor Author

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()

@amaury1093 amaury1093 changed the title Add test for /block_results RPC endpoint Update TM & test for /block_results RPC endpoint Oct 5, 2020
@amaury1093 amaury1093 marked this pull request as ready for review October 5, 2020 14:12
@amaury1093 amaury1093 changed the title Update TM & test for /block_results RPC endpoint Update TM to latest (+add test) Oct 6, 2020
@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 6, 2020
Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

x/staking/client/cli/cli_test.go Outdated Show resolved Hide resolved
x/staking/client/cli/cli_test.go Show resolved Hide resolved
x/staking/client/cli/cli_test.go Show resolved Hide resolved
x/staking/client/cli/cli_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@sahith-narahari sahith-narahari left a 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

@amaury1093
Copy link
Contributor Author

amaury1093 commented Oct 7, 2020

I've restarted the tests 3 times, and this Tests / Code Coverage / test-race-3 (pull_request) always times out. Any ideas?

edit: hmm seems to time out on master too...

Copy link
Collaborator

@robert-zaremba robert-zaremba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job.

@amaury1093 amaury1093 removed the A:automerge Automatically merge PR once all prerequisites pass. label Oct 8, 2020
@@ -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
Copy link
Contributor Author

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:

Copy link
Member

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)

Copy link
Contributor Author

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?

Copy link
Member

@tac0turtle tac0turtle Oct 8, 2020

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

Copy link
Contributor Author

@amaury1093 amaury1093 Oct 8, 2020

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.

Copy link
Contributor

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?

Copy link
Member

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.

@colin-axner
Copy link
Contributor

can we automerge? Looks like tests are passing with the timeout bump

@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 8, 2020
@amaury1093
Copy link
Contributor Author

@colin-axner

GitHub App like Mergify are not allowed to merge pull request where .github/workflows is changed. This pull request must be merged manually.

@tac0turtle
Copy link
Member

tac0turtle commented Oct 8, 2020

@amaurymartiny want to fix liveness-test? makefile cmds seem to be changing but docker files aren't being updated

@colin-axner
Copy link
Contributor

liveness test is failing on master as well. So maybe it is outside the scope of this pr?

@tac0turtle
Copy link
Member

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.

@amaury1093
Copy link
Contributor Author

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 😅

@fedekunze fedekunze merged commit 87e3751 into master Oct 8, 2020
@fedekunze fedekunze deleted the am-7401-blockresults branch October 8, 2020 10:44
@amaury1093
Copy link
Contributor Author

continuing the test timeout conversation here: #7482

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block results internal error with validator_updates
7 participants