You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently cannot be reproduced. Filed so the context is findable when (if) it resurfaces — most likely in CI, where timing differs from local runs. If it stays stale for a long time, close it.
Observed (once, 2026-07-12, local)
During the test-setup work for #81, a single occurrence in a combined run of two test directories:
The error was at setup of the first test of the class that ran second (collection order: response before suggest), right after the previous directory's teardown.
Immediate re-runs of the exact same command passed (twice), as did the reversed order and many subsequent full-suite runs (3× 449–577 tests, all green).
Environment at the time: pre-class-scoping fixture layout (function-scoped portal/portal_with_content, i.e. per-test index clear + content creation), the session layer-keeper fixture already applied.
Hypothesis
A Solr commit-visibility race between consecutive test setups/teardowns: one test's teardown deletes its content (committed to Solr), and the next test's maintenance.clear() + content creation + query occasionally observes a stale index state — e.g. the clear/adds racing an in-flight commit from the previous teardown.
Notes:
Solr is not transactional with the ZODB: index mutations from a previous test are only reconciled by the explicit clear/delete calls in the fixtures, so ordering/visibility between those HTTP calls is where a race can live.
Status
Currently cannot be reproduced. Filed so the context is findable when (if) it resurfaces — most likely in CI, where timing differs from local runs. If it stays stale for a long time, close it.
Observed (once, 2026-07-12, local)
During the test-setup work for #81, a single occurrence in a combined run of two test directories:
responsebeforesuggest), right after the previous directory's teardown.portal/portal_with_content, i.e. per-test index clear + content creation), the session layer-keeper fixture already applied.Hypothesis
A Solr commit-visibility race between consecutive test setups/teardowns: one test's teardown deletes its content (committed to Solr), and the next test's
maintenance.clear()+ content creation + query occasionally observes a stale index state — e.g. the clear/adds racing an in-flight commit from the previous teardown.Notes:
If it resurfaces
waitSearcher=true) or a short readiness check aftermaintenance.clear()in theportalfixture.