From 8ffcbf857b3161dd2f615895ab7f1cea6b6ca530 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Mon, 24 Jul 2023 10:38:20 -0700 Subject: [PATCH] Increase retry. --- scripts/gha/integration_testing/ftl_gha_validator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gha/integration_testing/ftl_gha_validator.py b/scripts/gha/integration_testing/ftl_gha_validator.py index 4350738245..58119d2315 100644 --- a/scripts/gha/integration_testing/ftl_gha_validator.py +++ b/scripts/gha/integration_testing/ftl_gha_validator.py @@ -74,7 +74,7 @@ def _get_testapp_log_text_from_gcs(gcs_path): logging.error("Unexpected error reading GCS log:\n%s", e) return None -@retry(subprocess.CalledProcessError, tries=3, delay=10) +@retry(subprocess.CalledProcessError, tries=10, delay=5, backoff=1.5) def _gcs_list_dir(gcs_path): """Recursively returns a list of contents for a directory on GCS.""" args = [GSUTIL, "ls", "-r", gcs_path] @@ -83,7 +83,7 @@ def _gcs_list_dir(gcs_path): return result.stdout.splitlines() -@retry(subprocess.CalledProcessError, tries=3, delay=10) +@retry(subprocess.CalledProcessError, tries=10, delay=5, backoff=1.5) def _gcs_read_file(gcs_path): """Extracts the contents of a file on GCS.""" args = [GSUTIL, "cat", gcs_path]