From 862307e31e5d34bb59b60fdba95aadff5367976c Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Fri, 7 Jun 2024 21:37:51 +0200 Subject: [PATCH] wip --- scripts/ci/e2e_benchmark.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ci/e2e_benchmark.py b/scripts/ci/e2e_benchmark.py index 6228cabfe..23c343ba9 100644 --- a/scripts/ci/e2e_benchmark.py +++ b/scripts/ci/e2e_benchmark.py @@ -32,6 +32,10 @@ class BenchmarkRunner: response = requests.get(url) end_time = time.time() if response.status_code != 200: + if benchmark_name == 'match': + code = response.json()['code'] + if code == 'NoSegment' or code == 'NoMatch': + continue raise Exception(f"Error: {response.status_code} {response.text}") times.append(end_time - start_time)