The next-postgres test holds a preparing copy's mark while it checks it (#280)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
The test marks a fork as being prepared by setting preparing_revision_id itself. A request the app refuses with 409 for such a copy (here the /history page's) starts preparing it again in the background (store.access), which rebuilt the small fork and cleared the mark partway through the checks, so /document could answer 200. The test now holds the fork's row locked while it checks, which that retry skips (FOR UPDATE SKIP LOCKED), and releases it in a finally so a failed check can't hang the pool's end. Closes #280 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/9ab89bb5c8ca199b3d7ccf975bffa106dcff4463
Related
Open The next-postgres test holds a preparing copy's mark while it checks it (#280) in the timeline