Browser job hangs in test_column_filters: service worker fetches /offline/ in hand-made contexts #1046

Closed
opened 2026-10-24 17:42:44 +00:00 by tiagoagueda · 0 comments
Owner

The browser job of #1041 hung twice in a row in tests/e2e/test_column_filters.py (5-minute timeout), with two live-server request threads stuck inside SQLite: one serving the job list, the other serving /offline/.

Only the service worker requests /offline/. tests/e2e/conftest.py blocks service workers through browser_context_args (#895), but that reaches only the page and context fixtures. 79 contexts in 37 files are opened with browser.new_context() (phone viewport, scripts off), and in those the worker still installs and fetches the offline page in the background. That request lands while the next request is in flight, and both share the live server's single in-memory SQLite connection, which Django warns against.

Fix: every context the suite opens blocks service workers unless the test passes service_workers="allow".

The browser job of #1041 hung twice in a row in `tests/e2e/test_column_filters.py` (5-minute timeout), with two live-server request threads stuck inside SQLite: one serving the job list, the other serving `/offline/`. Only the service worker requests `/offline/`. `tests/e2e/conftest.py` blocks service workers through `browser_context_args` (#895), but that reaches only the `page` and `context` fixtures. 79 contexts in 37 files are opened with `browser.new_context()` (phone viewport, scripts off), and in those the worker still installs and fetches the offline page in the background. That request lands while the next request is in flight, and both share the live server's single in-memory SQLite connection, which Django warns against. Fix: every context the suite opens blocks service workers unless the test passes `service_workers="allow"`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo#1046
No description provided.