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

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

Build:
Build:
LAST BUILD BRANCH: fix/base-only-rescue-handlers
DEFAULT BRANCH: master
Ran 12 Jul 2026 01:19PM UTC
Jobs 32
Files 167
Run time 1min
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: 96.663% (+0.002%) from 96.661%
29194177443

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

1127 of 1222 branches covered (92.23%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

3595 of 3663 relevant lines covered (98.14%)

23345.68 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.0
0.0% lib/grape/dsl/request_response.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 29194177443.1 12 Jul 2026 01:21PM UTC 167
95.21
GitHub Action Run
2 run-4.0-gemfiles/rack_3_1.gemfile - 29194177443.2 12 Jul 2026 01:19PM UTC 166
95.2
GitHub Action Run
3 run-4.0-gemfiles/rack_2_2.gemfile - 29194177443.3 12 Jul 2026 01:19PM UTC 166
95.16
GitHub Action Run
4 run-3.3-gemfiles/rack_3_2.gemfile - 29194177443.4 12 Jul 2026 01:19PM UTC 166
95.2
GitHub Action Run
5 run-3.3-gemfiles/rack_2_2.gemfile - 29194177443.5 12 Jul 2026 01:20PM UTC 166
95.16
GitHub Action Run
6 run-4.0-gemfiles/multi_xml_0_8.gemfile - 29194177443.6 12 Jul 2026 01:21PM UTC 166
47.14
GitHub Action Run
7 run-3.4-gemfiles/rack_3_0.gemfile - 29194177443.7 12 Jul 2026 01:20PM UTC 166
95.2
GitHub Action Run
8 run-4.0-gemfiles/dry_validation.gemfile - 29194177443.8 12 Jul 2026 01:21PM UTC 166
58.29
GitHub Action Run
9 run-4.0-gemfiles/multi_json_1_20.gemfile - 29194177443.9 12 Jul 2026 01:21PM UTC 166
47.67
GitHub Action Run
10 run-3.4-gemfiles/rails_7_2.gemfile - 29194177443.10 12 Jul 2026 01:20PM UTC 167
95.21
GitHub Action Run
11 run-4.0-gemfiles/rack_3_0.gemfile - 29194177443.11 12 Jul 2026 01:20PM UTC 166
95.2
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 29194177443.12 12 Jul 2026 01:20PM UTC 167
95.21
GitHub Action Run
13 run-4.0-gemfiles/rack_3_2.gemfile - 29194177443.13 12 Jul 2026 01:21PM UTC 166
95.2
GitHub Action Run
14 run-3.4-gemfiles/rack_3_2.gemfile - 29194177443.14 12 Jul 2026 01:19PM UTC 166
95.2
GitHub Action Run
15 run-4.0-gemfiles/hashie.gemfile - 29194177443.15 12 Jul 2026 01:21PM UTC 166
62.43
GitHub Action Run
16 run-3.3-Gemfile - 29194177443.16 12 Jul 2026 01:20PM UTC 166
95.2
GitHub Action Run
17 run-3.3-gemfiles/rack_3_0.gemfile - 29194177443.17 12 Jul 2026 01:19PM UTC 166
95.2
GitHub Action Run
18 run-3.4-gemfiles/rails_8_1.gemfile - 29194177443.18 12 Jul 2026 01:19PM UTC 167
95.21
GitHub Action Run
19 run-4.0-gemfiles/grape_entity.gemfile - 29194177443.19 12 Jul 2026 01:20PM UTC 166
50.42
GitHub Action Run
20 run-4.0-gemfiles/multi_json.gemfile - 29194177443.20 12 Jul 2026 01:21PM UTC 166
47.63
GitHub Action Run
21 run-3.3-gemfiles/rack_3_1.gemfile - 29194177443.21 12 Jul 2026 01:20PM UTC 166
95.2
GitHub Action Run
22 run-4.0-gemfiles/multi_xml.gemfile - 29194177443.22 12 Jul 2026 01:21PM UTC 166
47.1
GitHub Action Run
23 run-3.4-gemfiles/rack_2_2.gemfile - 29194177443.23 12 Jul 2026 01:21PM UTC 166
95.16
GitHub Action Run
24 run-3.4-gemfiles/rails_8_0.gemfile - 29194177443.24 12 Jul 2026 01:20PM UTC 167
95.21
GitHub Action Run
25 run-4.0-gemfiles/grape_swagger.gemfile - 29194177443.25 12 Jul 2026 01:20PM UTC 166
55.3
GitHub Action Run
26 run-3.3-gemfiles/rails_7_2.gemfile - 29194177443.26 12 Jul 2026 01:21PM UTC 167
95.21
GitHub Action Run
27 run-3.4-gemfiles/rack_3_1.gemfile - 29194177443.27 12 Jul 2026 01:19PM UTC 166
95.2
GitHub Action Run
28 run-4.0-gemfiles/rails_8_0.gemfile - 29194177443.28 12 Jul 2026 01:20PM UTC 167
95.21
GitHub Action Run
29 run-3.4-Gemfile - 29194177443.29 12 Jul 2026 01:19PM UTC 166
95.2
GitHub Action Run
30 run-4.0-gemfiles/rails_8_1.gemfile - 29194177443.30 12 Jul 2026 01:20PM UTC 167
95.21
GitHub Action Run
31 run-4.0-Gemfile - 29194177443.31 12 Jul 2026 01:21PM UTC 166
95.2
GitHub Action Run
32 run-3.3-gemfiles/rails_8_0.gemfile - 29194177443.32 12 Jul 2026 01:20PM UTC 167
95.21
GitHub Action Run
Source Files on build 29194177443
  • Tree
  • List 167
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29194177443
  • Pull Request #2794
  • PR Base - master (#28782563800)
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