Skip to content

Commit 9171fc8

Browse files
Handle missing annotations and reduce mesh annotation timeout (#201)
Handle missing annotations and reduce timeout waiting for mesh annotation from 50 min to 1 min.
1 parent 522d1a7 commit 9171fc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

framework/infrastructure/k8s.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ def wait_for_mesh_annotation_on_gamma_route(
838838
retryer = retryers.constant_retryer(
839839
wait_fixed=_timedelta(seconds=wait_sec),
840840
timeout=timeout,
841-
check_result=lambda resource: resource.metadata.annotations
842-
is not None
841+
check_result=lambda resource: resource.metadata is not None
842+
and resource.metadata.annotations is not None
843843
and self.MESH_ANNOTATION in resource.metadata.annotations,
844844
)
845845
try:

framework/test_app/runners/k8s/gamma_server_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def run( # pylint: disable=arguments-differ
238238
self.k8s_namespace.wait_for_mesh_annotation_on_gamma_route(
239239
name=self.route_name,
240240
kind=k8s.RouteKind.HTTP,
241-
timeout_sec=datetime.timedelta(minutes=50).total_seconds(),
241+
timeout_sec=datetime.timedelta(minutes=1).total_seconds(),
242242
)
243243
return servers
244244

0 commit comments

Comments
 (0)