Commit Graph
9112 Commits
Author SHA1 Message Date
M. J. Fromberger 01f4846518 Implement a custom TestMain function.
This avoids having to set up and tear down the database multiple times.
That in turn is necessary so that we don't discard data we need to test.
2021-08-27 13:18:31 -07:00
M. J. Fromberger 217b411753 Fix placeholders. 2021-08-27 13:18:31 -07:00
M. J. Fromberger dd9823274c Fix a test result 2021-08-27 13:18:31 -07:00
M. J. Fromberger 9a621d434b Add a -debug flag to the test for manual inspection 2021-08-27 13:18:31 -07:00
M. J. Fromberger 701e9329ea Fix INSERT queries that need to report an ID. 2021-08-27 13:18:31 -07:00
M. J. Fromberger fdcfac75c8 Fix PostgreSQL placeholders. 2021-08-27 13:18:31 -07:00
M. J. Fromberger d97babae16 WIP: update tests further 2021-08-27 13:18:31 -07:00
M. J. Fromberger da3af7e401 Fix SQL placeholders for PostgreSQL. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 50a23cb6b4 Some minor readability fixes. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 3b441e1751 Fix an assertion typo. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 1d99e08ef3 Add comments. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 35bffbd9c4 Rework the main test to use helpers. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 63be659f80 Add constants for the events views. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 91d9b67063 Remove an(other) unnecessary import alias. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 6995e1d18a Clean up schema reading. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 4a1358ea5a Defer pool teardowns so it's easier to be sure they happen. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 309fd9abde Get rid of an unnecessary temporary. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 87834e1ec7 Rework setup and teardown as must functions. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 31491dc80f Remove an unnecessary import alias. 2021-08-27 13:18:31 -07:00
M. J. Fromberger cb70f03523 WIP update verifyTimeStamp 2021-08-27 13:18:31 -07:00
M. J. Fromberger 5e11a581a0 WIP: Start updating tests 2021-08-27 13:18:31 -07:00
M. J. Fromberger f1cdb4341d WIP: add schema test data (do not merge) 2021-08-27 13:18:31 -07:00
M. J. Fromberger ee06c99e20 WIP: update for new schema, builds but untested 2021-08-27 13:18:31 -07:00
M. J. Fromberger b62e185578 WIP: start rewriting queries 2021-08-27 13:18:31 -07:00
M. J. Fromberger 2351d3da61 Unexport database constants. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 615164ed57 Make constants const. 2021-08-27 13:18:31 -07:00
M. J. Fromberger 11c92ec4e2 Put side-effecting imports in their own section 2021-08-27 13:18:31 -07:00
M. J. Fromberger 33401d8703 Move the interface satisfaction test to the test. 2021-08-27 13:18:31 -07:00
M. J. Fromberger b9aebac17b WIP: schema changes (not ready) 2021-08-27 13:18:31 -07:00
Sam KleinmanandGitHub 0df421b37f e2e: add weighted random configuration selector (#6869)
When revwing #6807 I assumed that `probSetChoice` worked this way. 

I think that the coverage of various configuration options should
generally track what we expect the actual useage to be to focus the
most test coverage on the configurations that are the most prevelent.
2021-08-27 16:32:40 +00:00
Sam KleinmanandGitHub 94e1eb8cfe rfc: fix link style (#6870)
This is super minor, but chaning this to fix a broken link and to
match the existing style of the ADRs.
2021-08-27 16:21:12 +00:00
Sam KleinmanandGitHub 23abb0de8b rfc: p2p next steps (#6866) 2021-08-27 12:14:59 -04:00
Aleksandr BezobchukandGitHub 58a6cfff9a internal/consensus: update error log (#6863)
Issues reported in Osmosis, where the message is extremely long. Also, there is absolutely no reason to log the message IMO. If we must, we can make the message log DEBUG.
2021-08-25 22:43:21 +00:00
Sam KleinmanandGitHub 6e921f6644 p2p: change default to use new stack (#6862)
This is just a configuration change to default to using the new stack
unless explicitly disabled (e.g. `UseLegacy`) this renames the
configuration value and makes the configuration logic more clear.

The legacy option is good to retain as a fallback if the new stack has
issues operationally, but we should make sure that most of the time
we're using the new stack.
2021-08-25 17:33:38 +00:00
Sam KleinmanandGitHub a0a5d45cb1 lint: change deprecated linter (#6861)
This is a super minor change that silences a warning when running the linter locally.
2021-08-25 12:26:11 +00:00
Sam KleinmanandGitHub 9c8379ef30 e2e: more consistent node selection during tests (#6857)
In the transaction load generator, the e2e test harness previously distributed load randomly to hosts, which was a source of test non-determinism. This change distributes the load generation to the different nodes in the set in a round robin fashion, to produce more reliable results, but does not otherwise change the behavior of the test harness.
2021-08-25 12:24:01 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e053643b95 build(deps): Bump codecov/codecov-action from 2.0.2 to 2.0.3 (#6860)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  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>
2021-08-25 08:12:04 -04:00
M. J. FrombergerandGitHub 41a361ed8d psql: add documentation and simplify constructor API (#6856)
Add documentation comments to the psql event sink package, and simplify the
constructor function so that it does not return the SQL database handle.  The
handle is needed for testing, so expose that via a separate method on the
concrete type.

Update the tests and existing usage for the change. This change does not affect
the behaviour of the sink, so there are no functional changes, only syntactic
updates.
2021-08-24 17:18:27 -04:00
William BanfieldandGitHub bc2b529b95 inspect: add inspect mode for debugging crashed tendermint node (#6785)
EDIT: Updated, see [comment below]( https://github.com/tendermint/tendermint/pull/6785#issuecomment-897793175)

This change adds a sketch of the `Debug` mode. 

This change adds a `Debug` struct to the node package. This `Debug` struct is intended to be created and started by a command in the `cmd` directory. The `Debug` struct runs the RPC server on the data directories: both the state store and the block store.

This change required a good deal of refactoring. Namely, a new `rpc.go` file was added to the `node` package. This file encapsulates functions for starting RPC servers used by nodes. A potential additional change is to further factor this code into shared code _in_ the `rpc` package. 

Minor API tweaks were also made that seemed appropriate such as the mechanism for fetching routes from the `rpc/core` package.

Additional work is required to register the `Debug` service as a command in the `cmd` directory but I am looking for feedback on if this direction seems appropriate before diving much further.

closes: #5908
2021-08-24 18:12:06 +00:00
Tess RinearsonandGitHub 6d5ff590c3 contributing: remove release_notes.md reference (#6846) 2021-08-24 19:07:53 +02:00
Sam KleinmanandGitHub d8642a941e cmd: remove deprecated snakes (#6854)
just following up on a deprecation.
2021-08-24 16:06:27 +00:00
Sam KleinmanandGitHub d7c3a8f682 time: make median time library type private (#6853)
This is a very minor change, but I was looking through the code, and
this seems like it shouldn't be exported or used more broadly, so I've
moved it out.
2021-08-24 15:43:13 +00:00
M. J. FrombergerandGitHub ce3c059a0d ADR 072: Re-instate a request-for-comments archive. (#6851)
This ADR restores a variation of the old Request for Comments documentation
that we previously used. The proposal differs from the original formulation,
and does not replace ADRs.
2021-08-23 18:06:01 -04:00
Sam KleinmanandGitHub 39dee8abc5 pubsub: improve handling of closed blocking subsciptions. (#6852) 2021-08-23 16:41:45 -04:00
Hlib KanunnikovandGitHub d0e33b4292 blocksync: complete transition from Blockchain to BlockSync (#6847) 2021-08-23 16:45:08 +02:00
William BanfieldandGitHub 8700ca9d1a ADR 071: Proposer-based Timestamps (#6799)
Architectural decision record for Proposer-based timestamps.
2021-08-20 16:07:20 -04:00
Sam KleinmanandGitHub a374f74f7c e2e: cleanup node start function (#6842)
I realized after my last commit that my change made a following line of code a bit redundant.

(alternatively my last change was redunadnt to the existing code.)

I took this oppertunity to make some minor cleanups and logging changes to the node changes which I hope will make tests a bit more clear.
2021-08-20 17:26:04 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3a234e1144 build(deps): Bump docker/build-push-action from 2.6.1 to 2.7.0 (#6845)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2.6.1...v2.7.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-20 13:32:11 +02:00
cce0a3c171 docs: add package godoc for indexer (#6839)
* docs: add indexer godoc

* docs++

* docs++

* docs++

* docs++

* docs++

* Update state/indexer/doc.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>

* Update state/indexer/doc.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>

* Update state/indexer/doc.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>

* Update state/indexer/doc.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>

* Update state/indexer/doc.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>

* Update state/indexer/doc.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>

* docs++

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
2021-08-19 20:25:17 +00:00
Sam KleinmanandGitHub a4cc8317da e2e: avoid starting nodes from the future (#6835) 2021-08-18 14:33:28 -04:00