Browser job hangs in test_column_filters: service worker fetches /offline/ in hand-made contexts #1046
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#1046
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.pyblocks service workers throughbrowser_context_args(#895), but that reaches only thepageandcontextfixtures. 79 contexts in 37 files are opened withbrowser.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".