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

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

Build:
Build:
LAST BUILD BRANCH: fix/recompile-settings-mutation-race
DEFAULT BRANCH: master
Ran 10 Jul 2026 12:51PM UTC
Jobs 12
Files 167
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

10 Jul 2026 12:50PM UTC coverage: 95.998% (-0.7%) from 96.661%
29093919068

Pull #2791

github

ericproulx
Build helper routes from a settings copy, not shared mutation

add_head_not_allowed_methods_and_options_methods used
without_root_prefix_and_versioning to delete the root-prefix/versioning
keys from the shared class-level namespace_inheritable and restore them in
an ensure. Compilation runs when a fresh API instance is built, which can
happen at runtime (mount, helpers, or route definitions call change!) while
another instance is still serving. A request handled during that window
could observe the temporarily-missing keys — e.g. Instance#cascade? reads
namespace_inheritable[:version_options] and would fall back to true.

Read the settings the helper routes need from a local copy
(namespace_inheritable.to_hash minus the versioning keys) and pass it into
collect_route_config_per_pattern instead. Nothing in that path reads the
stripped keys, so behavior is unchanged, and the shared settings object is
no longer mutated during compilation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pull Request #2791: Build helper routes from a settings copy, not shared mutation

1116 of 1220 branches covered (91.48%)

Branch coverage included in aggregate %.

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

23 existing lines in 5 files now uncovered.

3562 of 3653 relevant lines covered (97.51%)

8688.04 hits per line

Coverage Regressions

Lines Coverage ∆ File
12
38.46
-61.54% lib/grape/validations/validators/contract_scope_validator.rb
7
26.67
-73.33% lib/grape/validations/contract_scope.rb
2
63.64
-36.36% lib/grape/xml.rb
1
80.0
-20.0% lib/grape/params_builder/hashie_mash.rb
1
88.24
-5.51% lib/grape/validations/oneof_collector.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json_1_20.gemfile - 29093919068.1 10 Jul 2026 12:51PM UTC 166
47.57
GitHub Action Run
2 run-4.0-gemfiles/rails_8_1.gemfile - 29093919068.2 10 Jul 2026 12:51PM UTC 167
95.2
GitHub Action Run
3 run-3.4-gemfiles/rack_2_2.gemfile - 29093919068.3 10 Jul 2026 12:51PM UTC 166
95.15
GitHub Action Run
4 run-3.4-gemfiles/rails_7_2.gemfile - 29093919068.4 10 Jul 2026 12:51PM UTC 167
95.2
GitHub Action Run
5 run-3.4-gemfiles/rails_8_1.gemfile - 29093919068.5 10 Jul 2026 12:51PM UTC 167
95.2
GitHub Action Run
6 run-3.4-Gemfile - 29093919068.6 10 Jul 2026 12:51PM UTC 166
95.19
GitHub Action Run
7 run-4.0-gemfiles/grape_entity.gemfile - 29093919068.7 10 Jul 2026 12:51PM UTC 166
50.34
GitHub Action Run
8 run-4.0-gemfiles/multi_json.gemfile - 29093919068.8 10 Jul 2026 12:51PM UTC 166
47.53
GitHub Action Run
9 run-4.0-gemfiles/rack_2_2.gemfile - 29093919068.9 10 Jul 2026 12:51PM UTC 166
95.15
GitHub Action Run
10 run-3.4-gemfiles/rack_3_2.gemfile - 29093919068.10 10 Jul 2026 12:51PM UTC 166
95.19
GitHub Action Run
11 run-3.4-gemfiles/rack_3_0.gemfile - 29093919068.11 10 Jul 2026 12:51PM UTC 166
95.19
GitHub Action Run
12 run-3.4-gemfiles/rails_8_0.gemfile - 29093919068.12 10 Jul 2026 12:51PM UTC 167
95.2
GitHub Action Run
Source Files on build 29093919068
  • Tree
  • List 167
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29093919068
  • Pull Request #2791
  • PR Base - master (#28782563800)
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