diff --git a/.github/workflows/deploy-gcp-tests.yml b/.github/workflows/deploy-gcp-tests.yml index 54c78998..9ee0f0f2 100644 --- a/.github/workflows/deploy-gcp-tests.yml +++ b/.github/workflows/deploy-gcp-tests.yml @@ -629,7 +629,8 @@ jobs: '(estimated progress.*network_upgrade.*=.*Nu5)|(test result:.*finished in)' \ " - # follow the logs of the test we just launched, up to block 1,740,000 (or the test finishing) + # follow the logs of the test we just launched, up to block 1,740,000 or later + # (or the test finishing) # # We chose this height because it was about 5 hours into the NU5 sync, at the end of July 2022. # This is a temporary workaround until we improve sync speeds. @@ -683,7 +684,7 @@ jobs: ${{ inputs.test_id }} | \ tee --output-error=exit /dev/stderr | \ grep --max-count=1 --extended-regexp --color=always \ - '(estimated progress.*current_height.*=.*174[0-9][0-9][0-9][0-9].*remaining_sync_blocks)|(test result:.*finished in)' \ + '(estimated progress.*current_height.*=.*17[4-9][0-9][0-9][0-9][0-9].*remaining_sync_blocks)|(estimated progress.*current_height.*=.*1[8-9][0-9][0-9][0-9][0-9][0-9].*remaining_sync_blocks)||(estimated progress.*current_height.*=.*2[0-9][0-9][0-9][0-9][0-9][0-9].*remaining_sync_blocks)|(test result:.*finished in)' \ " # follow the logs of the test we just launched, up to the last checkpoint (or the test finishing) diff --git a/zebrad/tests/common/launch.rs b/zebrad/tests/common/launch.rs index 075e5d23..3c27a303 100644 --- a/zebrad/tests/common/launch.rs +++ b/zebrad/tests/common/launch.rs @@ -48,12 +48,12 @@ pub const BETWEEN_NODES_DELAY: Duration = Duration::from_secs(2); /// and `zebrad` takes about 30 minutes to update to the tip. /// /// TODO: reduce to 20 minutes when `zebrad` sync performance improves -pub const LIGHTWALLETD_UPDATE_TIP_DELAY: Duration = Duration::from_secs(60 * 60); +pub const LIGHTWALLETD_UPDATE_TIP_DELAY: Duration = Duration::from_secs(11 * 60 * 60); /// The amount of time we wait for lightwalletd to do a full sync to the tip. /// /// See [`LIGHTWALLETD_UPDATE_TIP_DELAY`] for details. -pub const LIGHTWALLETD_FULL_SYNC_TIP_DELAY: Duration = Duration::from_secs(150 * 60); +pub const LIGHTWALLETD_FULL_SYNC_TIP_DELAY: Duration = Duration::from_secs(11 * 60 * 60); /// The amount of extra time we wait for Zebra to sync to the tip, /// after we ignore a lightwalletd failure. diff --git a/zebrad/tests/common/sync.rs b/zebrad/tests/common/sync.rs index ffb34f9e..a9a8d283 100644 --- a/zebrad/tests/common/sync.rs +++ b/zebrad/tests/common/sync.rs @@ -363,8 +363,8 @@ pub fn create_cached_database_height( ) -> Result<()> { eprintln!("creating cached database"); - // 16 hours - let timeout = Duration::from_secs(60 * 60 * 16); + // 20 hours + let timeout = Duration::from_secs(60 * 60 * 20); // Use a persistent state, so we can handle large syncs let mut config = cached_mandatory_checkpoint_test_config()?;