From 36d66702b7e8afa7449c9aebf305c276785b648f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 26 Jun 2026 18:27:03 +0000 Subject: tests: mark test_search_shows_results_found as transient The search endpoint occasionally returns a page without 'records found' when GN2 is under load or just restarted (cold query path). The test passes on immediate re-run. Mark transient as a signal for future retry logic (e.g. pytest-rerunfailures) rather than treating failures as definitive. --- pyproject.toml | 1 + tests/test_gn2_smoke.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e94e642..773b57a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ markers = [ "gn3: Tests exercising the genenetwork3 REST API", "gn_auth: Tests exercising the gn-auth service", "auth_flow: Tests requiring valid user credentials (set GN_TEST_EMAIL and GN_TEST_PASSWORD)", + "transient: Tests known to fail intermittently due to timing or load; candidates for retry logic", ] [build-system] diff --git a/tests/test_gn2_smoke.py b/tests/test_gn2_smoke.py index 7c23642..8799c2f 100644 --- a/tests/test_gn2_smoke.py +++ b/tests/test_gn2_smoke.py @@ -64,6 +64,7 @@ class TestSearch: resp = http.get(gn2_url + "/search", params=params, timeout=60) assert resp.status_code == 200 + @pytest.mark.transient def test_search_shows_results_found(self, gn2_url, http): params = { "species": _SEARCH_SPECIES, -- cgit 1.4.1