-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Overview This is a refactor of the celestia-app tests in [test-infra](https://github.com/celestiaorg/test-infra). The refactor focuses on further removing boiler plate and using our existing testing utilities for devUX, but also allows for more elaborate test scenarios and data collection. Testground requires that each node is responsible for intializing, operating, performing tests, and collecting data on itself. To do this this refactor adds a new `Role` interface, where we define specific roles that `Plan`, `Execute`, and `Retro`. The first test case makes use of the interface to define a `Leader` and `Follower`, where we can have the `Leader` generate all the keys, configs, genesis, etc during `Plan` and then publishes that data to all `Followers`, which use their respective configuration to start their node. After execution of the test, each `Role` can run arbitrary `Retro` logic over the data produced or collected during the test run. The first experiment is mean to add as similar environment to mainnet as possible. We will use this as a base control case for an upcoming PR that adds the unbounded blocksize test Please see the [README](https://github.com/celestiaorg/celestia-app/blob/db0fdfd3197238c77e72f59222cfaa3ec6648396/test/testground/README.md) for more info and diagrams closes #2033 blocking celestiaorg/celestia-core#945 ## Checklist - [x] New and updated code has appropriate documentation - [x] New and updated code has new and/or updated testing - [x] Required CI checks are passing - [x] Visual proof for any user facing features like CLI or documentation updates - [x] Linked issues closed with keywords --------- Co-authored-by: CHAMI Rachid <[email protected]> Co-authored-by: Rootul Patel <[email protected]>
- Loading branch information
1 parent
696454c
commit ce1c6cd
Showing
31 changed files
with
5,587 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
go 1.21.1 | ||
|
||
use ( | ||
. | ||
./test/testground | ||
) |
Oops, something went wrong.