about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaude2026-06-26 18:27:03 +0000
committerFrederick Muriuki Muriithi2026-06-26 13:27:43 -0500
commit36d66702b7e8afa7449c9aebf305c276785b648f (patch)
treeeaa09797c8493f47469666623df28f483025b958
parent7a477074f5099fb2da8ecd5f5d16c11301c72d45 (diff)
downloadgn-integration-tests-36d66702b7e8afa7449c9aebf305c276785b648f.tar.gz
tests: mark test_search_shows_results_found as transient HEAD main
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.
-rw-r--r--pyproject.toml1
-rw-r--r--tests/test_gn2_smoke.py1
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,