From e016bbe8e3196e6b9dddccc6bb789d15ea1ce0f5 Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Mon, 13 Jun 2022 17:13:30 -0300 Subject: [PATCH] increase lightwalletd timeout, remove testnet tests (#4584) * increase lightwalletd timeout * switch back to aditya's fork * manually point to new aditya's lightwalletd image * disable sync_one_checkpoint_testnet test * disable restart_stop_at_height in testnet * rever to 'latest' lightwalletd image --- .github/workflows/zcash-lightwalletd.yml | 4 ++-- zebrad/tests/acceptance.rs | 7 +++++-- zebrad/tests/common/launch.rs | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/zcash-lightwalletd.yml b/.github/workflows/zcash-lightwalletd.yml index 0964962e..ebd8ce1f 100644 --- a/.github/workflows/zcash-lightwalletd.yml +++ b/.github/workflows/zcash-lightwalletd.yml @@ -11,7 +11,7 @@ on: # rebuild lightwalletd whenever the related Zebra code changes # # TODO: this code isn't compiled in this docker image - # rebuild whenever the actual code at zcash/lightwalletd/master changes + # rebuild whenever the actual code at lightwalletd/master changes - 'zebra-rpc/**' - 'zebrad/tests/acceptance.rs' - 'zebrad/src/config.rs' @@ -50,7 +50,7 @@ jobs: steps: - uses: actions/checkout@v3.0.2 with: - repository: zcash/lightwalletd + repository: adityapk00/lightwalletd ref: 'master' persist-credentials: false diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 18e99e58..628a543e 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -501,7 +501,9 @@ fn sync_one_checkpoint_mainnet() -> Result<()> { /// Test if `zebrad` can sync the first checkpoint on testnet. /// /// The first checkpoint contains a single genesis block. -#[test] +// TODO: disabled because testnet is not currently reliable +// #[test] +#[allow(dead_code)] fn sync_one_checkpoint_testnet() -> Result<()> { sync_until( TINY_CHECKPOINT_TEST_HEIGHT, @@ -523,7 +525,8 @@ fn restart_stop_at_height() -> Result<()> { zebra_test::init(); restart_stop_at_height_for_network(Network::Mainnet, TINY_CHECKPOINT_TEST_HEIGHT)?; - restart_stop_at_height_for_network(Network::Testnet, TINY_CHECKPOINT_TEST_HEIGHT)?; + // TODO: disabled because testnet is not currently reliable + // restart_stop_at_height_for_network(Network::Testnet, TINY_CHECKPOINT_TEST_HEIGHT)?; Ok(()) } diff --git a/zebrad/tests/common/launch.rs b/zebrad/tests/common/launch.rs index 97bdc014..fad4315d 100644 --- a/zebrad/tests/common/launch.rs +++ b/zebrad/tests/common/launch.rs @@ -49,9 +49,9 @@ pub const LIGHTWALLETD_UPDATE_TIP_DELAY: Duration = Duration::from_secs(20 * 60) /// The amount of time we wait for lightwalletd to do a full sync to the tip. /// -/// `lightwalletd` takes about half an hour to fully sync, +/// `lightwalletd` takes about an hour to fully sync, /// and Zebra needs time to activate its mempool. -pub const LIGHTWALLETD_FULL_SYNC_TIP_DELAY: Duration = Duration::from_secs(45 * 60); +pub const LIGHTWALLETD_FULL_SYNC_TIP_DELAY: Duration = Duration::from_secs(90 * 60); /// Extension trait for methods on `tempfile::TempDir` for using it as a test /// directory for `zebrad`.