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

ruby-grape / grape / 36451910408
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/error-raises
DEFAULT BRANCH: master
Ran 28 Sep 2026 04:33PM UTC
Jobs 32
Files 166
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

28 Sep 2026 04:33PM UTC coverage: 99.966%. First build
36451910408

push

github

ericproulx
Stop copying the error middleware on requests that do not fail

Grape::Middleware::Error is in every endpoint's stack, and Base#call
copied it for every request so that #call! could keep the env in an
ivar. Only rendering an error reads it there. The middleware now
answers from the one instance the stack built and takes a copy, holding
the request's env, only once there is an error to render. #call! still
answers a request when called directly.

Its options are read off ivars set in #initialize instead of through
Forwardable delegators into config, as Formatter and Versioner::Base
already do: rendering an error asks for most of them, and each paid a
Forwardable frame plus a Data reader for a value fixed at build time.
The ivars only pay off together with the first change, since a
per-request copy has to carry each of them.

A subclass overriding #call! is no longer called per request; UPGRADING
says to override #call instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

1508 of 1509 branches covered (99.93%)

Branch coverage included in aggregate %.

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

4375 of 4376 relevant lines covered (99.98%)

29713.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_swagger.gemfile - 36451910408.1 28 Sep 2026 04:34PM UTC 164
53.15
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 36451910408.2 28 Sep 2026 04:33PM UTC 164
55.75
GitHub Action Run
3 run-4.0-gemfiles/rails_8_0.gemfile - 36451910408.3 28 Sep 2026 04:34PM UTC 166
98.79
GitHub Action Run
4 run-4.0-gemfiles/hashie.gemfile - 36451910408.4 28 Sep 2026 04:33PM UTC 164
59.82
GitHub Action Run
5 run-3.3-gemfiles/rack_3_1.gemfile - 36451910408.5 28 Sep 2026 04:34PM UTC 165
98.81
GitHub Action Run
6 run-3.4-gemfiles/rails_8_1.gemfile - 36451910408.6 28 Sep 2026 04:34PM UTC 166
98.79
GitHub Action Run
7 run-4.0-Gemfile - 36451910408.7 28 Sep 2026 04:34PM UTC 165
98.79
GitHub Action Run
8 run-3.4-Gemfile - 36451910408.8 28 Sep 2026 04:33PM UTC 165
98.79
GitHub Action Run
9 run-4.0-gemfiles/multi_json_1_20.gemfile - 36451910408.9 28 Sep 2026 04:33PM UTC 164
45.91
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 36451910408.10 28 Sep 2026 04:33PM UTC 165
98.79
GitHub Action Run
11 run-4.0-gemfiles/rails_8_1.gemfile - 36451910408.11 28 Sep 2026 04:33PM UTC 166
98.79
GitHub Action Run
12 run-4.0-gemfiles/rack_2_2.gemfile - 36451910408.12 28 Sep 2026 04:34PM UTC 165
98.76
GitHub Action Run
13 run-3.4-gemfiles/rack_3_0.gemfile - 36451910408.13 28 Sep 2026 04:33PM UTC 165
98.79
GitHub Action Run
14 run-3.3-gemfiles/rails_7_2.gemfile - 36451910408.14 28 Sep 2026 04:34PM UTC 166
98.81
GitHub Action Run
15 run-3.4-gemfiles/rack_2_2.gemfile - 36451910408.15 28 Sep 2026 04:34PM UTC 165
98.76
GitHub Action Run
16 run-3.4-gemfiles/rack_3_2.gemfile - 36451910408.16 28 Sep 2026 04:33PM UTC 165
98.79
GitHub Action Run
17 run-4.0-gemfiles/grape_entity.gemfile - 36451910408.17 28 Sep 2026 04:34PM UTC 164
48.64
GitHub Action Run
18 run-4.0-gemfiles/rack_3_0.gemfile - 36451910408.18 28 Sep 2026 04:33PM UTC 165
98.79
GitHub Action Run
19 run-3.3-gemfiles/rails_8_0.gemfile - 36451910408.19 28 Sep 2026 04:34PM UTC 166
98.81
GitHub Action Run
20 run-4.0-gemfiles/rack_3_1.gemfile - 36451910408.20 28 Sep 2026 04:34PM UTC 165
98.79
GitHub Action Run
21 run-3.3-gemfiles/rails_8_1.gemfile - 36451910408.21 28 Sep 2026 04:34PM UTC 166
98.81
GitHub Action Run
22 run-3.3-gemfiles/rack_3_0.gemfile - 36451910408.22 28 Sep 2026 04:34PM UTC 165
98.81
GitHub Action Run
23 run-3.4-gemfiles/rails_7_2.gemfile - 36451910408.23 28 Sep 2026 04:34PM UTC 166
98.79
GitHub Action Run
24 run-3.3-Gemfile - 36451910408.24 28 Sep 2026 04:33PM UTC 165
98.81
GitHub Action Run
25 run-4.0-gemfiles/rack_3_2.gemfile - 36451910408.25 28 Sep 2026 04:33PM UTC 165
98.79
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 36451910408.26 28 Sep 2026 04:34PM UTC 166
98.79
GitHub Action Run
27 run-4.0-gemfiles/multi_json.gemfile - 36451910408.27 28 Sep 2026 04:34PM UTC 164
45.87
GitHub Action Run
28 run-3.4-gemfiles/rails_8_0.gemfile - 36451910408.28 28 Sep 2026 04:34PM UTC 166
98.79
GitHub Action Run
29 run-4.0-gemfiles/multi_xml.gemfile - 36451910408.29 28 Sep 2026 04:33PM UTC 164
45.57
GitHub Action Run
30 run-4.0-gemfiles/multi_xml_0_8.gemfile - 36451910408.30 28 Sep 2026 04:33PM UTC 164
45.6
GitHub Action Run
31 run-3.3-gemfiles/rack_2_2.gemfile - 36451910408.31 28 Sep 2026 04:34PM UTC 165
98.78
GitHub Action Run
32 run-3.3-gemfiles/rack_3_2.gemfile - 36451910408.32 28 Sep 2026 04:33PM UTC 165
98.81
GitHub Action Run
Source Files on build 36451910408
  • Tree
  • List 166
  • 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 #36451910408
  • fe152b6e on github
  • Prev Build on master (#36442099516)
  • Next Build on perf/error-middleware-without-copy (#36451958669)
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