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

ruby-grape / grape / 42519925321
100%

Build:
DEFAULT BRANCH: master
Ran 08 Nov 2026 08:24PM UTC
Jobs 23
Files 176
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 08:23PM UTC coverage: 100.0%. Remained the same
42519925321

push

github

web-flow
Add API.eager_load! to compile an API and load its I18n translations (#3019)

I18n reads its locale files on the first lookup, so in an app that
precompiles its API the first error a process answered still paid for the
load: 3.65 ms against 0.87 ms once the translations were in memory.
API.eager_load! compiles the API and loads the translations, so an app
calling it at boot pays for both there.

It is an explicit call rather than a setting read whenever an API is
compiled, because compile! also runs lazily on the first request: tied to
it, the load would land on that request, even a successful one. compile!
and request handling are unchanged. Rails already loads I18n at boot when
config.eager_load is on; calling an API's eager_load! from Rails is left
to a separate change.

A Simple backend is loaded with translations(do_init: true), the load its
first lookup would run, rather than eager_load!: that one also flags the
backend so every later I18n.reload! loads at once, and raises on a
LazyLoadable backend set to lazy_load. Loading only Grape's own locale
file would not help, as the first lookup still reads the whole load path,
Grape's file included. Any other backend is eager-loaded when it answers
eager_load!, and left to its first lookup otherwise.

Like compile!, eager_load! is kept off the setup steps an API records, so
mounting the API does not run it again.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

1529 of 1529 branches covered (100.0%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 2 files covered. (100.0%)

4568 of 4568 relevant lines covered (100.0%)

19349.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_2.gemfile - 42519925321.1 08 Nov 2026 08:24PM UTC 175
98.95
GitHub Action Run
2 run-4.0-gemfiles/multi_xml_0_8.gemfile - 42519925321.2 08 Nov 2026 08:24PM UTC 174
46.18
GitHub Action Run
3 run-3.4-gemfiles/rails_8_0.gemfile - 42519925321.3 08 Nov 2026 08:24PM UTC 176
98.95
GitHub Action Run
4 run-3.3-Gemfile - 42519925321.4 08 Nov 2026 08:24PM UTC 175
98.97
GitHub Action Run
5 run-3.4-gemfiles/rack_3_2.gemfile - 42519925321.5 08 Nov 2026 08:24PM UTC 175
98.95
GitHub Action Run
6 run-4.0-Gemfile - 42519925321.6 08 Nov 2026 08:24PM UTC 175
98.95
GitHub Action Run
7 run-4.0-gemfiles/hashie.gemfile - 42519925321.7 08 Nov 2026 08:24PM UTC 174
60.03
GitHub Action Run
8 run-4.0-gemfiles/rails_8_1.gemfile - 42519925321.8 08 Nov 2026 08:24PM UTC 176
98.95
GitHub Action Run
9 run-4.0-gemfiles/multi_json.gemfile - 42519925321.9 08 Nov 2026 08:24PM UTC 174
46.41
GitHub Action Run
10 run-4.0-gemfiles/rails_8_0.gemfile - 42519925321.10 08 Nov 2026 08:24PM UTC 176
98.95
GitHub Action Run
11 run-4.0-gemfiles/multi_json_1_20.gemfile - 42519925321.11 08 Nov 2026 08:24PM UTC 174
46.45
GitHub Action Run
12 run-3.3-gemfiles/rack_3_1.gemfile - 42519925321.12 08 Nov 2026 08:24PM UTC 175
98.97
GitHub Action Run
13 run-3.4-gemfiles/rails_8_1.gemfile - 42519925321.13 08 Nov 2026 08:24PM UTC 176
98.95
GitHub Action Run
14 run-4.0-gemfiles/grape_swagger.gemfile - 42519925321.14 08 Nov 2026 08:24PM UTC 174
53.4
GitHub Action Run
15 run-3.3-gemfiles/rails_8_1.gemfile - 42519925321.15 08 Nov 2026 08:24PM UTC 176
98.97
GitHub Action Run
16 run-4.0-gemfiles/dry_validation.gemfile - 42519925321.16 08 Nov 2026 08:24PM UTC 174
56.22
GitHub Action Run
17 run-3.3-gemfiles/rails_8_0.gemfile - 42519925321.17 08 Nov 2026 08:24PM UTC 176
98.97
GitHub Action Run
18 run-4.0-gemfiles/grape_entity.gemfile - 42519925321.18 08 Nov 2026 08:24PM UTC 174
49.33
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 42519925321.19 08 Nov 2026 08:24PM UTC 174
46.15
GitHub Action Run
20 run-3.4-Gemfile - 42519925321.20 08 Nov 2026 08:24PM UTC 175
98.95
GitHub Action Run
21 run-3.4-gemfiles/rack_3_1.gemfile - 42519925321.21 08 Nov 2026 08:24PM UTC 175
98.95
GitHub Action Run
22 run-3.3-gemfiles/rack_3_2.gemfile - 42519925321.22 08 Nov 2026 08:24PM UTC 175
98.97
GitHub Action Run
23 run-4.0-gemfiles/rack_3_1.gemfile - 42519925321.23 08 Nov 2026 08:24PM UTC 175
98.95
GitHub Action Run
Source Files on build 42519925321
  • Tree
  • List 176
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42519925321
  • 56a868ba on github
  • Prev Build on master (#42519225313)
  • Next Build on master (#42520147678)
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