Repository navigation
Release Notes - v1.0.5
Highlights
- Fixed leaked advisory lock-holder sessions that could block subsequent CI runs.
- Hardened stale-lock recovery for
createwith safer targeting and retry behavior. - Added stronger regression coverage, including real grant-permission verification for app users.
What Changed
-
Lock reliability in
scripts/preview-branch.sh:- Track and terminate the exact PostgreSQL backend PID used by the lock-holder session.
- Keep stale-lock cleanup scoped to
application_name=postgres-branching-lock-holder. - Preserve timeout recovery flow (cleanup + retry) for lock acquisition.
-
Regression tests for lock behavior:
tests/test_create_action_integration.sh- run
createtwice and assert no lingering lock-holder session - inject synthetic stale lock-holder and verify auto-cleanup + retry path
- strengthen cleanup for lock-holder backends
- run
tests/test_create_action.sh- make mock
psqlcounter concurrency-safe with file locking - align negative-path env setup consistency
- make mock
-
Grant-permission coverage improvements:
tests/test_reset_action.sh- add grant SQL coverage for reset flow with
APP_DB_USER
- add grant SQL coverage for reset flow with
tests/test_create_action_integration.sh- validate effective read/write privileges for
APP_DB_USER - validate default privileges on new tables/sequences created after grant
- validate effective read/write privileges for
tests/test_reset_action_integration.sh- same effective-permission and default-privilege validation after reset
Validation
Executed locally and in integration Docker PostgreSQL 18:
bash tests/test_create_action.shbash tests/test_reset_action.shbash tests/test_delete_action.shbash tests/test_create_action_integration.shbash tests/test_reset_action_integration.shbash tests/test_delete_action_integration.sh
Compatibility
- No breaking input/output changes.
- Existing workflows remain compatible.
What's Changed
Full Changelog: v1.0.4...v1.0.5