-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing: Prepare light client testing with substrate binary and add s…
…ubxt-test macro (#1507) * testing: Add long running light client flag and cfg aliases Signed-off-by: Alexandru Vasile <[email protected]> * testing: Expose clients depending on feature flags Signed-off-by: Alexandru Vasile <[email protected]> * subxt: Use unstable backend for light client Signed-off-by: Alexandru Vasile <[email protected]> * testing: Disable flaky lightclient tests Signed-off-by: Alexandru Vasile <[email protected]> * ci: Add long runnnig step Signed-off-by: Alexandru Vasile <[email protected]> * Revert "subxt: Use unstable backend for light client" This reverts commit ea6f3cc. * ci: Long running tests for 60 mins Signed-off-by: Alexandru Vasile <[email protected]> * ci: Use 16 cores for light-client testing Signed-off-by: Alexandru Vasile <[email protected]> * ci: Isolate light-client testing to save CI minutes Signed-off-by: Alexandru Vasile <[email protected]> * testing: Retry on Tx::Dropped for lightclinet only Signed-off-by: Alexandru Vasile <[email protected]> * testing: Wait for more blocks for the lightclient init Signed-off-by: Alexandru Vasile <[email protected]> * subxt: Use unstable backend for light client Signed-off-by: Alexandru Vasile <[email protected]> * testing: Disable legacy RPC tests Signed-off-by: Alexandru Vasile <[email protected]> * testing: Disable sudo and contracts tests Signed-off-by: Alexandru Vasile <[email protected]> * testing: Retry constructing lightclient on read-proof errors Signed-off-by: Alexandru Vasile <[email protected]> * testing: Disable tx dynamic test Signed-off-by: Alexandru Vasile <[email protected]> * proc-macro: Timeout for tests Signed-off-by: Alexandru Vasile <[email protected]> * testing: Add timeout 800 seconds Signed-off-by: Alexandru Vasile <[email protected]> * proc-macro/tests: Adjust subxt-test proc-macro Signed-off-by: Alexandru Vasile <[email protected]> * proc-macro: Rename crate to subxt-test-proc-macro Signed-off-by: Alexandru Vasile <[email protected]> * Use default subxt-proc-macro timeout Signed-off-by: Alexandru Vasile <[email protected]> * light-client: Remove println Signed-off-by: Alexandru Vasile <[email protected]> * subxt: Remove tokio as dependency, use it only for testing Signed-off-by: Alexandru Vasile <[email protected]> * testing: Chagne default timeout to 6 seconds Signed-off-by: Alexandru Vasile <[email protected]> * proc-macro: Add env timeout variable Signed-off-by: Alexandru Vasile <[email protected]> * ci: Add subxt env var for controling test timeouts Signed-off-by: Alexandru Vasile <[email protected]> * tests/tx-retries: Retry on `Non node available` error Signed-off-by: Alexandru Vasile <[email protected]> * testing: Use unstable backend for testing lightclient Signed-off-by: Alexandru Vasile <[email protected]> * testing: Remove old lightclient object Signed-off-by: Alexandru Vasile <[email protected]> * testing: Adjust for the new interface Signed-off-by: Alexandru Vasile <[email protected]> * backend/rpc: Allow older version of the initialized event Signed-off-by: Alexandru Vasile <[email protected]> * rpc/tests: Check initialized decodes correctly Signed-off-by: Alexandru Vasile <[email protected]> * ci: Reset workflow Signed-off-by: Alexandru Vasile <[email protected]> * Apply cargo fmt Signed-off-by: Alexandru Vasile <[email protected]> * Remove unused dep Signed-off-by: Alexandru Vasile <[email protected]> * Remove gitmerge old file Signed-off-by: Alexandru Vasile <[email protected]> * Remove unused dep Signed-off-by: Alexandru Vasile <[email protected]> * rename proc-macro to subxt-test-macro Signed-off-by: Alexandru Vasile <[email protected]> * tests: Remove txretries for lightclient Signed-off-by: Alexandru Vasile <[email protected]> * tests: Wait for 5 blocks for the lightclient full testing suite Signed-off-by: Alexandru Vasile <[email protected]> * tests: Group imports Signed-off-by: Alexandru Vasile <[email protected]> * macro: Rename const value Signed-off-by: Alexandru Vasile <[email protected]> --------- Signed-off-by: Alexandru Vasile <[email protected]>
- Loading branch information
Showing
26 changed files
with
554 additions
and
181 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use cfg_aliases::cfg_aliases; | ||
|
||
fn main() { | ||
// Setup cfg aliases | ||
cfg_aliases! { | ||
lightclient: { any(feature = "unstable-light-client", feature = "unstable-light-client-long-running") }, | ||
fullclient: { all(not(feature = "unstable-light-client"), not(feature = "unstable-light-client-long-running")) }, | ||
} | ||
} |
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.