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

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

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 17 Oct 2026 07:28PM UTC
Jobs 32
Files 169
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 Oct 2026 07:25PM UTC coverage: 99.95%. Remained the same
39062593008

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

1509 of 1511 branches covered (99.87%)

Branch coverage included in aggregate %.

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

4535 of 4536 relevant lines covered (99.98%)

29554.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_swagger.gemfile - 39062593008.1 17 Oct 2026 07:30PM UTC 167
53.73
GitHub Action Run
2 run-3.3-gemfiles/rails_8_0.gemfile - 39062593008.2 17 Oct 2026 07:30PM UTC 169
98.83
GitHub Action Run
3 run-4.0-gemfiles/multi_xml_0_8.gemfile - 39062593008.3 17 Oct 2026 07:31PM UTC 167
46.32
GitHub Action Run
4 run-3.4-gemfiles/rails_8_1.gemfile - 39062593008.4 17 Oct 2026 07:28PM UTC 169
98.81
GitHub Action Run
5 run-4.0-gemfiles/multi_json_1_20.gemfile - 39062593008.5 17 Oct 2026 07:30PM UTC 167
46.62
GitHub Action Run
6 run-4.0-gemfiles/rack_3_1.gemfile - 39062593008.6 17 Oct 2026 07:30PM UTC 168
98.8
GitHub Action Run
7 run-3.3-gemfiles/rack_3_0.gemfile - 39062593008.7 17 Oct 2026 07:28PM UTC 168
98.82
GitHub Action Run
8 run-4.0-gemfiles/rack_3_2.gemfile - 39062593008.8 17 Oct 2026 07:31PM UTC 168
98.8
GitHub Action Run
9 run-4.0-gemfiles/rack_3_0.gemfile - 39062593008.9 17 Oct 2026 07:31PM UTC 168
98.8
GitHub Action Run
10 run-4.0-gemfiles/rack_2_2.gemfile - 39062593008.10 17 Oct 2026 07:31PM UTC 168
98.77
GitHub Action Run
11 run-3.3-gemfiles/rails_8_1.gemfile - 39062593008.11 17 Oct 2026 07:30PM UTC 169
98.83
GitHub Action Run
12 run-3.4-gemfiles/rack_3_2.gemfile - 39062593008.12 17 Oct 2026 07:30PM UTC 168
98.8
GitHub Action Run
13 run-4.0-gemfiles/grape_entity.gemfile - 39062593008.13 17 Oct 2026 07:30PM UTC 167
49.47
GitHub Action Run
14 run-4.0-gemfiles/dry_validation.gemfile - 39062593008.14 17 Oct 2026 07:29PM UTC 167
56.46
GitHub Action Run
15 run-4.0-gemfiles/multi_xml.gemfile - 39062593008.15 17 Oct 2026 07:29PM UTC 167
46.29
GitHub Action Run
16 run-4.0-gemfiles/multi_json.gemfile - 39062593008.16 17 Oct 2026 07:31PM UTC 167
46.59
GitHub Action Run
17 run-3.3-gemfiles/rack_3_1.gemfile - 39062593008.17 17 Oct 2026 07:29PM UTC 168
98.82
GitHub Action Run
18 run-3.4-gemfiles/rack_2_2.gemfile - 39062593008.18 17 Oct 2026 07:31PM UTC 168
98.77
GitHub Action Run
19 run-4.0-gemfiles/rails_7_2.gemfile - 39062593008.19 17 Oct 2026 07:31PM UTC 169
98.81
GitHub Action Run
20 run-3.3-gemfiles/rack_3_2.gemfile - 39062593008.20 17 Oct 2026 07:29PM UTC 168
98.82
GitHub Action Run
21 run-3.4-gemfiles/rack_3_1.gemfile - 39062593008.21 17 Oct 2026 07:28PM UTC 168
98.8
GitHub Action Run
22 run-4.0-Gemfile - 39062593008.22 17 Oct 2026 07:29PM UTC 168
98.8
GitHub Action Run
23 run-3.3-Gemfile - 39062593008.23 17 Oct 2026 07:31PM UTC 168
98.82
GitHub Action Run
24 run-3.4-Gemfile - 39062593008.24 17 Oct 2026 07:30PM UTC 168
98.8
GitHub Action Run
25 run-4.0-gemfiles/rails_8_1.gemfile - 39062593008.25 17 Oct 2026 07:28PM UTC 169
98.81
GitHub Action Run
26 run-4.0-gemfiles/rails_8_0.gemfile - 39062593008.26 17 Oct 2026 07:28PM UTC 169
98.81
GitHub Action Run
27 run-3.4-gemfiles/rails_8_0.gemfile - 39062593008.27 17 Oct 2026 07:30PM UTC 169
98.81
GitHub Action Run
28 run-3.3-gemfiles/rack_2_2.gemfile - 39062593008.28 17 Oct 2026 07:28PM UTC 168
98.79
GitHub Action Run
29 run-4.0-gemfiles/hashie.gemfile - 39062593008.29 17 Oct 2026 07:31PM UTC 167
60.36
GitHub Action Run
30 run-3.4-gemfiles/rack_3_0.gemfile - 39062593008.30 17 Oct 2026 07:29PM UTC 168
98.8
GitHub Action Run
31 run-3.3-gemfiles/rails_7_2.gemfile - 39062593008.31 17 Oct 2026 07:28PM UTC 169
98.83
GitHub Action Run
32 run-3.4-gemfiles/rails_7_2.gemfile - 39062593008.32 17 Oct 2026 07:29PM UTC 169
98.81
GitHub Action Run
Source Files on build 39062593008
  • 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 #39062593008
  • Pull Request #3022
  • PR Base - master (#39062253675)
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