Skip to content

fix: complete the example documentation for real world usage - #1

Merged
bougyman merged 3 commits into
mainfrom
full-usage-with-connection-validation
Oct 14, 2026
Merged

bougyman merged 3 commits into
mainfrom
full-usage-with-connection-validation

Conversation

@bougyman

Copy link
Copy Markdown
Member
  • docs: show pg_reaper alongside connection_validator
  • fix: keep development files out of the packaged gem

Document how the two extensions divide the work: pg_reaper replaces
connections older than connection_max_lifetime at checkout, and
connection_validator replaces connections that fail validation after
sitting idle. For a pgdog rollout pg_reaper alone is enough, and the
validator covers deaths unrelated to rollouts.

- Add an "Idle connections" section to the Readme with a combined example
- State the limits: no background closing, and checked out connections are never interrupted
- Test both extensions together in each load order
The gem shipped release-please config, .rubocop.yml, .version.txt and
the Rakefile. Exclude them from the gemspec file list so the gem
contains only the license, Readme, docs and lib.

- Drop the stale sequel/ exclude from .rubocop.yml
Copilot AI balanced review requested due to automatic review settings October 14, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The operational guidance needs corrected rollout safety conditions and validation timeout semantics.

2 open findings
What changed in this PR

Expands practical usage guidance for pg_reaper and excludes additional development files from the packaged gem.

Changes:

  • Documents use with connection_validator and adds compatibility tests for both load orders.
  • Refines gem packaging exclusions and lint scope.
File Description
test/​sequel/​test_pg_reaper.rb Tests both extension load orders and replacement scenarios.
sequel-pg_reaper.gemspec Excludes additional development files from packaging.
Readme.adoc Expands connection lifecycle guidance and examples.
.rubocop.yml Removes the sequel/**/* lint exclusion.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Readme.adoc Outdated
Comment thread Readme.adoc Outdated
Address PR review feedback on the Readme.

- Make the pgdog rollout guarantee conditional on a shutdown grace longer
  than the lifetime and on new connections avoiding a terminating pod
- Describe connection_validation_timeout as an idle threshold, not a
  detection deadline
@bougyman
bougyman merged commit c77e39c into main Oct 14, 2026
5 checks passed
@bougyman
bougyman deleted the full-usage-with-connection-validation branch October 14, 2026 18:41
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.

4 participants