Skip to content

chore: improve coverage#1741

Closed
filipecabaco wants to merge 1 commit intomainfrom
chore/improve-code-coverage
Closed

chore: improve coverage#1741
filipecabaco wants to merge 1 commit intomainfrom
chore/improve-code-coverage

Conversation

@filipecabaco
Copy link
Member

What kind of change does this PR introduce?

improve coverage

@coderabbitai
Copy link

coderabbitai bot commented Mar 5, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Improved error handling for database replication operations, including better handling of unavailable replication slots.
    • Enhanced robustness when managing database configuration in edge cases with missing or invalid settings.

Walkthrough

This pull request adds comprehensive error handling and test coverage to the Postgres CDC RLS extension. Two production code changes improve robustness: the db_settings function now safely handles nil configuration values by returning explicit nil defaults, and the terminate_backend function explicitly handles missing replication slots. The remaining changes consist entirely of new and expanded test modules covering extension configuration, database settings, replication operations, worker supervision, rate limiting, CDC RLS functionality, and latency monitoring. The test additions focus on validating error paths, retry logic, and edge cases across the extension's core components.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@filipecabaco filipecabaco deleted the chore/improve-code-coverage branch March 5, 2026 23:19
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