github new-usemame/Calibre-Web-NextGen v4.0.123
v4.0.123 — CI: xdist hang root cause traced (sqlite connection cleanup, infrastructure-only)

one hour ago

What's new

docker pull ghcr.io/new-usemame/calibre-web-nextgen:v4.0.123

(or :latest)

CI: root-caused the xdist worker-IPC hang (infrastructure-only)

v4.0.122 shipped two surface-area mitigations for the CI flake. v4.0.123 traces the residual to a single test that left a sqlite connection open. When the connection's __del__ ran during pytest-xdist's worker → master IPC handoff, sqlite's C-level mutex could deadlock the worker's "I finished" report.

Wrapping the test body in try/finally with explicit conn.close() closes the connection synchronously before the worker hands the result back. No production code change.

If the hang was caused by this one test (90% likely based on the log signature), CI runs through Fast Tests cleanly from now on. If there's a second root cause we'll see it surface separately.

Don't miss a new Calibre-Web-NextGen release

NewReleases is sending notifications on new releases.