-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(code/test): Add channel-based test app for integration tests (#747)
* feat(test): Add test app based on the example app * Improve logging in tests * Better error handling * Formatting * Fix test suite * Implement `RestreamProposal` in example and test app * Disable `proposal_only` consensus mode tests * Start from latest height in store plus one * Do not run MBT tests in integration test suite * Fix missing logs * Store synced values in database for later retrieval, increase history length to 100 * Formatting * Run integration tests for test app in their own job * Run test app tests with `nextest` for now * Do not fail CI for test app integration test failure * Go back to running tests with maelstrom * Exclude test app from code coverage for now * Ignore unsupported tests * Add back full nodes tests * Wait a bit until starting the first height * Fix off-by-one error in starting height of test and example apps * Fix typo * Slow down test app to ease debugging * Update state.rs Co-authored-by: Anca Zamfir <[email protected]> Signed-off-by: Romain Ruetschi <[email protected]> * feat(code/app/starknet): Adapt Starknet app to latest P2P protos (#819) * Update Starknet protos to their latest version * Adapt Starknet app to new protos * Use height and round as stream id in example app * Use `ConsensusStreamId` proto message for stream id in Starknet app * Fix formatting of stream ids * Update protos for interop * Add `ProposalCommitment` type * Add `BlockInfo` type * Update proposal building and assembly from parts to account for BlockInfo and ProposalCommitment * Update protos * Adapt to latest proto changes * Post-merge fixes * Disable integration tests with proposal mode, keep parts only * Set parts-only in spwan.bash * Add detail to panic when explicit proposal * Fix fmt --------- Co-authored-by: Anca Zamfir <[email protected]> * chore(code): Some WAL entries fail to decode (#840) * Add test that shows: failed to fill whole buffer * Add WAL replay error when unable to decode all entries * Don't add tag w/o value for skipped timers or empty buf to wal * Move new test to wal * Logging cleanup * Fix missing info in logs * Add error detail to WalReplayError event * Add tag to wal only if vote encoding is succesful * Do not instruct WAL to persist step timeouts * Move WalReplayError detection to background task * WAL writes all timeouts it is given, leave choice up to consensus --------- Co-authored-by: Romain Ruetschi <[email protected]> * Post-merge fixes * Refactor parts signature verification * Add parts signature verification to test app * Restream proposal parts when reproposing a value * Formatting * Remove decided proposal from undecided proposals table * Remove duplicated code * Include test app tests in code coverage * Abort whole test on failure * Fix full node test * Show log when request sync value --------- Signed-off-by: Romain Ruetschi <[email protected]> Co-authored-by: Anca Zamfir <[email protected]> Co-authored-by: Anca Zamfir <[email protected]>
- Loading branch information
1 parent
b49951a
commit 88b4193
Showing
53 changed files
with
3,848 additions
and
204 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.