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

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

Build:
Build:
LAST BUILD BRANCH: fix/route-success-failure-readers
DEFAULT BRANCH: master
Ran 18 Aug 2026 06:23AM 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

18 Aug 2026 06:23AM UTC coverage: 96.98% (+0.002%) from 96.978%
32106722953

Pull #2855

github

ericproulx
Expose a swallowed exception on rack.exception in safe_default too

safe_default is the unrecognised-error path: an exception raised inside a
rescue_from block that nothing else handles. Grape answers a generic 500 there
rather than letting it propagate, and records the exception on
env['grape.exception'].

That key is Grape's own and no error tracker reads it. Because the exception
never propagates, a tracker mounted above Grape has nothing to catch either, so
a bug in a rescue_from block has always been able to turn into a silent 500 —
the request is answered, the log says nothing, and the tracker never fires.

Publish it on env['rack.exception'] as well, the convention for an exception
that was handled rather than raised, which sentry-ruby collects as
env['rack.exception'] || env['sinatra.error']. Extracted as expose_exception,
now shared with the rendering failsafe.

The deliberate silence of this path is left alone: unlike the failsafe, a
rescue_from :internal_grape_exceptions handler can still own the response here,
so the logging stays the application's call.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2855: Expose a swallowed exception on rack.exception in safe_default too

1216 of 1307 branches covered (93.04%)

Branch coverage included in aggregate %.

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

3857 of 3924 relevant lines covered (98.29%)

26868.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json.gemfile - 32106722953.1 18 Aug 2026 06:23AM UTC 167
47.54
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 32106722953.2 18 Aug 2026 06:23AM UTC 167
55.23
GitHub Action Run
3 run-3.3-gemfiles/rails_7_2.gemfile - 32106722953.3 18 Aug 2026 06:24AM UTC 168
95.62
GitHub Action Run
4 run-4.0-gemfiles/rails_8_0.gemfile - 32106722953.4 18 Aug 2026 06:23AM UTC 168
95.62
GitHub Action Run
5 run-4.0-gemfiles/rack_2_2.gemfile - 32106722953.5 18 Aug 2026 06:24AM UTC 167
95.58
GitHub Action Run
6 run-4.0-gemfiles/rails_8_1.gemfile - 32106722953.6 18 Aug 2026 06:24AM UTC 168
95.62
GitHub Action Run
7 run-3.3-gemfiles/rack_3_1.gemfile - 32106722953.7 18 Aug 2026 06:24AM UTC 167
95.62
GitHub Action Run
8 run-3.3-gemfiles/rack_3_0.gemfile - 32106722953.8 18 Aug 2026 06:23AM UTC 167
95.62
GitHub Action Run
9 run-3.4-gemfiles/rack_2_2.gemfile - 32106722953.9 18 Aug 2026 06:24AM UTC 167
95.58
GitHub Action Run
10 run-3.4-gemfiles/rack_3_0.gemfile - 32106722953.10 18 Aug 2026 06:24AM UTC 167
95.62
GitHub Action Run
11 run-3.3-gemfiles/rails_8_1.gemfile - 32106722953.11 18 Aug 2026 06:24AM UTC 168
95.62
GitHub Action Run
12 run-3.4-gemfiles/rails_8_1.gemfile - 32106722953.12 18 Aug 2026 06:24AM UTC 168
95.62
GitHub Action Run
13 run-4.0-gemfiles/dry_validation.gemfile - 32106722953.13 18 Aug 2026 06:23AM UTC 167
57.89
GitHub Action Run
14 run-3.4-Gemfile - 32106722953.14 18 Aug 2026 06:24AM UTC 167
95.62
GitHub Action Run
15 run-3.3-gemfiles/rails_8_0.gemfile - 32106722953.15 18 Aug 2026 06:24AM UTC 168
95.62
GitHub Action Run
16 run-4.0-gemfiles/rack_3_2.gemfile - 32106722953.16 18 Aug 2026 06:23AM UTC 167
95.62
GitHub Action Run
17 run-4.0-gemfiles/grape_entity.gemfile - 32106722953.17 18 Aug 2026 06:24AM UTC 167
50.22
GitHub Action Run
18 run-3.4-gemfiles/rack_3_2.gemfile - 32106722953.18 18 Aug 2026 06:23AM UTC 167
95.62
GitHub Action Run
19 run-4.0-gemfiles/rack_3_1.gemfile - 32106722953.19 18 Aug 2026 06:24AM UTC 167
95.62
GitHub Action Run
20 run-4.0-gemfiles/multi_xml.gemfile - 32106722953.20 18 Aug 2026 06:23AM UTC 167
46.95
GitHub Action Run
21 run-3.4-gemfiles/rails_7_2.gemfile - 32106722953.21 18 Aug 2026 06:24AM UTC 168
95.62
GitHub Action Run
22 run-3.3-gemfiles/rack_2_2.gemfile - 32106722953.22 18 Aug 2026 06:24AM UTC 167
95.58
GitHub Action Run
23 run-4.0-gemfiles/hashie.gemfile - 32106722953.23 18 Aug 2026 06:24AM UTC 167
61.84
GitHub Action Run
24 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32106722953.24 18 Aug 2026 06:24AM UTC 167
46.99
GitHub Action Run
25 run-3.4-gemfiles/rails_8_0.gemfile - 32106722953.25 18 Aug 2026 06:23AM UTC 168
95.62
GitHub Action Run
26 run-4.0-gemfiles/rack_3_0.gemfile - 32106722953.26 18 Aug 2026 06:24AM UTC 167
95.62
GitHub Action Run
27 run-3.4-gemfiles/rack_3_1.gemfile - 32106722953.27 18 Aug 2026 06:23AM UTC 167
95.62
GitHub Action Run
28 run-3.3-Gemfile - 32106722953.28 18 Aug 2026 06:23AM UTC 167
95.62
GitHub Action Run
29 run-3.3-gemfiles/rack_3_2.gemfile - 32106722953.29 18 Aug 2026 06:23AM UTC 167
95.62
GitHub Action Run
30 run-4.0-Gemfile - 32106722953.30 18 Aug 2026 06:24AM UTC 167
95.62
GitHub Action Run
31 run-4.0-gemfiles/multi_json_1_20.gemfile - 32106722953.31 18 Aug 2026 06:24AM UTC 167
47.58
GitHub Action Run
32 run-4.0-gemfiles/rails_7_2.gemfile - 32106722953.32 18 Aug 2026 06:23AM UTC 168
95.62
GitHub Action Run
Source Files on build 32106722953
  • 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 #32106722953
  • Pull Request #2855
  • PR Base - fix/error-rendering-failsafe (#32106065653)
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