tests: mark test_search_shows_results_found as transient
HEAD mainThe 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.
2 files changed, 2 insertions, 0 deletions
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,
|