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)