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

ruby-grape / grape / 33914091930
97%
master: 99%

Build:
Build:
LAST BUILD BRANCH: perf/plain-union-fast-path
DEFAULT BRANCH: master
Ran 04 Sep 2026 08:02PM UTC
Jobs 32
Files 169
Run time 4min
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

04 Sep 2026 08:00PM UTC coverage: 96.956% (+0.001%) from 96.955%
33914091930

Pull #2898

github

ericproulx
Stop eager loading grape/testing

`Grape::Testing` has been documented as opt-in since 3.3 -- README and the
UPGRADING note for that release both say it is "intended for test environments
only and is not loaded by default" -- but nothing ever excluded it from the
eager load, so `require 'grape'` installed it in every process, production
included.

The two are simply out of order: `loader.eager_load` arrived with Zeitwerk in
2c79b2f9 (2024), and grape/testing.rb was added later in ba7386a8 without being
added to the exclusion list that already held the railtie. The released 3.3.5
gem excludes only `railtie`, so the module has never actually been opt-in.

Excluding it makes the documented behaviour the real one: `require 'grape'`
leaves `Grape::Endpoint` without `before_each` / `reset_before_each` and without
the `Grape::Endpoint#run` wrapper the module prepends. Zeitwerk still registers
the autoload, so referencing the `Grape::Testing` constant loads it as before,
and `require 'grape/testing'` -- what README and UPGRADING have asked for since
3.3 -- is unaffected. spec/grape/testing_spec.rb already requires it and needed
no change.

UPGRADING carries a note under 4.0.0, because an application that never read
the 3.3 one can still be relying on the accident.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2898: Stop eager loading grape/testing

1244 of 1338 branches covered (92.97%)

Branch coverage included in aggregate %.

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

3947 of 4016 relevant lines covered (98.28%)

26966.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_8_1.gemfile - 33914091930.1 04 Sep 2026 08:02PM UTC 169
95.72
GitHub Action Run
2 run-3.3-gemfiles/rails_7_2.gemfile - 33914091930.2 04 Sep 2026 08:03PM UTC 169
95.72
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 33914091930.3 04 Sep 2026 08:02PM UTC 167
61.78
GitHub Action Run
4 run-4.0-gemfiles/rack_2_2.gemfile - 33914091930.4 04 Sep 2026 08:02PM UTC 168
95.68
GitHub Action Run
5 run-3.4-gemfiles/rails_8_1.gemfile - 33914091930.5 04 Sep 2026 08:03PM UTC 169
95.72
GitHub Action Run
6 run-4.0-gemfiles/rack_3_2.gemfile - 33914091930.6 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
7 run-3.4-gemfiles/rack_3_0.gemfile - 33914091930.7 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
8 run-3.3-gemfiles/rack_3_1.gemfile - 33914091930.8 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
9 run-3.3-gemfiles/rack_2_2.gemfile - 33914091930.9 04 Sep 2026 08:02PM UTC 168
95.68
GitHub Action Run
10 run-4.0-gemfiles/rails_7_2.gemfile - 33914091930.10 04 Sep 2026 08:02PM UTC 169
95.72
GitHub Action Run
11 run-3.3-Gemfile - 33914091930.11 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 33914091930.12 04 Sep 2026 08:02PM UTC 167
55.17
GitHub Action Run
13 run-3.3-gemfiles/rack_3_2.gemfile - 33914091930.13 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
14 run-4.0-Gemfile - 33914091930.14 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
15 run-3.3-gemfiles/rails_8_1.gemfile - 33914091930.15 04 Sep 2026 08:02PM UTC 169
95.72
GitHub Action Run
16 run-3.4-gemfiles/rails_8_0.gemfile - 33914091930.16 04 Sep 2026 08:03PM UTC 169
95.72
GitHub Action Run
17 run-4.0-gemfiles/multi_xml.gemfile - 33914091930.17 04 Sep 2026 08:02PM UTC 167
46.9
GitHub Action Run
18 run-3.4-Gemfile - 33914091930.18 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
19 run-3.4-gemfiles/rack_2_2.gemfile - 33914091930.19 04 Sep 2026 08:02PM UTC 168
95.68
GitHub Action Run
20 run-3.3-gemfiles/rack_3_0.gemfile - 33914091930.20 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
21 run-4.0-gemfiles/dry_validation.gemfile - 33914091930.21 04 Sep 2026 08:03PM UTC 167
57.76
GitHub Action Run
22 run-3.4-gemfiles/rack_3_2.gemfile - 33914091930.22 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
23 run-3.4-gemfiles/rails_7_2.gemfile - 33914091930.23 04 Sep 2026 08:03PM UTC 169
95.72
GitHub Action Run
24 run-4.0-gemfiles/grape_entity.gemfile - 33914091930.24 04 Sep 2026 08:02PM UTC 167
50.24
GitHub Action Run
25 run-4.0-gemfiles/rails_8_0.gemfile - 33914091930.25 04 Sep 2026 08:03PM UTC 169
95.72
GitHub Action Run
26 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33914091930.26 04 Sep 2026 08:02PM UTC 167
46.94
GitHub Action Run
27 run-4.0-gemfiles/multi_json.gemfile - 33914091930.27 04 Sep 2026 08:02PM UTC 167
47.41
GitHub Action Run
28 run-3.3-gemfiles/rails_8_0.gemfile - 33914091930.28 04 Sep 2026 08:02PM UTC 169
95.72
GitHub Action Run
29 run-3.4-gemfiles/rack_3_1.gemfile - 33914091930.29 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
30 run-4.0-gemfiles/multi_json_1_20.gemfile - 33914091930.30 04 Sep 2026 08:02PM UTC 167
47.44
GitHub Action Run
31 run-4.0-gemfiles/rack_3_1.gemfile - 33914091930.31 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
32 run-4.0-gemfiles/rack_3_0.gemfile - 33914091930.32 04 Sep 2026 08:02PM UTC 168
95.72
GitHub Action Run
Source Files on build 33914091930
  • Tree
  • List 169
  • 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 #33914091930
  • Pull Request #2898
  • PR Base - master (#33774030780)
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