Skip to content

Commit c0cca0b

Browse files
dinagravesparthealeahecole
authored
Fix flaky tests by running slow deletion as a background task (GoogleCloudPlatform#7159)
* Async deletion for cloud run * Memorystore async deletion for cloud run * Update auth_test.py Co-authored-by: Anthonios Partheniou Co-authored-by: Leah E. Cole <[email protected]>
1 parent 729b190 commit c0cca0b

File tree

10 files changed

+11
-0
lines changed

10 files changed

+11
-0
lines changed

auth/service-to-service/auth_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def services():
8585
[
8686
"gcloud", "run", "services", "delete", f"helloworld-{suffix}",
8787
"--project", project,
88+
"--async",
8889
"--platform=managed",
8990
"--region=us-central1",
9091
"--quiet",
@@ -96,6 +97,7 @@ def services():
9697
[
9798
"gcloud", "functions", "delete", f"helloworld-{suffix}",
9899
"--project", project,
100+
"--async",
99101
"--region=us-central1",
100102
"--quiet",
101103
],

memorystore/redis/cloud_run_deployment/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def deployed_service(container_image, redis_host):
134134
"--platform=managed",
135135
"--region=us-central1",
136136
"--quiet",
137+
"--async",
137138
"--project",
138139
PROJECT,
139140
]

run/filesystem/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def deployed_service():
6161
'--region=us-central1',
6262
'--platform=managed',
6363
'--quiet',
64+
"--async",
6465
'--project',
6566
PROJECT,
6667
]

run/hello-broken/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def deployed_service(container_image):
9494
"--platform=managed",
9595
"--region=us-central1",
9696
"--quiet",
97+
"--async",
9798
"--project",
9899
PROJECT,
99100
]

run/helloworld/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def deployed_service(container_image):
9595
"--platform=managed",
9696
"--region=us-central1",
9797
"--quiet",
98+
"--async",
9899
"--project",
99100
PROJECT,
100101
]

run/image-processing/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def deployed_service(container_image, output_bucket):
102102
"--platform=managed",
103103
"--region=us-central1",
104104
"--quiet",
105+
"--async",
105106
"--project",
106107
PROJECT,
107108
]

run/logging-manual/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def deployed_service(container_image):
101101
"--platform=managed",
102102
"--region=us-central1",
103103
"--quiet",
104+
"--async",
104105
"--project",
105106
PROJECT,
106107
]

run/markdown-preview/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def renderer_deployed_service(renderer_image):
129129
"--platform=managed",
130130
"--region=us-central1",
131131
"--quiet",
132+
"--async",
132133
"--project",
133134
PROJECT,
134135
]

run/pubsub/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def deployed_service(container_image):
9999
"--platform=managed",
100100
"--region=us-central1",
101101
"--quiet",
102+
"--async",
102103
"--project",
103104
PROJECT,
104105
]

run/system-package/e2e_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def deployed_service(container_image):
9797
"--platform=managed",
9898
"--region=us-central1",
9999
"--quiet",
100+
"--async",
100101
"--project",
101102
PROJECT,
102103
]

0 commit comments

Comments
 (0)