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

ruby-grape / grape / 22399578588 / 14
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: revisit_validators
DEFAULT BRANCH: master
Ran 27 Feb 2026 11:07PM UTC
Files 153
Run time 7s
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

25 Feb 2026 01:45PM UTC coverage: 95.722% (-0.02%) from 95.74%
22399578588.14

Pull #2660

github

ericproulx
Fix thread safety: move mutable ParamsScope state into per-request ParamScopeTracker

ParamsScope instances are shared across requests (definition-time objects).
The mutable `@index` and `@params_meeting_dependency` ivars were being
written during request processing, creating a race condition under concurrent
requests.

Introduces `ParamScopeTracker` which stores all per-request mutable state
(array indices + qualifying params) in a `Fiber[FIBER_KEY]` entry, isolating
each request's state from others. `Endpoint#run_validators` sets up the
tracker via `ParamScopeTracker.track {}`. `AttributesIterator#store_indices`
writes to it; `ParamsScope#full_name` and `#qualifying_params` read from it.

Uses `Fiber[]` (not `Thread.current[]`) so fiber-based servers (e.g. Falcon)
correctly isolate per-request state within each fiber.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #2660: Fix thread safety: move mutable ParamsScope state into per-request ParamScopeTracker

1055 of 1162 branches covered (90.79%)

Branch coverage included in aggregate %.

3286 of 3373 relevant lines covered (97.42%)

1398.16 hits per line

Source Files on job run-3.4-gemfiles/rack_3_0.gemfile - 22399578588.14
  • Tree
  • List 153
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22399578588
  • be7dede1 on github
  • Prev Job for on fix_param_scope_thread_safety (#22229989337.25)
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