Alessio Treglia
a8a68b8ce0
Merge branch 'master' into alessio/new-setup-test-configuration
2020-11-30 16:24:47 +00:00
Anton Kaliaev
e13b4386ff
abci: modify Client interface and socket client ( #5673 )
...
`abci.Client`:
- Sync and Async methods now accept a context for cancellation
* grpc client uses context to cancel both Sync and Async requests
* local client ignores context parameter
* socket client uses context to cancel Sync requests and to drop Async requests before sending them if context was cancelled prior to that
- Async methods return an error
* socket client returns an error immediately if queue is full for Async requests
* local client always returns nil error
* grpc client returns an error if context was cancelled before we got response or the receiving queue had a space for response (do not confuse with the sending queue from the socket client)
- specify clients semantics in [doc.go](https://raw.githubusercontent.com/tendermint/tendermint/27112fffa62276bc016d56741f686f0f77931748/abci/client/doc.go )
`mempool.TxInfo`
- add optional `Context` to `TxInfo`, which can be used to cancel `CheckTx` request
Closes #5190
2020-11-30 16:46:16 +04:00
Alessio Treglia
0de4bec862
use Cleanup(),TempDir() in test cases ( #5723 )
...
Replace defer with t.Cleanup().
Replace the combination of ioutil.TempDir, error checking
and defer os.RemoveAll() with Go testing.T's new TempDir()
helper.
Mark auxiliary functions as test helpers.
2020-11-30 12:13:25 +00:00
Alessio Treglia
02a2ce6b10
WIP
2020-11-29 12:07:15 +00:00
Alessio Treglia
1b665fe822
replace defer with t.Cleanup calls
2020-11-29 10:38:55 +00:00
Alessio Treglia
8de77321c4
replace defer with t.Cleanup calls
2020-11-29 10:31:05 +00:00
Alessio Treglia
cec4876dfc
use t.Cleanup() for leakage test as well
2020-11-29 09:25:23 +00:00
Alessio Treglia
adc05084fd
use t.Cleanup() instead of defer to close/stop once test is done
2020-11-29 09:09:32 +00:00
Alessio Treglia
69ef808786
Use latest go1.15
2020-11-29 08:37:31 +00:00
Alessio Treglia
7af19bc1aa
compile with go1.15
2020-11-29 08:04:20 +00:00
Alessio Treglia
7be41a2959
Merge branch 'master' into alessio/use-go-testing-t-utils
2020-11-28 21:06:58 +00:00
Marko
781f4badc3
ci: build for 32 bit, libs: fix overflow ( #5700 )
2020-11-26 16:12:25 +01:00
Marko
27e8cea9ce
ci: remove circle ( #5714 )
...
* remove circle
* remove prefix
2020-11-24 19:11:40 +00:00
Tess Rinearson
98234b1171
README: update link to Tendermint blog ( #5713 )
2020-11-24 17:57:42 +01:00
Erik Grinaker
6f9f8b58ae
test: fix TestByzantinePrevoteEquivocation flake ( #5710 )
...
This fixes spurious `TestByzantinePrevoteEquivocation` failures by extending the block range and time spent waiting for evidence. I've seen many runs where the evidence isn't committed until e.g. height 27. Haven't looked into _why_ this happens, but as long as the evidence is committed eventually and the test doesn't spuriously fail I'm (mostly) happy. WDYT @cmwaters?
2020-11-24 14:49:10 +00:00
Marko
85e94161cd
version: add abci version to handshake ( #5706 )
...
## Description
- add `AbciVersion` RequestInfo
Closes : #2804
2020-11-24 14:06:25 +00:00
Erik Grinaker
4988877f19
crypto: fix infinite recursion in Secp256k1 string formatting ( #5707 )
...
This caused stack overflow panics in E2E tests, e.g.:
```
2020-11-24T02:37:17.6085640Z [35mvalidator04 |[0m runtime: goroutine stack exceeds 1000000000-byte limit
2020-11-24T02:37:17.6087818Z [35mvalidator04 |[0m runtime: sp=0xc0234b23c0 stack=[0xc0234b2000, 0xc0434b2000]
2020-11-24T02:37:17.6088920Z [35mvalidator04 |[0m fatal error: stack overflow
2020-11-24T02:37:17.6089776Z [35mvalidator04 |[0m
2020-11-24T02:37:17.6090569Z [35mvalidator04 |[0m runtime stack:
2020-11-24T02:37:17.6091677Z [35mvalidator04 |[0m runtime.throw(0x12dc476, 0xe)
2020-11-24T02:37:17.6093123Z [35mvalidator04 |[0m /usr/local/go/src/runtime/panic.go:1116 +0x72
2020-11-24T02:37:17.6094320Z [35mvalidator04 |[0m runtime.newstack()
2020-11-24T02:37:17.6095374Z [35mvalidator04 |[0m /usr/local/go/src/runtime/stack.go:1067 +0x78d
2020-11-24T02:37:17.6096381Z [35mvalidator04 |[0m runtime.morestack()
2020-11-24T02:37:17.6097657Z [35mvalidator04 |[0m /usr/local/go/src/runtime/asm_amd64.s:449 +0x8f
2020-11-24T02:37:17.6098505Z [35mvalidator04 |[0m
2020-11-24T02:37:17.6099328Z [35mvalidator04 |[0m goroutine 88 [running]:
2020-11-24T02:37:17.6100470Z [35mvalidator04 |[0m runtime.heapBitsSetType(0xc009565380, 0x20, 0x18, 0x1137e00)
2020-11-24T02:37:17.6101961Z [35mvalidator04 |[0m /usr/local/go/src/runtime/mbitmap.go:911 +0xaa5 fp=0xc0234b23d0 sp=0xc0234b23c8 pc=0x432625
2020-11-24T02:37:17.6103906Z [35mvalidator04 |[0m runtime.mallocgc(0x20, 0x1137e00, 0x117b601, 0x11e9240)
2020-11-24T02:37:17.6105179Z [35mvalidator04 |[0m /usr/local/go/src/runtime/malloc.go:1090 +0x5a5 fp=0xc0234b2470 sp=0xc0234b23d0 pc=0x428b25
2020-11-24T02:37:17.6106540Z [35mvalidator04 |[0m runtime.convTslice(0xc002743710, 0x21, 0x21, 0xc0234b24e8)
2020-11-24T02:37:17.6107861Z [35mvalidator04 |[0m /usr/local/go/src/runtime/iface.go:385 +0x59 fp=0xc0234b24a0 sp=0xc0234b2470 pc=0x426379
2020-11-24T02:37:17.6109315Z [35mvalidator04 |[0m github.com/tendermint/tendermint/crypto/secp256k1.PubKey.String(...)
2020-11-24T02:37:17.6151692Z [35mvalidator04 |[0m /src/tendermint/crypto/secp256k1/secp256k1.go:161
2020-11-24T02:37:17.6153872Z [35mvalidator04 |[0m github.com/tendermint/tendermint/crypto/secp256k1.(*PubKey).String(0xc009565360, 0x11e9240, 0xc009565360)
2020-11-24T02:37:17.6157421Z [35mvalidator04 |[0m <autogenerated>:1 +0x65 fp=0xc0234b24f8 sp=0xc0234b24a0 pc=0x656965
2020-11-24T02:37:17.6159134Z [35mvalidator04 |[0m fmt.(*pp).handleMethods(0xc00956c680, 0x58, 0xc0234b2801)
2020-11-24T02:37:17.6161462Z [35mvalidator04 |[0m /usr/local/go/src/fmt/print.go:630 +0x30a fp=0xc0234b2768 sp=0xc0234b24f8 pc=0x518b8a
[...]
2020-11-24T02:37:17.6649685Z [35mvalidator04 |[0m /usr/local/go/src/fmt/print.go:630 +0x30a fp=0xc0234b7f48 sp=0xc0234b7cd8 pc=0x518b8a
2020-11-24T02:37:17.6651177Z [35mvalidator04 |[0m created by github.com/tendermint/tendermint/node.startStateSync
2020-11-24T02:37:17.6652521Z [35mvalidator04 |[0m /src/tendermint/node/node.go:587 +0x150
```
2020-11-24 11:37:49 +00:00
dependabot[bot]
ba256b383b
build(deps): Bump github.com/cosmos/iavl from 0.15.0-rc5 to 0.15.0 ( #5708 )
...
Bumps [github.com/cosmos/iavl](https://github.com/cosmos/iavl ) from 0.15.0-rc5 to 0.15.0.
- [Release notes](https://github.com/cosmos/iavl/releases )
- [Changelog](https://github.com/cosmos/iavl/blob/master/CHANGELOG.md )
- [Commits](https://github.com/cosmos/iavl/compare/v0.15.0-rc5...v0.15.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-24 12:14:27 +01:00
Marko
69dd8fea9d
docs: add nodes section ( #5604 )
...
## Description
- separate docs related to running nodes into the nodes dir.
- keep old files but dont display them
- bring over debugging like a pro blog
Closes: #XXX
2020-11-24 09:08:22 +00:00
Anton Kaliaev
170cb70e19
test/e2e: enable v1 and v2 blockchains ( #5702 )
...
* test/e2e: enable v1 and v2 blockchains
* modify networks/ci.toml
2020-11-23 13:32:22 +00:00
Anton Kaliaev
3ad1157451
blockchain/v1: handle peers without blocks ( #5701 )
...
Closes #5444
Now we record the fact that a peer does not have a requested block and later use this information to make a new request for the same block from another peer.
2020-11-23 11:59:34 +00:00
Marko
095e9cd7ef
codecov: validate codecov.yml ( #5699 )
...
## Description
_Please add a description of the changes that this PR introduces and the files that
are the most critical to review._
Closes: #XXX
2020-11-21 16:22:45 +00:00
Tess Rinearson
2c2120691c
CONTRIBUTING: update to match the release flow used for 0.34.0 ( #5697 )
2020-11-20 18:43:03 +01:00
Tess Rinearson
8b29622fe2
.goreleaser: add windows, remove arm (32 bit) ( #5692 )
...
This updates the goreleaser tooling to build the same binaries that were built for the 0.34.0 release.
2020-11-19 19:10:45 +01:00
Tess Rinearson
6bee97160f
changelog: squash changelog from 0.34 RCs into one ( #5691 )
...
"Squashes" the changelog from RCs 2-6 into one changelog message for 0.34.0, and adds the changelog pending.
2020-11-19 17:44:08 +01:00
Tess Rinearson
64101f5ac9
.gitignore: sort ( #5690 )
2020-11-19 16:34:38 +01:00
Tess Rinearson
3246283cf2
.vscode: remove directory ( #5626 )
2020-11-19 16:20:30 +01:00
Tess Rinearson
f97a498cee
scripts: make linkifier default to 'pull' rather than 'issue' ( #5689 )
2020-11-19 14:23:08 +01:00
Callum Waters
68dc751a8c
light: ensure required header fields are present for verification ( #5677 )
2020-11-19 12:02:58 +01:00
Tess Rinearson
b435d9aae5
upgrading: update 0.34 instructions with updates since RC4 ( #5685 )
...
Co-authored-by: Marko <marbar3778@yahoo.com >
2020-11-18 18:10:43 +01:00
Erik Grinaker
e3728e7709
p2p: remove unused MakePoWTarget() ( #5684 )
2020-11-18 14:27:47 +00:00
Anton Kaliaev
f2f6a78809
docs: warn developers about calling blocking funcs in Receive ( #5679 )
...
Refs #2888
2020-11-17 15:37:35 +00:00
Marko
b2d72dce7e
e2e: use ed25519 for secretConn (remote signer) ( #5678 )
...
## Description
Hardcode ed25519 to dialTCPFn in e2e tests.
I will backport `DefaultRequestHandler` fixes
This will be replaced when grpc is implemented.
2020-11-17 13:55:23 +00:00
Callum Waters
909da42789
light: make fraction parts uint64, ensuring that it is always positive ( #5655 )
2020-11-17 14:23:16 +01:00
dependabot[bot]
4e71357808
build(deps): Bump codecov/codecov-action from v1.0.14 to v1.0.15 ( #5676 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from v1.0.14 to v1.0.15.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.14...239febf655bba88b16ff5dea1d3135ea8663a1f9 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-17 12:15:57 +01:00
Marko
fbf2309962
ci: remove add-path ( #5674 )
2020-11-17 11:49:57 +01:00
Marko
39e81807a3
buf: modify buf.yml, add buf generate ( #5653 )
2020-11-17 10:30:35 +01:00
Erik Grinaker
2d0fcf498d
privval: duplicate SecretConnection from p2p package ( #5672 )
...
This is so that the `privval` package will not be affected when we refactor `p2p` (#5670 ). We will be migrating to gRPC shortly (#4698 ).
2020-11-16 18:16:10 +00:00
Erik Grinaker
deb4f60613
docs: add P2P architecture ADR ( #5637 )
...
[Rendered](https://github.com/tendermint/tendermint/blob/erik/adr-p2p-architecture/docs/architecture/adr-062-p2p-architecture.md )
ADR for the new P2P architecture and abstractions. Related to #2067 .
2020-11-16 16:17:09 +00:00
Tess Rinearson
a736530e01
docs/architecture: add missing ADRs to README, update status of ADR 034 ( #5663 )
2020-11-16 13:54:52 +01:00
Marko
e0950515ff
test/e2e: fix secp failures ( #5649 )
2020-11-16 12:31:32 +01:00
Aleksandr Bezobchuk
8aa47c7da5
rpc: fix content-type header ( #5661 )
2020-11-13 14:07:10 -05:00
Callum Waters
2f5e454892
remove unused version struct ( #5656 )
2020-11-13 13:09:38 +01:00
Erik Grinaker
e9294de946
go.mod: upgrade iavl and deps ( #5657 )
...
Bumps IAVL, which pulled in some other upgrades as well. I think they should be fine though.
2020-11-13 11:30:34 +00:00
dependabot[bot]
fdecfa177d
build(deps): Bump rtCamp/action-slack-notify from e9db0ef to 2.1.1
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtCamp/action-slack-notify ) from e9db0ef to 2.1.1. This release includes the previously tagged commit.
- [Release notes](https://github.com/rtCamp/action-slack-notify/releases )
- [Commits](e9db0ef...ecc1353ce3 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-13 12:09:35 +01:00
Alessio Treglia
8bd3d5105f
libs/os: remove unused aliases, add test cases ( #5654 )
...
Remove unused ReadFile (unused) and
WriteFile (almost unused, alias of ioutil.WriteFile).
Add testcases for Must{Read,Write}File.
2020-11-13 10:59:45 +00:00
Marko
95cff1efb4
proto: buf for everything ( #5650 )
...
## Description
- remove installation of protoc
- use buf protoc to generate proto stubs
prior to approving could someone test locally. I restarted my docker instance and its been stuck for 20+ minutes
Closes: #XXX
2020-11-12 11:15:18 +00:00
Alessio Treglia
eb0d353767
libs/os: add test case for TrapSignal ( #5646 )
2020-11-12 10:19:05 +04:00
dependabot[bot]
a399fae100
build(deps): Bump github.com/tendermint/tm-db from 0.6.2 to 0.6.3
...
Bumps [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db ) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/tendermint/tm-db/releases )
- [Changelog](https://github.com/tendermint/tm-db/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tendermint/tm-db/compare/v0.6.2...v0.6.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-11 12:19:30 +01:00
Marko
baa20a4b9c
fix docker deployment ( #5647 )
2020-11-11 09:32:57 +01:00