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

ruby-grape / grape / 32173808300
97%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feature/strict-params
DEFAULT BRANCH: master
Ran 18 Aug 2026 06:56PM 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:56PM UTC coverage: 96.98% (-0.004%) from 96.984%
32173808300

Pull #2840

github

web-flow
Expose a swallowed exception on rack.exception in safe_default too (#2855)

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 #2840: Answer 500 when an error response cannot be rendered

1216 of 1307 branches covered (93.04%)

Branch coverage included in aggregate %.

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

3857 of 3924 relevant lines covered (98.29%)

26870.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_2_2.gemfile - 32173808300.1 18 Aug 2026 06:56PM UTC 167
95.58
GitHub Action Run
2 run-3.4-gemfiles/rails_8_1.gemfile - 32173808300.2 18 Aug 2026 06:57PM UTC 168
95.62
GitHub Action Run
3 run-3.3-gemfiles/rails_7_2.gemfile - 32173808300.3 19 Aug 2026 05:28AM UTC 168
95.62
GitHub Action Run
4 run-3.3-gemfiles/rack_3_2.gemfile - 32173808300.4 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
5 run-4.0-gemfiles/hashie.gemfile - 32173808300.5 18 Aug 2026 06:57PM UTC 167
61.84
GitHub Action Run
6 run-3.4-gemfiles/rack_3_0.gemfile - 32173808300.6 18 Aug 2026 06:57PM UTC 167
95.62
GitHub Action Run
7 run-3.3-gemfiles/rails_8_0.gemfile - 32173808300.7 18 Aug 2026 06:57PM UTC 168
95.62
GitHub Action Run
8 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32173808300.8 18 Aug 2026 06:56PM UTC 167
46.99
GitHub Action Run
9 run-4.0-gemfiles/grape_entity.gemfile - 32173808300.9 18 Aug 2026 06:56PM UTC 167
50.22
GitHub Action Run
10 run-3.3-gemfiles/rack_3_0.gemfile - 32173808300.10 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
11 run-3.3-gemfiles/rack_2_2.gemfile - 32173808300.11 18 Aug 2026 06:57PM UTC 167
95.58
GitHub Action Run
12 run-3.4-gemfiles/rack_3_2.gemfile - 32173808300.12 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
13 run-4.0-gemfiles/rails_8_0.gemfile - 32173808300.13 18 Aug 2026 06:57PM UTC 168
95.62
GitHub Action Run
14 run-4.0-gemfiles/multi_xml.gemfile - 32173808300.14 18 Aug 2026 06:57PM UTC 167
46.95
GitHub Action Run
15 run-4.0-gemfiles/rack_3_1.gemfile - 32173808300.15 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
16 run-3.3-gemfiles/rails_8_1.gemfile - 32173808300.16 18 Aug 2026 06:57PM UTC 168
95.62
GitHub Action Run
17 run-3.3-Gemfile - 32173808300.17 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
18 run-4.0-Gemfile - 32173808300.18 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
19 run-3.4-gemfiles/rack_3_1.gemfile - 32173808300.19 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
20 run-4.0-gemfiles/rails_8_1.gemfile - 32173808300.20 18 Aug 2026 06:56PM UTC 168
95.62
GitHub Action Run
21 run-4.0-gemfiles/dry_validation.gemfile - 32173808300.21 18 Aug 2026 06:56PM UTC 167
57.89
GitHub Action Run
22 run-3.4-gemfiles/rails_7_2.gemfile - 32173808300.22 18 Aug 2026 06:57PM UTC 168
95.62
GitHub Action Run
23 run-4.0-gemfiles/multi_json_1_20.gemfile - 32173808300.23 18 Aug 2026 06:57PM UTC 167
47.58
GitHub Action Run
24 run-3.3-gemfiles/rack_3_1.gemfile - 32173808300.24 18 Aug 2026 06:57PM UTC 167
95.62
GitHub Action Run
25 run-4.0-gemfiles/rack_3_2.gemfile - 32173808300.25 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 32173808300.26 18 Aug 2026 06:56PM UTC 168
95.62
GitHub Action Run
27 run-3.4-gemfiles/rails_8_0.gemfile - 32173808300.27 18 Aug 2026 06:57PM UTC 168
95.62
GitHub Action Run
28 run-3.4-Gemfile - 32173808300.28 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
29 run-4.0-gemfiles/grape_swagger.gemfile - 32173808300.29 18 Aug 2026 06:57PM UTC 167
55.23
GitHub Action Run
30 run-4.0-gemfiles/multi_json.gemfile - 32173808300.30 18 Aug 2026 06:57PM UTC 167
47.54
GitHub Action Run
31 run-4.0-gemfiles/rack_2_2.gemfile - 32173808300.31 18 Aug 2026 06:56PM UTC 167
95.58
GitHub Action Run
32 run-4.0-gemfiles/rack_3_0.gemfile - 32173808300.32 18 Aug 2026 06:56PM UTC 167
95.62
GitHub Action Run
Source Files on build 32173808300
  • Tree
  • List 168
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32173808300
  • Pull Request #2840
  • PR Base - master (#31997173157)
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