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

ruby-grape / grape / 32583646682
97%

Build:
DEFAULT BRANCH: master
Ran 22 Aug 2026 04:05PM UTC
Jobs 32
Files 168
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

22 Aug 2026 04:05PM UTC coverage: 96.985% (-0.006%) from 96.991%
32583646682

push

github

web-flow
Let rescue_from :grape_exceptions outrank a catch-all class handler (#2843)

rescue_from :grape_exceptions is an opt-in to keep Grape's own errors
rendering with their own status -- a validation failure answers 400 rather
than whatever the application's catch-all returns.

It only ever worked against rescue_from :all, which lives in
all_rescue_handler and is consulted last. Written as a class instead,
rescue_from StandardError is a registered handler, matched first, and Grape's
exceptions are StandardErrors -- so the opt-in silently did nothing and
validation errors still came back as 500s:

    rescue_from StandardError { error!('server error', 500) }
    rescue_from :grape_exceptions          # inert

Let the opt-in win over a handler that only matched through a non-Grape
ancestor. A handler registered for a Grape exception class is more precise
than the opt-in and still wins, so an explicit
rescue_from Grape::Exceptions::ValidationErrors keeps its handler.

registered_rescue_handler gains an _entry variant returning the matched class
alongside its handler, since deciding this needs to know *which* class matched,
not just that one did. find_handler resolves the entry once and passes it down.

Application errors still reach the catch-all, rescue_from :all is unchanged,
and InvalidVersionHeader is left alone so it keeps reaching Rack and version
cascading still works.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1239 of 1330 branches covered (93.16%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 1 file covered. (100.0%)

3875 of 3943 relevant lines covered (98.28%)

27124.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/dry_validation.gemfile - 32583646682.1 22 Aug 2026 04:05PM UTC 167
57.87
GitHub Action Run
2 run-3.4-Gemfile - 32583646682.2 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
3 run-4.0-gemfiles/rails_8_0.gemfile - 32583646682.3 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
4 run-4.0-Gemfile - 32583646682.4 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
5 run-4.0-gemfiles/rack_3_1.gemfile - 32583646682.5 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
6 run-3.3-gemfiles/rails_8_0.gemfile - 32583646682.6 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
7 run-4.0-gemfiles/hashie.gemfile - 32583646682.7 22 Aug 2026 04:05PM UTC 167
61.86
GitHub Action Run
8 run-3.4-gemfiles/rack_3_0.gemfile - 32583646682.8 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
9 run-3.4-gemfiles/rails_7_2.gemfile - 32583646682.9 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 32583646682.10 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
11 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32583646682.11 22 Aug 2026 04:05PM UTC 167
46.86
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 32583646682.12 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
13 run-3.3-Gemfile - 32583646682.13 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
14 run-3.3-gemfiles/rack_2_2.gemfile - 32583646682.14 22 Aug 2026 04:05PM UTC 167
95.69
GitHub Action Run
15 run-4.0-gemfiles/rack_3_0.gemfile - 32583646682.15 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
16 run-3.3-gemfiles/rack_3_1.gemfile - 32583646682.16 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
17 run-3.3-gemfiles/rack_3_0.gemfile - 32583646682.17 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
18 run-3.4-gemfiles/rack_3_2.gemfile - 32583646682.18 22 Aug 2026 04:06PM UTC 167
95.73
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 32583646682.19 22 Aug 2026 04:06PM UTC 168
95.73
GitHub Action Run
20 run-3.4-gemfiles/rails_8_1.gemfile - 32583646682.20 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
21 run-4.0-gemfiles/multi_json_1_20.gemfile - 32583646682.21 22 Aug 2026 04:05PM UTC 167
47.43
GitHub Action Run
22 run-3.3-gemfiles/rack_3_2.gemfile - 32583646682.22 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
23 run-3.4-gemfiles/rack_2_2.gemfile - 32583646682.23 22 Aug 2026 04:05PM UTC 167
95.69
GitHub Action Run
24 run-4.0-gemfiles/multi_xml.gemfile - 32583646682.24 22 Aug 2026 04:05PM UTC 167
46.82
GitHub Action Run
25 run-4.0-gemfiles/grape_entity.gemfile - 32583646682.25 22 Aug 2026 04:05PM UTC 167
50.03
GitHub Action Run
26 run-4.0-gemfiles/rack_2_2.gemfile - 32583646682.26 22 Aug 2026 04:05PM UTC 167
95.69
GitHub Action Run
27 run-4.0-gemfiles/grape_swagger.gemfile - 32583646682.27 22 Aug 2026 04:05PM UTC 167
55.12
GitHub Action Run
28 run-4.0-gemfiles/multi_json.gemfile - 32583646682.28 22 Aug 2026 04:05PM UTC 167
47.39
GitHub Action Run
29 run-3.3-gemfiles/rails_7_2.gemfile - 32583646682.29 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
30 run-4.0-gemfiles/rails_8_1.gemfile - 32583646682.30 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
31 run-4.0-gemfiles/rails_7_2.gemfile - 32583646682.31 22 Aug 2026 04:05PM UTC 168
95.73
GitHub Action Run
32 run-4.0-gemfiles/rack_3_2.gemfile - 32583646682.32 22 Aug 2026 04:05PM UTC 167
95.73
GitHub Action Run
Source Files on build 32583646682
  • Tree
  • List 168
  • 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 #32583646682
  • f2f36196 on github
  • Prev Build on master (#32583377655)
  • Next Build on master (#32583678355)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc