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

ruby-grape / grape / 26339299050
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: security/mounted-rack-auth-and-html-escape
DEFAULT BRANCH: master
Ran 23 May 2026 05:41PM UTC
Jobs 38
Files 164
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

23 May 2026 05:40PM UTC coverage: 96.98% (+0.003%) from 96.977%
26339299050

Pull #2740

github

ericproulx
Lazy-allocate `@api_class` and `@point_in_time_copies` on InheritableSetting

`InheritableSetting#initialize` used to eagerly allocate both fields up
front. Neither is touched on most settings layers:

- `@api_class` is only written by external code (e.g. plugins) via
  `setting.api_class[:k] = v`; nothing in `lib/` writes to it.
- `@point_in_time_copies` only fills up on settings that get cloned via
  `point_in_time_copy` — typically the API-class-level setting, not the
  per-endpoint copies that make up the bulk of allocations at boot.

Switch both to memoizing readers (`@x ||= …`), drop the eager init, and
rewrite the `inherit_from` propagation loop to access the ivar directly
with `&.each` so the no-copies path doesn't allocate the Array just to
iterate zero elements.

Measured against master:

  Grape::Util::InheritableSetting.new × 100
    before: 1600 objects, 183.6 kB
    after:  1400 objects, 164.1 kB   (-11%)

Stacks with #2739 (lazy `@new_values`) for compounded boot-time savings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2740: Lazy-allocate @api_class and @point_in_time_copies on InheritableSetting

1090 of 1175 branches covered (92.77%)

Branch coverage included in aggregate %.

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

3534 of 3593 relevant lines covered (98.36%)

31550.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_2.gemfile - 26339299050.1 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
2 run-3.2-gemfiles/rack_3_1.gemfile - 26339299050.2 23 May 2026 05:42PM UTC 163
95.73
GitHub Action Run
3 run-4.0-gemfiles/multi_xml.gemfile - 26339299050.3 23 May 2026 05:42PM UTC 163
36.68
GitHub Action Run
4 run-3.2-gemfiles/rack_2_2.gemfile - 26339299050.4 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
5 run-3.4-gemfiles/rack_3_0.gemfile - 26339299050.5 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
6 run-3.2-gemfiles/rails_7_2.gemfile - 26339299050.6 23 May 2026 05:42PM UTC 164
95.74
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 26339299050.7 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
8 run-3.4-gemfiles/rails_7_2.gemfile - 26339299050.8 23 May 2026 05:43PM UTC 164
95.7
GitHub Action Run
9 run-4.0-gemfiles/rails_8_1.gemfile - 26339299050.9 23 May 2026 05:43PM UTC 164
95.7
GitHub Action Run
10 run-3.4-gemfiles/rails_8_1.gemfile - 26339299050.10 23 May 2026 05:42PM UTC 164
95.7
GitHub Action Run
11 run-4.0-gemfiles/multi_json.gemfile - 26339299050.11 23 May 2026 05:42PM UTC 163
36.68
GitHub Action Run
12 run-3.2-gemfiles/rack_3_2.gemfile - 26339299050.12 23 May 2026 05:42PM UTC 163
95.73
GitHub Action Run
13 run-4.0-gemfiles/hashie.gemfile - 26339299050.13 23 May 2026 05:42PM UTC 163
62.44
GitHub Action Run
14 run-4.0-gemfiles/rack_3_2.gemfile - 26339299050.14 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 26339299050.15 23 May 2026 05:41PM UTC 163
95.65
GitHub Action Run
16 run-3.3-gemfiles/rack_3_1.gemfile - 26339299050.16 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 26339299050.17 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
18 run-3.2-gemfiles/rack_3_0.gemfile - 26339299050.18 23 May 2026 05:42PM UTC 163
95.73
GitHub Action Run
19 run-4.0-gemfiles/dry_validation.gemfile - 26339299050.19 23 May 2026 05:43PM UTC 163
58.24
GitHub Action Run
20 run-4.0-gemfiles/grape_entity.gemfile - 26339299050.20 23 May 2026 05:42PM UTC 163
50.23
GitHub Action Run
21 run-4.0-gemfiles/grape_swagger.gemfile - 26339299050.21 23 May 2026 05:42PM UTC 163
55.19
GitHub Action Run
22 run-4.0-gemfiles/rack_3_1.gemfile - 26339299050.22 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
23 run-4.0-gemfiles/rack_3_0.gemfile - 26339299050.23 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 26339299050.24 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
25 run-3.3-gemfiles/rack_2_2.gemfile - 26339299050.25 23 May 2026 05:42PM UTC 163
95.65
GitHub Action Run
26 run-3.2-Gemfile - 26339299050.26 23 May 2026 05:42PM UTC 163
95.73
GitHub Action Run
27 run-3.4-gemfiles/rack_2_2.gemfile - 26339299050.27 23 May 2026 05:43PM UTC 163
95.65
GitHub Action Run
28 run-4.0-gemfiles/rails_7_2.gemfile - 26339299050.28 23 May 2026 06:40PM UTC 164
95.7
GitHub Action Run
29 run-4.0-gemfiles/rails_8_0.gemfile - 26339299050.29 23 May 2026 06:40PM UTC 164
95.7
GitHub Action Run
30 run-3.4-gemfiles/rails_8_0.gemfile - 26339299050.30 23 May 2026 05:43PM UTC 164
95.7
GitHub Action Run
31 run-3.2-gemfiles/rails_8_1.gemfile - 26339299050.31 23 May 2026 05:42PM UTC 164
95.74
GitHub Action Run
32 run-3.3-gemfiles/rails_8_0.gemfile - 26339299050.32 23 May 2026 05:43PM UTC 164
95.69
GitHub Action Run
33 run-3.4-Gemfile - 26339299050.33 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
34 run-3.3-gemfiles/rails_8_1.gemfile - 26339299050.34 23 May 2026 05:42PM UTC 164
95.69
GitHub Action Run
35 run-3.3-gemfiles/rails_7_2.gemfile - 26339299050.35 23 May 2026 05:43PM UTC 164
95.69
GitHub Action Run
36 run-3.2-gemfiles/rails_8_0.gemfile - 26339299050.36 23 May 2026 05:43PM UTC 164
95.74
GitHub Action Run
37 run-4.0-Gemfile - 26339299050.37 23 May 2026 05:43PM UTC 163
95.69
GitHub Action Run
38 run-3.3-Gemfile - 26339299050.38 23 May 2026 05:42PM UTC 163
95.69
GitHub Action Run
Source Files on build 26339299050
  • Tree
  • List 164
  • 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 #26339299050
  • Pull Request #2740
  • PR Base - master (#26292056269)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc