• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 29194177443 / 31
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/base-only-rescue-handlers
DEFAULT BRANCH: master
Ran 12 Jul 2026 01:21PM UTC
Files 166
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jul 2026 01:18PM UTC coverage: 95.204% (+0.004%) from 95.2%
29194177443.31

Pull #2794

github

ericproulx
Fix base-only rescue handlers never firing

`rescue_from Klass, rescue_subclasses: false` registered its handler in
`namespace_reverse_stackable[:base_only_rescue_handlers]` (dsl/request_response.rb),
but the error middleware options read `:base_only_rescue_handlers` from
`namespace_stackable` via `namespace_stackable_with_hash`. Those are two
different stores, so the read was always empty and base-only handlers never
ran — the exception propagated uncaught.

Read base-only handlers from the same reverse-stackable store the write uses,
sharing the child-precedence merge with `rescue_handlers` via
`merged_reverse_stackable`. This also gives base-only handlers the same
nested-scope precedence that subclass handlers already had.

The gap slipped through because the only behavioral test asserted a *child*
error is not rescued (which passes even when base-only is fully broken);
nothing asserted the exact class is rescued. Add that missing test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pull Request #2794: Fix base-only rescue handlers never firing

1101 of 1220 branches covered (90.25%)

Branch coverage included in aggregate %.

3544 of 3659 relevant lines covered (96.86%)

971.75 hits per line

Source Files on job run-4.0-Gemfile - 29194177443.31
  • Tree
  • List 166
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 29194177443
  • 60dcb275 on github
  • Prev Job for on fix/base-only-rescue-handlers (#28782563800.11)
  • Next Job for on fix/base-only-rescue-handlers (#29198631979.30)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc