Commit Graph

8998 Commits

Author SHA1 Message Date
William Banfield
bbb50514af unwrap messages in receive calls 2022-10-31 11:55:06 -04:00
William Banfield
10dca9f5e4 fix mempool reactor to include Receive 2022-10-31 11:55:06 -04:00
William Banfield
cc9e8f4830 add channel types where absent 2022-10-28 17:40:03 -04:00
William Banfield
bc62cfe22d unwrap messages in receive calls 2022-10-28 17:40:03 -04:00
William Banfield
1d20f37810 add proto message unmarshal to reactors 2022-10-28 17:40:00 -04:00
William Banfield
39b2e4b878 reactors have channel and peer in new receive 2022-10-28 17:38:39 -04:00
William Banfield
3e111ac4cd all reactors have receive with empty new receive call 2022-10-28 17:38:39 -04:00
William Banfield
9aaacd7145 add receives to all with NewReceive 2022-10-28 17:38:37 -04:00
William Banfield
ed6ef40568 NewReceive called conditionally from switch 2022-10-28 17:36:51 -04:00
William Banfield
e07e7c9e10 move nolint 2022-10-28 10:48:54 -04:00
William Banfield
6986c21e26 mocks use the 'New' calls 2022-10-28 10:43:50 -04:00
William Banfield
e7443258fb nolint gosec 2022-10-28 10:39:32 -04:00
William Banfield
af054f1626 fix fuzz peer 2022-10-28 10:27:00 -04:00
William Banfield
0b2202e64b tests build after reintroducing send and receive 2022-10-28 10:25:28 -04:00
William Banfield
cef631d89a Receive called from OnReceive 2022-10-28 10:24:07 -04:00
William Banfield
12bf141506 New methods call the old methods 2022-10-28 10:23:51 -04:00
William Banfield
89482f810c all builds except fuzz 2022-10-28 10:21:24 -04:00
William Banfield
79a7d6d660 all builds except fuzz 2022-10-28 10:12:59 -04:00
William Banfield
97a6c38c00 p2p: add a per-message type send and receive metric (#9622)
* p2p: ressurrect the p2p envelope and use to calculate message metric

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
(cherry picked from commit 09b8708314)

# Conflicts:
#	cmd/tendermint/commands/rollback.go
#	go.mod
#	go.sum
#	p2p/peer.go
#	p2p/peer_set_test.go
2022-10-27 19:47:01 +00:00
dependabot[bot]
6f05a08f0e build(deps): Bump docker/build-push-action from 3.1.1 to 3.2.0 (#9571)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3.1.1...v3.2.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-27 15:03:22 -04:00
dependabot[bot]
1ef96d3f04 build(deps): Bump docker/login-action from 2.0.0 to 2.1.0 (#9570) 2022-10-27 14:27:20 -04:00
dependabot[bot]
9d6b75fa3e build(deps): Bump docker/setup-buildx-action from 2.0.0 to 2.2.1 (#9601)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.0.0 to 2.2.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2.0.0...v2.2.1)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-27 14:08:22 -04:00
dependabot[bot]
d0b5682812 build(deps): Bump slackapi/slack-github-action from 1.22.0 to 1.23.0 (#9569)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.22.0...v1.23.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-27 14:05:50 -04:00
dependabot[bot]
03cd0043e2 build(deps): Bump styfle/cancel-workflow-action from 0.10.1 to 0.11.0 (#9568)
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.10.1...0.11.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-27 14:03:44 -04:00
dependabot[bot]
6edf2bfc5e build(deps): Bump bufbuild/buf-setup-action from 1.8.0 to 1.9.0 (#9618) 2022-10-26 10:43:46 +02:00
mergify[bot]
fe41bb7cd7 Fix some broken links in docs (#9579) (#9594)
Some links that the linter found as broken are replaced by working ones that point to the same contents

---

#### PR checklist

- [x] Tests written/updated, or no tests needed
- [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [x] Updated relevant documentation (`docs/`) and code comments, or no
      documentation updates needed

(cherry picked from commit 91fba07e49)

Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-10-19 11:54:13 +02:00
mergify[bot]
56873f4166 Fix tested version in 200 node test + added prometheus problem as found during QA (#9582) (#9586)
(cherry picked from commit 5df9c410ff)

Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-10-18 18:04:28 +02:00
mergify[bot]
11254e762b fix: header link (backport #9574) (#9584)
* fix: header link (#9574)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
(cherry picked from commit c8f203293d)

# Conflicts:
#	spec/core/data_structures.md

* fix conflict

Co-authored-by: Rootul P <rootulp@gmail.com>
Co-authored-by: William Banfield <wbanfield@gmail.com>
2022-10-18 10:27:37 -04:00
mergify[bot]
a836d22f9f QA Process report for v0.37.x (and baseline for v0.34.x) (#9499) (#9577)
* 1st version. 200 nodes. Missing rotating node

* Small fixes

* Addressed @jmalicevic's comment

* Explain in method how to set the tmint version to test. Improve result section

* 1st version of how to run the 'rotating node' testnet

* Apply suggestions from @williambanfield

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>

* Addressed @williambanfield's comments

* Added reference to Unix load metric

* Added total TXs

* Fixed some 'png's that got swapped. Excluded '.*-node-exporter' processes from memory plots

* Report for rotating node

* Adressed remaining comments from @williambanfield

* Cosmetic

* Addressed some of @thanethomson's comments

* Re-executed the 200 node tests and updated the corresponding sections of the report

* Ignore Python virtualenv directories

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add latency vs throughput script

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add README for latency vs throughput script

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Fix local links to folders

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* v034: only have one level-1 heading

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Adjust headings

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* v0.37.x: add links to issues/PRs

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* v0.37.x: add note about bug being present in v0.34

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* method: adjust heading depths

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Show data points on latency vs throughput plot

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add latency vs throughput plots

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Correct mentioning of v0.34.21 and add heading

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Refactor latency vs throughput script

Update the latency vs throughput script to rather generate plots from
the "raw" CSV output from the loadtime reporting tool as opposed to the
separated CSV files from the experimental method.

Also update the relevant documentation, and regenerate the images from
the raw CSV data (resulting in pretty much the same plots as the
previous ones).

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Remove unused default duration const

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Adjust experiment start time to be more accurate and re-plot latency vs throughput

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Addressed @williambanfield's comments

* Apply suggestions from code review

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>

* scripts: Update latency vs throughput readme for clarity

Signed-off-by: Thane Thomson <connect@thanethomson.com>

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
Co-authored-by: Thane Thomson <connect@thanethomson.com>
(cherry picked from commit b06e1cea54)

Co-authored-by: Sergio Mena <sergio@informal.systems>
v0.37.0-rc1
2022-10-17 22:13:13 +02:00
mergify[bot]
1cf9d8e276 Fix TX payload for DO testnets (#9540) (#9542)
* Added print

* Fix unmarshall

* Fix unmarshalling

* Simplified steps to unmarshall

* minor

* Use 'encoding/hex'

* Forget about C, this is Go!

* gosec warning

* Set maximum payload size

* nosec annotation

(cherry picked from commit b42c439776)

Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-10-12 20:17:19 +02:00
mergify[bot]
155110007b blocksync: retry requests after timeout (backport #9518) (#9533)
* blocksync: retry requests after timeout (#9518)

* blocksync: retry requests after timeout

* Minimize changes to re-send block request after timeout

* TO REVERT: reduce queue capacity

* Add reset

* Revert "TO REVERT: reduce queue capacity"

This reverts commit dd0fee56924c958bed2ab7733e1917eb88fb5957.

* 30 seconds

* don't reset the timer

* Update blocksync/pool.go

Co-authored-by: Callum Waters <cmwaters19@gmail.com>

Co-authored-by: Sergio Mena <sergio@informal.systems>
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
(cherry picked from commit a371b1e3a8)

* Add changelog entry

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-10-10 15:24:19 +02:00
mergify[bot]
cfb87ab6f2 Extend the load report tool to include transactions' hashes (#9509) (#9513)
* Add transaction hash to raw data

* Add hash in formatted output

* Cosmetic

(cherry picked from commit cdd3479f20)

Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-10-05 21:32:42 +02:00
dependabot[bot]
6a3e360ae8 build(deps): Bump styfle/cancel-workflow-action from 0.10.0 to 0.10.1 (#9502)
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.10.0...0.10.1)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 19:36:19 -04:00
dependabot[bot]
66bd30ee47 build(deps): Bump actions/stale from 5 to 6 (#9494)
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 6.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-27 13:42:11 -04:00
mergify[bot]
792998b779 loadtime: add block time to the data point (#9484) (#9489)
This pull request adds the block time as the unix time since the epoch to the `report` tool's csv output.

```csv
...
a7a8b903-1136-4da1-97aa-d25da7b4094f,1614226790,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1614196724,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1613097336,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1609365168,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1617199169,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1615197134,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1610399447,1663707084905417366,4,200,1024
...
```

#### PR checklist

- [ ] Tests written/updated, or no tests needed
- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [ ] Updated relevant documentation (`docs/`) and code comments, or no
      documentation updates needed

(cherry picked from commit 5fe1a72416)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-09-26 11:52:26 -04:00
mergify[bot]
9dc3850f6b config: Add missing storage section when generating config (#9483) (#9487)
(cherry picked from commit b7f1e1f218)

Co-authored-by: Thane Thomson <connect@thanethomson.com>
2022-09-23 10:10:59 -04:00
mergify[bot]
3545d1e835 Sync Vote.Verify() in spec with implementation (#9466) (#9476) 2022-09-21 22:35:16 -04:00
mergify[bot]
b2b3f47e08 fix spec (#9467) (#9469)
(cherry picked from commit fbcfecbc3a)

Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-09-21 19:27:30 +02:00
mergify[bot]
b9480d0ec7 metrics: fix panic because of absent prometheus label (#9455) (#9474)
Absence of this label causes a panic because the setters try to access the label despite it never being added to the metric. This PR adds the label to the metrics, thus preventing the panic.

#### PR checklist

- [ ] Tests written/updated, or no tests needed
- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [ ] Updated relevant documentation (`docs/`) and code comments, or no
      documentation updates needed

(cherry picked from commit f2c32c9b3e)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-09-21 13:21:40 -04:00
mergify[bot]
4d55e6f7fd Ensure Dockerfile stages use consistent Go version (backport #9462) (#9472)
* Ensure Dockerfile stages use consistent Go version (#9462)

I noticed the tendermint image was running on Go 1.15. I assume that was just a missed search and replace when updating to go1.18.

Pull the go base image into a build arg so that the image is only defined once, and used consistently across all stages of the build.

#### PR checklist

- [x] Tests written/updated, or no tests needed
- [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [x] Updated relevant documentation (`docs/`) and code comments, or no
      documentation updates needed

(cherry picked from commit 84bc77cb1f)

# Conflicts:
#	CHANGELOG_PENDING.md

* Resolve conflict in CHANGELOG_PENDING

Signed-off-by: Thane Thomson <connect@thanethomson.com>

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Co-authored-by: Mark Rushakoff <mark.rushakoff@gmail.com>
Co-authored-by: Thane Thomson <connect@thanethomson.com>
2022-09-21 11:58:05 -04:00
dependabot[bot]
0703117eb7 build(deps): Bump slackapi/slack-github-action from 1.21.0 to 1.22.0 (#9432)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.21.0...v1.22.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thane Thomson <connect@thanethomson.com>
2022-09-20 10:01:09 -04:00
dependabot[bot]
71710b4275 build(deps): Bump bufbuild/buf-setup-action from 1.7.0 to 1.8.0 (#9453)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.7.0...v1.8.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-20 09:11:25 -04:00
mergify[bot]
c9275d6f5f state: restore previous error message (#9435) (#9440) 2022-09-16 15:39:55 +02:00
dependabot[bot]
e11df6461d build(deps): Bump gonum.org/v1/gonum from 0.11.0 to 0.12.0 (#9411)
Bumps gonum.org/v1/gonum from 0.11.0 to 0.12.0.

---
updated-dependencies:
- dependency-name: gonum.org/v1/gonum
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-13 14:37:34 -04:00
mergify[bot]
b6c27426a4 docs: Update ADRs for v0.37 (#9399) (#9418)
* ADR-060 accepted -> proposed

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-061 accepted -> proposed

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-062 implemented -> proposed

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-063 implemented -> accepted

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-077: Update title and status to reflect current reality

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-078: Update status to reflect current reality

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-079: accepted

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-068 and ADR-080: proposed

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-065: implemented

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ADR-076: implemented

Signed-off-by: Thane Thomson <connect@thanethomson.com>

Signed-off-by: Thane Thomson <connect@thanethomson.com>
(cherry picked from commit dfefd837e7)

Co-authored-by: Thane Thomson <connect@thanethomson.com>
2022-09-13 14:25:41 -04:00
dependabot[bot]
abe7626a81 build(deps): Bump github.com/spf13/viper from 1.12.0 to 1.13.0 (#9410)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.12.0...v1.13.0)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-13 14:21:17 -04:00
dependabot[bot]
1d6646aa45 build(deps): Bump github.com/lib/pq from 1.10.6 to 1.10.7 (#9409) 2022-09-13 14:56:08 +02:00
mergify[bot]
c6343aabe3 feat: support HTTPS inside websocket (#9416) (#9422) 2022-09-13 11:12:38 +02:00
Sergio Mena
48ebd22dfc Removed unused param (#9394) v0.37.0-alpha.2 2022-09-08 14:50:51 +02:00
mergify[bot]
5a50158d87 test: generate uuid on startup for load tool (#9383) (#9392)
the `NewClient` method is called by the load test framework for each connection. This means that if multiple connections are instantiated, each connection will erroneously have its own UUID. This PR changes the UUID generation to happen at the _beginning_ of the script instead of on client creation so that each experimental run shares a UUID.

Caught while preparing the script for production readiness.

#### PR checklist

- [ ] Tests written/updated, or no tests needed
- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [ ] Updated relevant documentation (`docs/`) and code comments, or no
      documentation updates needed

(cherry picked from commit 59a711eabe)

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
2022-09-08 07:30:59 -04:00