Browse Source

fix(backup): Increase timeouts (#60432)

Alex Zaslavsky 1 year ago
parent
commit
209013fa19

+ 4 - 4
src/sentry/utils/relocation.py

@@ -159,7 +159,7 @@ artifacts:
   objects:
     location: "$bucket_root/relocations/runs/$uuid/findings/"
     paths: ["/workspace/findings/**"]
-timeout: 2400s
+timeout: 3600s
 options:
   machineType: "N1_HIGHCPU_32"
   env:
@@ -193,7 +193,7 @@ IMPORT_VALIDATION_STEP_TEMPLATE = Template(
       - "--findings-file"
       - "/findings/import-$jsonfile"
       $args
-    timeout: 30s
+    timeout: 300s
     """
 )
 
@@ -222,7 +222,7 @@ EXPORT_VALIDATION_STEP_TEMPLATE = Template(
       - "--findings-file"
       - "/findings/export-$jsonfile"
       $args
-    timeout: 30s
+    timeout: 300s
     """
 )
 
@@ -269,7 +269,7 @@ COMPARE_VALIDATION_STEP_TEMPLATE = Template(
       - "--findings-file"
       - "/findings/compare-$jsonfile"
       $args
-    timeout: 30s
+    timeout: 300s
     """
 )
 

+ 10 - 10
tests/sentry/tasks/snapshots/PreprocessingCompleteTest/test_success.pysnap

@@ -1,5 +1,5 @@
 ---
-created: '2023-11-08T18:50:27.519701Z'
+created: '2023-11-21T23:19:32.012053Z'
 creator: sentry
 source: tests/sentry/tasks/test_relocation.py
 ---
@@ -127,7 +127,7 @@ steps:
   - --overwrite-configs
   id: import-baseline-config
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - copy-inputs-being-validated
   - create-working-dirs
@@ -157,7 +157,7 @@ steps:
   - importing
   id: import-colliding-users
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - copy-inputs-being-validated
   - create-working-dirs
@@ -188,7 +188,7 @@ steps:
   - testing
   id: import-raw-relocation-data
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - copy-inputs-being-validated
   - create-working-dirs
@@ -219,7 +219,7 @@ steps:
   - /findings/export-baseline-config.json
   id: export-baseline-config
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - import-baseline-config
   - import-raw-relocation-data
@@ -250,7 +250,7 @@ steps:
   - importing
   id: export-colliding-users
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - import-colliding-users
   - export-baseline-config
@@ -281,7 +281,7 @@ steps:
   - testing
   id: export-raw-relocation-data
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - import-raw-relocation-data
   - export-colliding-users
@@ -323,7 +323,7 @@ steps:
   - /findings/compare-baseline-config.json
   id: compare-baseline-config
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - export-baseline-config
   - export-raw-relocation-data
@@ -355,10 +355,10 @@ steps:
   - /findings/compare-colliding-users.json
   id: compare-colliding-users
   name: gcr.io/cloud-builders/docker
-  timeout: 30s
+  timeout: 300s
   waitFor:
   - export-colliding-users
   - compare-baseline-config
 tags:
 - cloud-builders-community
-timeout: 2400s
+timeout: 3600s