Skip to content

Created abci test harness#800

Merged
thanethomson merged 2 commits intothane/abci-integration-testfrom
greg/thane-abci-integration-test
Feb 2, 2021
Merged

Created abci test harness#800
thanethomson merged 2 commits intothane/abci-integration-testfrom
greg/thane-abci-integration-test

Conversation

@greg-szabo
Copy link
Copy Markdown
Collaborator

Test harness for testing external ABCI applications.

  1. Added cargo build-abci to main workspace (builds kvstore-rs application)
  2. Added abci-harness docker image
  3. Fixed Makefile.toml under the abci-test crate to use the harness

Run tests by:

cd tools/abci-test
cargo make build-linux-abci
cargo make

(If you are on Linux, you can replace the cargo build build-linux-abci command with your own build step.)

Todo: write the GitHub Action.

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG.md

@codecov-io
Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (thane/abci-integration-test@c8bee2b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                      Coverage Diff                      @@
##             thane/abci-integration-test    #800   +/-   ##
=============================================================
  Coverage                               ?   54.4%           
=============================================================
  Files                                  ?     208           
  Lines                                  ?   14822           
  Branches                               ?    3888           
=============================================================
  Hits                                   ?    8073           
  Misses                                 ?    6410           
  Partials                               ?     339           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8bee2b...0fd98e4. Read the comment docs.

Copy link
Copy Markdown
Contributor

@thanethomson thanethomson left a comment

Choose a reason for hiding this comment

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

This is excellent, thanks @greg-szabo! 🎉

@thanethomson thanethomson merged commit a042caf into thane/abci-integration-test Feb 2, 2021
@thanethomson thanethomson deleted the greg/thane-abci-integration-test branch February 2, 2021 19:39
thanethomson pushed a commit that referenced this pull request Feb 9, 2021
* Add integration testing utility for ABCI key/value store

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

* Add hacky bash script to demonstrate parallel execution

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

* Created abci test harness (#800)

* Created abci test harness

* cargo make additions and docs

Co-authored-by: Greg Szabo <16846635+greg-szabo@users.noreply.github.com>
brapse pushed a commit that referenced this pull request Feb 19, 2021
* Add minimal blocking ABCI library

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

* Expand API to implement in-memory key/value store app

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

* Add kvstore-rs ABCI app

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

* Add rudimentary README

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

* Bump proto version dependency to v0.18.0

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

* Replace manual default structs with Default::default()

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

* Enable debug logging for all incoming ABCI requests

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

* Improve CLI UX

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

* Allow for read buffer size customization

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

* Add crate description

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

* Update README for ABCI crate

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

* Add ABCI integration test for minimal ABCI crate (#797)

* Add integration testing utility for ABCI key/value store

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

* Add hacky bash script to demonstrate parallel execution

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

* Created abci test harness (#800)

* Created abci test harness

* cargo make additions and docs

Co-authored-by: Greg Szabo <16846635+greg-szabo@users.noreply.github.com>

* Update abci/src/codec.rs

Co-authored-by: Romain Ruetschi <romain@informal.systems>

* Apply suggestion from https://github.com/informalsystems/tendermint-rs/pull/794\#discussion_r573100911

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

* Refactor error handing and expose eyre::Result as crate default Result type

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

* Refactor to use tracing instead of log

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

* Add newline

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

* Remove comment relating to constraints on Codec struct params

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

* Version tendermint-abci crate in line with other tendermint-rs crates

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

* Update CHANGELOG

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

* Expand crate documentation

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

* Extract request dispatch functionality from Application trait

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

* Move ABCI server example to crate root

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

* Fix broken link in docs

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

* Replace EchoApp example with KeyValueStoreApp example

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

Co-authored-by: Greg Szabo <16846635+greg-szabo@users.noreply.github.com>
Co-authored-by: Romain Ruetschi <romain@informal.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants