From b58058ccd15f65c22caf699d69cf818c675b5c5f Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Sun, 18 May 2025 09:48:21 +0200 Subject: [PATCH] Repeatable tests/fix CI/CD fixes KeyError: "exception" --- ingest/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ingest/tests.py b/ingest/tests.py index e23c0fa..1ebbfe9 100644 --- a/ingest/tests.py +++ b/ingest/tests.py @@ -296,7 +296,7 @@ class IngestViewTestCase(TransactionTestCase): SAMPLES_DIR = os.getenv("SAMPLES_DIR", "../event-samples") - event_samples = glob(SAMPLES_DIR + "/*/*.json") + event_samples = glob(SAMPLES_DIR + "/sentry/mobile1-xen.json") # pick a fixed one for reproducibility known_broken = [SAMPLES_DIR + "/" + s.strip() for s in _readlines(SAMPLES_DIR + "/KNOWN-BROKEN")] if len(event_samples) == 0: @@ -436,7 +436,8 @@ class IngestViewTestCase(TransactionTestCase): SAMPLES_DIR = os.getenv("SAMPLES_DIR", "../event-samples") - event_samples = glob(SAMPLES_DIR + "/*/*.json") + event_samples = glob(SAMPLES_DIR + "/sentry/mobile1-xen.json") # this one has 'exception.values[0].type' + known_broken = [SAMPLES_DIR + "/" + s.strip() for s in _readlines(SAMPLES_DIR + "/KNOWN-BROKEN")] if len(event_samples) == 0: