github new-usemame/Calibre-Web-NextGen v4.0.85
v4.0.85 — Book grid stays up during ingest + CI checksum suite is green again

6 hours ago

What's new

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

(or :latest)

Book grid stays up while you're ingesting (#247, fixes #234)

If you ran with CWA_WATCH_MODE=poll and tried to load the library while ingest was actively processing books, you could get a 500 error page. The render crashed inside order_authors when a concurrent ingest tore down a database row while the index page was reading it.

This release fixes the crash three ways:

  • The book list now orders authors from data the page has already loaded, instead of re-querying the database mid-render. No race window, no crash.
  • Books with a missing author_sort field (Calibre allows this) render normally instead of erroring.
  • Books whose author_sort references a stale author log a one-time warning and fall back to a usable order, instead of dropping the page.

Adopts the structure of CWA #1359 by @navels — same fix proposed for the upstream repo. Thanks @thunderbolt93 for the bug report.

Integration tests now green for future PRs (#246, fixes #244)

Internal: the test_ingest_checksums.py suite was failing on every PR opened against main since v4.0.79 because the fresh-install gating from PR #238 left checksum writes disabled by default. The fixture now flips the flag on for the test module and resets it on teardown so the suite actually exercises the feature. Coverage theater rejected — the WIP draft of this fix just skipped the tests; the real fix is the fixture flip.

No user-visible change in this part — but it means the autopilot can resume drafting fork PRs (six consecutive ticks were blocked on this) and CI gives a meaningful signal again.

Credits

Thanks @navels (CWA #1359), @thunderbolt93 (#234 report).

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

NewReleases is sending notifications on new releases.