From d4864e52e7d17fb6350f181d3c3224fe548553c0 Mon Sep 17 00:00:00 2001 From: Gerd Zellweger Date: Mon, 3 Aug 2026 22:12:07 -0700 Subject: [PATCH] [python] test_events: ignore Unavailable status events The runner records Unavailable whenever it momentarily cannot reach the pipeline, which reflects the cluster rather than the lifecycle under test. One such event, caused by a compiler-server outage that crash-looped the pipeline container, broke the exact-sequence assertion in cloud CI. Signed-off-by: Gerd Zellweger --- python/tests/platform/test_pipeline_events.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/tests/platform/test_pipeline_events.py b/python/tests/platform/test_pipeline_events.py index d5c43aeac1a..fa98a5c5afa 100644 --- a/python/tests/platform/test_pipeline_events.py +++ b/python/tests/platform/test_pipeline_events.py @@ -181,6 +181,8 @@ def test_events(pipeline_name): # Map events such that evolution test can be written cleanly # Consecutive events are removed because it is possible for events to be repeated if a status takes a longer time + # `Unavailable` events are removed because the runner reports them whenever it momentarily + # cannot reach the pipeline, which depends on the environment rather than on the lifecycle events_status_limited = list( map( lambda e1: ( @@ -192,7 +194,10 @@ def test_events(pipeline_name): e1["program_status"], e1["storage_status"], ), - events_status, + filter( + lambda e1: e1["deployment_runtime_status"] != "Unavailable", + events_status, + ), ) )