Skip to content

[ruby] Get rid warning output that appeared inline with specs - #1563

Open
brandur wants to merge 1 commit into
masterfrom
brandur-quiet-ruby
Open

brandur wants to merge 1 commit into
masterfrom
brandur-quiet-ruby

Conversation

@brandur

@brandur brandur commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Noticed while running the Ruby specs manually today that a ton of
warning output's snuck in since the full River implementation came in,
and from a variety of sources. Here, get rid of it all:

  • Updated SimpleCov configuration: Replace deprecated add_filter
    calls with skip.

  • Isolated fork tests: Configuration tests were previously forking
    the entire RSpec process including SQLite connections opened by the
    parent. SQLite warned as it discarded those. Here, start a fresh Ruby
    process before forking.

  • Capture Postgres notices: The reconnection test deliberately
    terminated its listener connection, causing libpq to print:

      FATAL: terminating connection due to administrator command
    

    It still does, but now we capture the notice.

  • Quieted Rails generator: The spec ran the Rails generator,
    producing some natural output into the stream. We now run the
    generator with --quiet so it suppresses its own messages.

Noticed while running the Ruby specs manually today that a ton of
warning output's snuck in since the full River implementation came in,
and from a variety of sources. Here, get rid of it all:

* **Updated SimpleCov configuration:** Replace deprecated `add_filter`
  calls with `skip`.

* **Isolated fork tests:** Configuration tests were previously forking
  the entire RSpec process including SQLite connections opened by the
  parent. SQLite warned as it discarded those. Here, start a fresh Ruby
  process before forking.

* **Capture Postgres notices:** The reconnection test deliberately
  terminated its listener connection, causing libpq to print:

        FATAL: terminating connection due to administrator command

    It still does, but now we capture the notice.

* **Quieted Rails generator:** The spec ran the Rails generator,
  producing some natural output into the stream. We now run the
  generator with `--quiet` so it suppresses its own messages.
@brandur
brandur requested a review from bgentry October 30, 2026 18:10
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