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

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

Build:
Build:
LAST BUILD BRANCH: fix/route-success-failure-readers
DEFAULT BRANCH: master
Ran 17 Aug 2026 04:15PM 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

17 Aug 2026 04:13PM UTC coverage: 96.975% (+0.001%) from 96.974%
32044730214

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

1214 of 1305 branches covered (93.03%)

Branch coverage included in aggregate %.

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

3851 of 3918 relevant lines covered (98.29%)

26901.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_entity.gemfile - 32044730214.1 17 Aug 2026 04:18PM UTC 167
50.22
GitHub Action Run
2 run-3.3-gemfiles/rack_3_0.gemfile - 32044730214.2 17 Aug 2026 04:16PM UTC 167
95.61
GitHub Action Run
3 run-3.3-gemfiles/rails_8_0.gemfile - 32044730214.3 17 Aug 2026 06:40PM UTC 168
95.61
GitHub Action Run
4 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32044730214.4 17 Aug 2026 04:18PM UTC 167
47.0
GitHub Action Run
5 run-4.0-gemfiles/rack_3_0.gemfile - 32044730214.5 17 Aug 2026 04:18PM UTC 167
95.61
GitHub Action Run
6 run-3.3-gemfiles/rack_2_2.gemfile - 32044730214.6 17 Aug 2026 04:17PM UTC 167
95.57
GitHub Action Run
7 run-3.4-gemfiles/rails_7_2.gemfile - 32044730214.7 17 Aug 2026 04:15PM UTC 168
95.61
GitHub Action Run
8 run-3.3-gemfiles/rack_3_2.gemfile - 32044730214.8 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
9 run-3.4-gemfiles/rails_8_1.gemfile - 32044730214.9 17 Aug 2026 04:19PM UTC 168
95.61
GitHub Action Run
10 run-4.0-gemfiles/rails_8_1.gemfile - 32044730214.10 17 Aug 2026 04:19PM UTC 168
95.61
GitHub Action Run
11 run-3.4-gemfiles/rack_3_2.gemfile - 32044730214.11 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 32044730214.12 17 Aug 2026 04:19PM UTC 167
55.26
GitHub Action Run
13 run-4.0-gemfiles/multi_xml.gemfile - 32044730214.13 17 Aug 2026 04:19PM UTC 167
46.96
GitHub Action Run
14 run-4.0-gemfiles/multi_json_1_20.gemfile - 32044730214.14 17 Aug 2026 04:18PM UTC 167
47.59
GitHub Action Run
15 run-3.4-Gemfile - 32044730214.15 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
16 run-4.0-gemfiles/rack_2_2.gemfile - 32044730214.16 17 Aug 2026 04:19PM UTC 167
95.57
GitHub Action Run
17 run-3.4-gemfiles/rack_2_2.gemfile - 32044730214.17 17 Aug 2026 04:17PM UTC 167
95.57
GitHub Action Run
18 run-4.0-gemfiles/rack_3_2.gemfile - 32044730214.18 17 Aug 2026 04:16PM UTC 167
95.61
GitHub Action Run
19 run-4.0-gemfiles/rails_8_0.gemfile - 32044730214.19 17 Aug 2026 04:19PM UTC 168
95.61
GitHub Action Run
20 run-3.3-gemfiles/rails_8_1.gemfile - 32044730214.20 17 Aug 2026 04:19PM UTC 168
95.61
GitHub Action Run
21 run-3.4-gemfiles/rack_3_1.gemfile - 32044730214.21 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
22 run-3.4-gemfiles/rails_8_0.gemfile - 32044730214.22 17 Aug 2026 04:17PM UTC 168
95.61
GitHub Action Run
23 run-3.3-gemfiles/rails_7_2.gemfile - 32044730214.23 17 Aug 2026 04:18PM UTC 168
95.61
GitHub Action Run
24 run-3.3-Gemfile - 32044730214.24 17 Aug 2026 04:15PM UTC 167
95.61
GitHub Action Run
25 run-4.0-gemfiles/rack_3_1.gemfile - 32044730214.25 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 32044730214.26 17 Aug 2026 04:19PM UTC 168
95.61
GitHub Action Run
27 run-3.4-gemfiles/rack_3_0.gemfile - 32044730214.27 17 Aug 2026 04:17PM UTC 167
95.61
GitHub Action Run
28 run-4.0-Gemfile - 32044730214.28 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
29 run-4.0-gemfiles/hashie.gemfile - 32044730214.29 17 Aug 2026 04:18PM UTC 167
61.86
GitHub Action Run
30 run-3.3-gemfiles/rack_3_1.gemfile - 32044730214.30 17 Aug 2026 04:19PM UTC 167
95.61
GitHub Action Run
31 run-4.0-gemfiles/multi_json.gemfile - 32044730214.31 17 Aug 2026 04:18PM UTC 167
47.56
GitHub Action Run
32 run-4.0-gemfiles/dry_validation.gemfile - 32044730214.32 17 Aug 2026 04:19PM UTC 167
57.91
GitHub Action Run
Source Files on build 32044730214
  • Tree
  • List 168
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32044730214
  • Pull Request #2855
  • PR Base - fix/error-rendering-failsafe (#32044609601)
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