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

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

Build:
Build:
LAST BUILD BRANCH: fix/adversarial-sweep-2026-08
DEFAULT BRANCH: master
Ran 01 Aug 2026 09:56AM UTC
Jobs 32
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

01 Aug 2026 09:56AM UTC coverage: 96.976%. Remained the same
30694720879

Pull #2841

github

ericproulx
Give point-in-time copies their own stackable and rescue-handler stores

InheritableSetting#point_in_time_copy copied a scope's stackable store and
its rescue-handler maps shallowly, so the nested Arrays and Hashes stayed
shared with the source. A registration made after an endpoint was defined
therefore still reached that endpoint -- but only when the key already held a
registration at the time the copy was taken, since otherwise the writer
allocated a fresh store on the source alone.

That made the outcome depend on something the API never expressed:

    use Middleware1
    get('/x') { }
    use Middleware2      # applied to GET /x

    get('/x') { }
    use Middleware2      # did NOT apply to GET /x

and the same for rescue_from:

    rescue_from ArgumentError { }
    get('/x') { raise Boom }
    rescue_from Boom { }     # rescued GET /x

    get('/x') { raise Boom }
    rescue_from Boom { }     # did NOT rescue GET /x

Two APIs stating the same thing, behaving differently. Not a deliberate
"late registration" feature -- helpers defined after an endpoint already did
not leak, because they resolve down a different path.

Dup the nested stores as well as the Hash holding them. A copy is a point in
time: what the source registers afterwards must not reach it. Inheritance is
untouched -- it resolves by walking #parent, so a scope still sees values an
enclosing scope gains later, which is what the existing "decouples namespace
stackable values" spec actually exercised (its value lives on the parent, so
nothing was ever shared and it passed either way).

Boot cost is negligible: 300 endpoints under scopes carrying middleware,
helpers and filters allocate 1800 more objects (+0.4%) with no measurable
change in time, all at definition time.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2841: Give point-in-time copies their own stackable arrays

1196 of 1285 branches covered (93.07%)

Branch coverage included in aggregate %.

3807 of 3874 relevant lines covered (98.27%)

26802.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_entity.gemfile - 30694720879.1 01 Aug 2026 09:56AM UTC 166
50.51
GitHub Action Run
2 run-4.0-gemfiles/rack_3_0.gemfile - 30694720879.2 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 30694720879.3 01 Aug 2026 09:56AM UTC 166
62.04
GitHub Action Run
4 run-3.3-gemfiles/rails_7_2.gemfile - 30694720879.4 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
5 run-4.0-gemfiles/multi_json_1_20.gemfile - 30694720879.5 01 Aug 2026 09:56AM UTC 166
47.86
GitHub Action Run
6 run-4.0-gemfiles/grape_swagger.gemfile - 30694720879.6 01 Aug 2026 09:57AM UTC 166
55.42
GitHub Action Run
7 run-3.4-gemfiles/rails_8_1.gemfile - 30694720879.7 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
8 run-3.3-gemfiles/rails_8_1.gemfile - 30694720879.8 01 Aug 2026 09:57AM UTC 167
95.6
GitHub Action Run
9 run-3.4-gemfiles/rack_3_2.gemfile - 30694720879.9 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
10 run-3.4-gemfiles/rack_3_0.gemfile - 30694720879.10 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
11 run-4.0-gemfiles/rack_3_1.gemfile - 30694720879.11 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
12 run-4.0-Gemfile - 30694720879.12 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
13 run-3.3-gemfiles/rack_3_0.gemfile - 30694720879.13 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
14 run-3.3-gemfiles/rack_2_2.gemfile - 30694720879.14 01 Aug 2026 09:56AM UTC 166
95.56
GitHub Action Run
15 run-3.4-gemfiles/rack_2_2.gemfile - 30694720879.15 01 Aug 2026 09:57AM UTC 166
95.56
GitHub Action Run
16 run-4.0-gemfiles/rails_8_0.gemfile - 30694720879.16 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
17 run-4.0-gemfiles/rails_8_1.gemfile - 30694720879.17 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
18 run-4.0-gemfiles/rack_3_2.gemfile - 30694720879.18 01 Aug 2026 09:57AM UTC 166
95.59
GitHub Action Run
19 run-4.0-gemfiles/rack_2_2.gemfile - 30694720879.19 01 Aug 2026 09:56AM UTC 166
95.56
GitHub Action Run
20 run-3.4-gemfiles/rack_3_1.gemfile - 30694720879.20 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
21 run-4.0-gemfiles/rails_7_2.gemfile - 30694720879.21 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
22 run-4.0-gemfiles/multi_xml.gemfile - 30694720879.22 01 Aug 2026 09:56AM UTC 166
47.22
GitHub Action Run
23 run-4.0-gemfiles/multi_json.gemfile - 30694720879.23 01 Aug 2026 09:56AM UTC 166
47.82
GitHub Action Run
24 run-4.0-gemfiles/dry_validation.gemfile - 30694720879.24 01 Aug 2026 09:56AM UTC 166
58.12
GitHub Action Run
25 run-3.3-gemfiles/rails_8_0.gemfile - 30694720879.25 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
26 run-3.4-Gemfile - 30694720879.26 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
27 run-3.4-gemfiles/rails_7_2.gemfile - 30694720879.27 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
28 run-3.4-gemfiles/rails_8_0.gemfile - 30694720879.28 01 Aug 2026 09:56AM UTC 167
95.6
GitHub Action Run
29 run-3.3-gemfiles/rack_3_2.gemfile - 30694720879.29 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
30 run-3.3-gemfiles/rack_3_1.gemfile - 30694720879.30 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
31 run-3.3-Gemfile - 30694720879.31 01 Aug 2026 09:56AM UTC 166
95.59
GitHub Action Run
32 run-4.0-gemfiles/multi_xml_0_8.gemfile - 30694720879.32 01 Aug 2026 09:57AM UTC 166
47.25
GitHub Action Run
Source Files on build 30694720879
  • Tree
  • List 167
  • 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 #30694720879
  • Pull Request #2841
  • PR Base - master (#30542026971)
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