Commit Graph

10280 Commits

Author SHA1 Message Date
mergify[bot]
171985df2a p2p: use correct context error (#8916) (#8921)
handshakeCtx is the internal context carrying the timeout. Its error should be used for the error return.

(cherry picked from commit 921530c352)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-06-30 18:20:43 -04:00
mergify[bot]
68691935c8 p2p: fix flakey test due to disconnect cooldown (#8917) (#8919)
This test was made flakey by #8839. The cooldown period means that the node in the test will not try to reconnect as quickly as the test expects. This change makes the cooldown shorter in the test so that the node quickly reconnects.

(cherry picked from commit 5274f80de4)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-06-30 18:01:18 -04:00
mergify[bot]
346b5ff4d0 p2p: set outgoing connections to around 20% of total connections (#8913) (#8915)
(cherry picked from commit 47cb30fc1d)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-06-30 17:04:11 -04:00
dependabot[bot]
2773e11a61 build(deps): Bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#8910)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 13:16:21 -04:00
mergify[bot]
8dc08b3ab3 p2p: stop mconn channel sends without timeout (#8906) (#8911)
(cherry picked from commit 60881f1d06)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-30 09:12:36 -04:00
mergify[bot]
52e9e8257d log: do not pre-process log results (#8895) (#8897)
I was digging around in the zero log functions, and the following
functions using the `Fields()` method directly in zerolog,

- https://github.com/rs/zerolog/blob/v1.27.0/event.go#L161
- e9344a8c50/fields.go (L15)

Have meaningfully equivalent semantics and our pre-processing of
values is getting us much (except forcing zerolog to always sort our
keys, and nooping in the case when you miss the last field.)

With this change also, we can pass maps (or, pratically a single map)
to the logger, which might be a less wacky seeming interface.

(cherry picked from commit 37f9d59969)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-28 10:59:37 -04:00
mergify[bot]
ed7f51460b libs/strings: move to internal (#8890) (#8891) 2022-06-27 18:27:46 -04:00
dependabot[bot]
f63c9b0d28 build(deps): Bump bufbuild/buf-setup-action from 1.5.0 to 1.6.0 (#8884)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-27 09:15:02 -04:00
dependabot[bot]
a5f2ba3025 build(deps): Bump styfle/cancel-workflow-action from 0.9.1 to 0.10.0 (#8885)
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.9.1...0.10.0)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 09:11:17 -04:00
dependabot[bot]
516bb63fe4 build(deps): Bump github.com/stretchr/testify from 1.7.2 to 1.7.5 (#8867) 2022-06-24 19:18:27 -07:00
mergify[bot]
b483058898 p2p: remove dial sleep and provide disconnect cooldown (backport #8839) (#8876)
* p2p: remove dial sleep and provide disconnect cooldown (#8839)

Alternative proposal for #8826

(cherry picked from commit 52b6dc19ba)

# Conflicts:
#	internal/p2p/router.go

* fix merge

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-24 16:35:27 -04:00
mergify[bot]
2fa467fe9b e2e: disable another network test (#8862) (#8874)
Follow up on: https://github.com/tendermint/tendermint/pull/8849

(cherry picked from commit c4d24eed7d)

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
2022-06-24 12:47:54 -04:00
mergify[bot]
a0e1224435 fix light client select statement (#8871) (#8872)
(cherry picked from commit 409e057d73)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-06-24 12:27:10 -04:00
William Banfield
3f1404257d p2p: set empty timeouts to small values. (manual backport of #8847) (#8868)
These timeouts default to 'do not time out' if they are not set. This times up resources, potentially indefinitely. If node on the other side of the the handshake is up but unresponsive, the[ handshake call](edec79448a/internal/p2p/router.go (L720)) will _never_ return.

This change wires up the values from the config file so that they are actually used.
2022-06-24 10:52:07 -04:00
mergify[bot]
6c8e350110 e2e: add tolerance to peer discovery test (#8849) (#8858)
(cherry picked from commit fb209136f8)

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
2022-06-23 13:33:50 -04:00
mergify[bot]
14b14989f7 p2p: track peers by address (#8841) (#8856)
(cherry picked from commit 436a38f876)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-23 10:34:59 -04:00
mergify[bot]
007e98a4e6 e2e: report peer heights in error message (#8843) (#8854)
(cherry picked from commit 52b2efb827)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-23 08:55:50 -04:00
William Banfield
c60e170362 remove dial wake change (#8825) 2022-06-21 22:21:51 -04:00
mergify[bot]
464f54d145 p2p: more dial routines (#8827) (#8829) 2022-06-21 21:27:42 -04:00
mergify[bot]
54d9874828 p2p: add eviction metrics and cleanup dialing error handling (#8819) (#8821)
(cherry picked from commit cfd13825e2)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-21 16:52:17 -07:00
mergify[bot]
1b872d768b p2p: wake dialing thread after sleep (#8803) (#8804)
(cherry picked from commit 28d3239958)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-20 12:40:00 -04:00
dependabot[bot]
1975cdd750 build(deps): Bump github.com/prometheus/common from 0.34.0 to 0.35.0 (#8801)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.34.0 to 0.35.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 08:15:35 -04:00
dependabot[bot]
e3cd47d89d build(deps): Bump github.com/adlio/schema from 1.3.0 to 1.3.3 (#8802)
Bumps [github.com/adlio/schema](https://github.com/adlio/schema) from 1.3.0 to 1.3.3.
- [Release notes](https://github.com/adlio/schema/releases)
- [Commits](https://github.com/adlio/schema/compare/v1.3.0...v1.3.3)

---
updated-dependencies:
- dependency-name: github.com/adlio/schema
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 07:59:25 -04:00
mergify[bot]
fb794b1ce5 p2p: fix typo (#8793) (#8795) 2022-06-19 11:52:57 -07:00
mergify[bot]
74f3e15dc9 p2p: peer score should not wrap around (#8790) (#8792)
(cherry picked from commit 4d820ff4f5)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-17 20:41:55 -04:00
mergify[bot]
7728ae6e04 abci+test/e2e/app: add mutex for new methods (#8577) (#8789)
These methods should be protected by a mutex.

(cherry picked from commit 82c1372f9e)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-17 18:09:05 -04:00
mergify[bot]
c29c667c99 p2p: track peers stored on startup (#8787) (#8788)
(cherry picked from commit 0ac03468d8)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-17 15:49:04 -04:00
mergify[bot]
7e7a2535c6 p2p: peer store and dialing changes (#8737) (#8784)
(cherry picked from commit 9e5b13725d)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-17 08:26:03 -04:00
mergify[bot]
94e7978259 e2e: reactivate network test (#8635) (#8778)
(cherry picked from commit 8854ce4e68)

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
2022-06-16 13:02:55 -04:00
mergify[bot]
cbba7f3d74 refactor: improve string representation for a vote against the proposal (#8745) (#8769) 2022-06-15 15:19:07 +02:00
dependabot[bot]
efda2ff816 build(deps): Bump github.com/vektra/mockery/v2 from 2.13.0 to 2.13.1 (#8767)
Bumps [github.com/vektra/mockery/v2](https://github.com/vektra/mockery) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/vektra/mockery/releases)
- [Changelog](https://github.com/vektra/mockery/blob/master/.goreleaser.yml)
- [Commits](https://github.com/vektra/mockery/compare/v2.13.0...v2.13.1)

---
updated-dependencies:
- dependency-name: github.com/vektra/mockery/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-15 07:56:36 -04:00
mergify[bot]
10a39d6b91 p2p: fix mconn transport accept test (#8762) (#8763)
Fix minor test incongruency missed earlier.

(cherry picked from commit 51b3f111dc)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-14 20:19:59 -04:00
mergify[bot]
1e2d37d6a4 p2p: accept should not abort on first error (#8759) (#8761)
(cherry picked from commit 979a6a1b13)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-14 19:27:47 -04:00
mergify[bot]
c368abceab Revert "p2p: self-add node should not error (tendermint#8753)" (#8757) (#8758)
(cherry picked from commit bf1cb89bb7)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-14 17:08:35 -04:00
mergify[bot]
7335278479 p2p: self-add node should not error (#8753) (#8756)
(cherry picked from commit 7971f4a2fc)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-14 13:01:23 -04:00
dependabot[bot]
ad78120d99 build(deps): Bump github.com/vektra/mockery/v2 from 2.12.3 to 2.13.0 (#8749) 2022-06-14 06:54:59 -04:00
mergify[bot]
ee22b1a5e2 e2e/generator: enlarge nightly test suite (#8731) (#8733)
(cherry picked from commit 8d9d19a113)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
2022-06-10 03:56:03 -04:00
mergify[bot]
f2f99f1550 Update config migration test data for v0.36.x (#8727) (#8729) 2022-06-08 14:12:30 -07:00
dependabot[bot]
cbadc179f2 build(deps): Bump github.com/rs/zerolog from 1.26.1 to 1.27.0 (#8725)
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.26.1 to 1.27.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.26.1...v1.27.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 07:13:42 -07:00
dependabot[bot]
fe42df46b0 build(deps): Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#8719) 2022-06-07 21:16:30 -07:00
dependabot[bot]
4ff6e367f8 build(deps): Bump github.com/golangci/golangci-lint (#8717) 2022-06-07 15:08:02 -07:00
dependabot[bot]
b030ed40f0 build(deps): Bump bufbuild/buf-setup-action from 1.4.0 to 1.5.0 (#8716)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 14:50:28 -07:00
M. J. Fromberger
783ab230d8 Prepare documentation for v0.36.x backport branch. (#8705)
- Remove RFCs and ADRs from v0.36.x backport branch.
- Update branch-relative links.
2022-06-07 09:42:46 -07:00
dependabot[bot]
6b2a6ed402 build(deps-dev): Bump watchpack from 2.3.1 to 2.4.0 in /docs (#8700)
Bumps [watchpack](https://github.com/webpack/watchpack) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/webpack/watchpack/releases)
- [Commits](https://github.com/webpack/watchpack/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: watchpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 07:35:37 -07:00
M. J. Fromberger
48ec78e672 Update how Mockery mocks are checked for currency. (#8697)
The use of "go install" is deprecated as a way of installing and running the
Mockery binary. Update the runner script to depend on an ambient version of the
tool and ensure that in CI it's installed.
2022-06-03 15:02:04 -07:00
William Banfield
75a12ea0c6 consensus: switch timeout message to be debug and clarify meaning (#8694) 2022-06-03 13:46:10 -04:00
Evan Forbes
30929cf190 p2p: pass maxConns for MaxPeers during node setup (#8684)
* pass maxConns for MaxPeers
* add upgrade connections to max connections for max peers
* change the formula to calculate max peers
2022-06-03 07:22:38 -07:00
elias-orijtech
db168ca558 test/fuzz: fix OSS-Fuzz build (#8669)
Broken by 7bed8f92ea.

- note the purpose of test/fuzz/oss-fuzz-build.sh
2022-06-03 06:02:59 -07:00
Callum Waters
a0f3107d28 e2e: fix initialization of light client (#8682) 2022-06-03 10:50:06 +02:00
Sergio Mena
ce6485fa70 Remove the abci responses type - prune legacy responses (#8673)
Closes #8069 

* Type `ABCIResponses` was just wrapping type `ResponseFinalizeBlock`. This patch removes the former.
* Did some renaming to avoid confusion on the data structure we are working with.
* We also remove any stale ABCIResponses we may have in the state store at the time of pruning

**IMPORTANT**: There is an undesirable side-effect of the unwrapping. An empty `ResponseFinalizeBlock` yields a 0-length proto-buf serialized buffer. This was not the case with `ABCIResponses`. I have added an interim solution, but open for suggestions on more elegant ones.
2022-06-02 19:13:08 +00:00