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

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

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 08 Nov 2026 07:52PM UTC
Jobs 32
Files 177
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

08 Nov 2026 07:46PM UTC coverage: 100.0%. Remained the same
42517085797

Pull #3022

github

ericproulx
Compile the APIs mounted in a Rails application's routes at boot

An API compiles on the first request each process answers unless the
application calls compile! itself, and the README's advice for Rails, to
call it from application.rb, raises NameError on Rails 7+: the main
autoloader is set up only after the application's initializers have run.

Rails builds its own routes' router at boot when config.eager_load is on.
The Railtie now does the same for the Grape APIs those routes mount,
including through a mounted engine, from config.after_routes_loaded, the
first point at which the routes are drawn. It walks the route set the way
bin/rails routes does, so only the APIs Rails serves are compiled, not the
ones mounted inside another API or never mounted at all. Without eager
loading, as in development, the hook also runs after each reload, and the
APIs stay lazy.

The README drops the application.rb advice and shows how to compile an API
Rails does not see in its routes, from config.after_initialize.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3022: Compile the APIs mounted in a Rails application's routes at boot

1537 of 1537 branches covered (100.0%)

Branch coverage included in aggregate %.

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

4580 of 4580 relevant lines covered (100.0%)

30843.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_1.gemfile - 42517085797.1 08 Nov 2026 07:54PM UTC 176
98.88
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 42517085797.2 08 Nov 2026 07:55PM UTC 175
56.3
GitHub Action Run
3 run-4.0-gemfiles/rails_7_2.gemfile - 42517085797.3 08 Nov 2026 07:54PM UTC 177
98.87
GitHub Action Run
4 run-3.4-gemfiles/rack_3_2.gemfile - 42517085797.4 08 Nov 2026 07:55PM UTC 176
98.87
GitHub Action Run
5 run-4.0-gemfiles/rack_3_1.gemfile - 42517085797.5 08 Nov 2026 07:52PM UTC 176
98.87
GitHub Action Run
6 run-3.4-gemfiles/rails_8_0.gemfile - 42517085797.6 08 Nov 2026 07:54PM UTC 177
98.87
GitHub Action Run
7 run-4.0-gemfiles/multi_xml_0_8.gemfile - 42517085797.7 08 Nov 2026 07:53PM UTC 175
46.27
GitHub Action Run
8 run-3.4-gemfiles/rails_7_2.gemfile - 42517085797.8 08 Nov 2026 07:54PM UTC 177
98.87
GitHub Action Run
9 run-4.0-gemfiles/grape_entity.gemfile - 42517085797.9 08 Nov 2026 07:55PM UTC 175
49.42
GitHub Action Run
10 run-4.0-gemfiles/multi_xml.gemfile - 42517085797.10 08 Nov 2026 07:52PM UTC 175
46.23
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 42517085797.11 08 Nov 2026 07:53PM UTC 176
98.88
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 42517085797.12 08 Nov 2026 07:55PM UTC 177
98.89
GitHub Action Run
13 run-4.0-Gemfile - 42517085797.13 08 Nov 2026 07:55PM UTC 176
98.87
GitHub Action Run
14 run-3.4-gemfiles/rails_8_1.gemfile - 42517085797.14 08 Nov 2026 07:55PM UTC 177
98.87
GitHub Action Run
15 run-4.0-gemfiles/rack_3_0.gemfile - 42517085797.15 08 Nov 2026 07:54PM UTC 176
98.87
GitHub Action Run
16 run-3.3-gemfiles/rack_3_2.gemfile - 42517085797.16 08 Nov 2026 07:54PM UTC 176
98.88
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 42517085797.17 08 Nov 2026 07:54PM UTC 176
98.87
GitHub Action Run
18 run-4.0-gemfiles/hashie.gemfile - 42517085797.18 08 Nov 2026 07:55PM UTC 175
60.11
GitHub Action Run
19 run-3.4-Gemfile - 42517085797.19 08 Nov 2026 07:55PM UTC 176
98.87
GitHub Action Run
20 run-4.0-gemfiles/rails_8_0.gemfile - 42517085797.20 08 Nov 2026 07:53PM UTC 177
98.87
GitHub Action Run
21 run-4.0-gemfiles/rack_2_2.gemfile - 42517085797.21 08 Nov 2026 07:55PM UTC 176
98.84
GitHub Action Run
22 run-3.3-gemfiles/rack_2_2.gemfile - 42517085797.22 08 Nov 2026 07:54PM UTC 176
98.85
GitHub Action Run
23 run-4.0-gemfiles/rack_3_2.gemfile - 42517085797.23 08 Nov 2026 07:53PM UTC 176
98.87
GitHub Action Run
24 run-3.4-gemfiles/rack_3_0.gemfile - 42517085797.24 08 Nov 2026 07:55PM UTC 176
98.87
GitHub Action Run
25 run-4.0-gemfiles/multi_json.gemfile - 42517085797.25 08 Nov 2026 07:55PM UTC 175
46.5
GitHub Action Run
26 run-3.3-gemfiles/rails_7_2.gemfile - 42517085797.26 08 Nov 2026 07:54PM UTC 177
98.89
GitHub Action Run
27 run-3.4-gemfiles/rack_2_2.gemfile - 42517085797.27 08 Nov 2026 07:55PM UTC 176
98.84
GitHub Action Run
28 run-3.3-Gemfile - 42517085797.28 08 Nov 2026 07:52PM UTC 176
98.88
GitHub Action Run
29 run-4.0-gemfiles/rails_8_1.gemfile - 42517085797.29 08 Nov 2026 07:53PM UTC 177
98.87
GitHub Action Run
30 run-3.3-gemfiles/rails_8_0.gemfile - 42517085797.30 08 Nov 2026 07:52PM UTC 177
98.89
GitHub Action Run
31 run-4.0-gemfiles/grape_swagger.gemfile - 42517085797.31 08 Nov 2026 07:54PM UTC 175
53.48
GitHub Action Run
32 run-4.0-gemfiles/multi_json_1_20.gemfile - 42517085797.32 08 Nov 2026 07:53PM UTC 175
46.53
GitHub Action Run
Source Files on build 42517085797
  • Tree
  • List 177
  • 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 #42517085797
  • Pull Request #3022
  • PR Base - master (#42397174974)
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