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

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

Build:
Build:
LAST BUILD BRANCH: fix/adversarial-sweep-2026-08
DEFAULT BRANCH: master
Ran 26 Jul 2026 08:00PM UTC
Jobs 32
Files 168
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

26 Jul 2026 08:00PM UTC coverage: 96.921% (+0.005%) from 96.916%
30218047118

push

github

ericproulx
Let a cascading route hand over to every remaining route

Router#transaction sent a cascading match straight to the greedy
neighbour — the last route registered for the path — and returned its
answer, so any route registered between the first match and that last
one was unreachable. With three mounted API versions plus a catch-all
`route :any, '*path'`, v1 and v3 were served while v2 answered 406; the
shortcut only ever looked correct with exactly two versions, where "the
last route" happens to be the sibling.

Try the method's remaining routes (#rotation) as soon as a match
cascades, before the ANY routes and the greedy neighbour, and keep the
priority order otherwise intact. A consequence, and what cascade: true
means: with a catch-all present, an unmatched version now falls through
to it rather than surfacing the versioner's 406. cascade: false still
answers 406 immediately and never consults the catch-all.

Also close the body of every superseded cascading response — Rack
requires it, and rotation previously leaked them (Rack::Lint flagged
this as soon as a third sibling made the path reachable).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

1175 of 1266 branches covered (92.81%)

Branch coverage included in aggregate %.

3799 of 3866 relevant lines covered (98.27%)

25871.08 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.06
0.18% lib/grape/router.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.4-Gemfile - 30218047118.1 26 Jul 2026 08:00PM UTC 167
95.53
GitHub Action Run
2 run-3.3-Gemfile - 30218047118.2 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
3 run-4.0-gemfiles/rails_7_2.gemfile - 30218047118.3 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
4 run-4.0-gemfiles/multi_xml_0_8.gemfile - 30218047118.4 26 Jul 2026 08:01PM UTC 167
47.5
GitHub Action Run
5 run-4.0-gemfiles/multi_xml.gemfile - 30218047118.5 26 Jul 2026 08:01PM UTC 167
47.46
GitHub Action Run
6 run-3.3-gemfiles/rails_8_1.gemfile - 30218047118.6 26 Jul 2026 08:00PM UTC 168
95.54
GitHub Action Run
7 run-4.0-gemfiles/rack_3_0.gemfile - 30218047118.7 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
8 run-3.3-gemfiles/rack_3_1.gemfile - 30218047118.8 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
9 run-4.0-gemfiles/multi_json.gemfile - 30218047118.9 26 Jul 2026 08:01PM UTC 167
48.07
GitHub Action Run
10 run-3.4-gemfiles/rack_3_0.gemfile - 30218047118.10 26 Jul 2026 08:00PM UTC 167
95.53
GitHub Action Run
11 run-3.4-gemfiles/rack_3_2.gemfile - 30218047118.11 26 Jul 2026 08:00PM UTC 167
95.53
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 30218047118.12 26 Jul 2026 08:01PM UTC 167
55.72
GitHub Action Run
13 run-3.3-gemfiles/rails_7_2.gemfile - 30218047118.13 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
14 run-3.4-gemfiles/rack_3_1.gemfile - 30218047118.14 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
15 run-3.3-gemfiles/rack_3_0.gemfile - 30218047118.15 26 Jul 2026 08:00PM UTC 167
95.53
GitHub Action Run
16 run-3.4-gemfiles/rack_2_2.gemfile - 30218047118.16 26 Jul 2026 08:01PM UTC 167
95.49
GitHub Action Run
17 run-3.3-gemfiles/rack_3_2.gemfile - 30218047118.17 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
18 run-3.4-gemfiles/rails_7_2.gemfile - 30218047118.18 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
19 run-3.4-gemfiles/rails_8_1.gemfile - 30218047118.19 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
20 run-4.0-Gemfile - 30218047118.20 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
21 run-3.3-gemfiles/rails_8_0.gemfile - 30218047118.21 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
22 run-4.0-gemfiles/hashie.gemfile - 30218047118.22 26 Jul 2026 08:01PM UTC 167
62.37
GitHub Action Run
23 run-4.0-gemfiles/rack_2_2.gemfile - 30218047118.23 26 Jul 2026 08:01PM UTC 167
95.49
GitHub Action Run
24 run-4.0-gemfiles/multi_json_1_20.gemfile - 30218047118.24 26 Jul 2026 08:01PM UTC 167
48.11
GitHub Action Run
25 run-3.3-gemfiles/rack_2_2.gemfile - 30218047118.25 26 Jul 2026 08:01PM UTC 167
95.49
GitHub Action Run
26 run-4.0-gemfiles/rails_8_0.gemfile - 30218047118.26 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
27 run-4.0-gemfiles/rack_3_1.gemfile - 30218047118.27 26 Jul 2026 08:00PM UTC 167
95.53
GitHub Action Run
28 run-4.0-gemfiles/dry_validation.gemfile - 30218047118.28 26 Jul 2026 08:01PM UTC 167
58.41
GitHub Action Run
29 run-4.0-gemfiles/rails_8_1.gemfile - 30218047118.29 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
30 run-4.0-gemfiles/rack_3_2.gemfile - 30218047118.30 26 Jul 2026 08:01PM UTC 167
95.53
GitHub Action Run
31 run-3.4-gemfiles/rails_8_0.gemfile - 30218047118.31 26 Jul 2026 08:01PM UTC 168
95.54
GitHub Action Run
32 run-4.0-gemfiles/grape_entity.gemfile - 30218047118.32 26 Jul 2026 08:01PM UTC 167
50.78
GitHub Action Run
Source Files on build 30218047118
  • Tree
  • List 168
  • 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 #30218047118
  • 72782533 on github
  • Prev Build on master (#30216088388)
  • Next Build on fix-router-cascade-sibling-routes (#30218074287)
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