Skip to content

chore(deps): require db-retry 0.7.1 and run the connection-loss tests - #52

Merged
lesnik512 merged 1 commit into
mainfrom
chore/db-retry-0.7.1
Oct 16, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
chore/db-retry-0.7.1

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Requires db-retry 0.7.1, which includes modern-python/db-retry#69: postgres_retry now retries a DBAPIError that SQLAlchemy marked connection_invalidated, which covers asyncpg's InterfaceError: connection is closed.

#51 made the six read use cases own their transaction, and added tests/use_cases/test_connection_loss.py as a strict xfail until a db-retry release had this fix. This PR raises the floor to >=0.7.1 and removes the marker, so the tests now run as ordinary tests.

0.6.0 and 0.7.0 are also new to chat-app. Their behaviour changes cover connect-time retries and the multi-host DSN helpers (is_dsn_multihost, build_connection_factory). chat-app only imports Transaction and postgres_retry.

just test with db-retry 0.7.1 installed: 129 passed, 100% coverage. ruff and ty are clean.

@lesnik512
lesnik512 merged commit f22e06b into main Oct 16, 2026
4 checks passed
@lesnik512
lesnik512 deleted the chore/db-retry-0.7.1 branch October 16, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant