Browser tests: sqlite3.InterfaceError under the live server fails a test at random #1024
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#1024
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 on the merge commit of #1015 (
bd549fd81) failed on one test out of 865:tests/e2e/test_application_filters.py::test_filters_the_page_came_with_can_be_changed_and_cleared_from_their_headers[chromium-scripts on]The live server answered
/applications/with a 500 while loading the session, before any application code ran:django.db.utils.InterfaceError: bad parameter or other API misuse(sqlite3.InterfaceError), raised fromSessionStore.load()indjango/contrib/sessions/backends/db.py.That points to one SQLite connection used from two threads at once, the live-server thread and the test thread. #1015 does not touch the applications page, and the same job passed on the PR.
To do: find which fixture shares the connection (in-memory database,
live_server, or a test thread querying while the server answers) and give the server its own, or serialise the two. Check whether other e2e tests could fail the same way.