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

ruby-grape / grape / 34777197939
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: perf/route-buckets
DEFAULT BRANCH: master
Ran 13 Sep 2026 07:16PM UTC
Jobs 32
Files 169
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

13 Sep 2026 07:15PM UTC coverage: 99.123% (-0.01%) from 99.137%
34777197939

Pull #2942

github

ericproulx
Route raw non-ASCII paths when an API declares a non-ASCII route

Rack hands PATH_INFO over binary, and matching a binary string that holds
non-ASCII bytes against a UTF-8 regexp raises Encoding::CompatibilityError.
A route whose path holds a non-ASCII literal (`/café/:id`) compiles to such
a regexp, and every request is matched against a union that holds it. So
once an API declared one, every request whose path carried raw non-ASCII
bytes raised, whichever route it was meant for and whether or not the bytes
were valid UTF-8. The percent-encoded spelling of the same path routed.

Router#compile! now records whether any compiled union has a fixed encoding.
Only then, and only for a path that is not ASCII, the router routes a copy
of the path tagged UTF-8 and publishes that copy as the normalized path. A
path whose bytes are not UTF-8 cannot be matched against those routes at
all, so it is answered as a path no route matched. PATH_INFO itself stays
binary, and an API without a non-ASCII route routes exactly as before.
Router#recognize_path gets the same treatment.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2942: Route raw non-ASCII paths when an API declares a non-ASCII route

1380 of 1429 branches covered (96.57%)

Branch coverage included in aggregate %.

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

4156 of 4156 relevant lines covered (100.0%)

27053.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_2.gemfile - 34777197939.1 13 Sep 2026 07:17PM UTC 168
97.8
GitHub Action Run
2 run-4.0-gemfiles/multi_json_1_20.gemfile - 34777197939.2 13 Sep 2026 07:16PM UTC 167
46.7
GitHub Action Run
3 run-3.3-gemfiles/rack_2_2.gemfile - 34777197939.3 13 Sep 2026 07:16PM UTC 168
97.78
GitHub Action Run
4 run-4.0-gemfiles/multi_xml_0_8.gemfile - 34777197939.4 13 Sep 2026 07:16PM UTC 167
46.43
GitHub Action Run
5 run-4.0-gemfiles/rails_7_2.gemfile - 34777197939.5 13 Sep 2026 07:16PM UTC 169
97.78
GitHub Action Run
6 run-4.0-gemfiles/dry_validation.gemfile - 34777197939.6 13 Sep 2026 07:17PM UTC 167
57.01
GitHub Action Run
7 run-3.3-gemfiles/rails_8_1.gemfile - 34777197939.7 13 Sep 2026 07:17PM UTC 169
97.8
GitHub Action Run
8 run-3.3-gemfiles/rack_3_0.gemfile - 34777197939.8 13 Sep 2026 07:17PM UTC 168
97.81
GitHub Action Run
9 run-3.3-gemfiles/rack_3_1.gemfile - 34777197939.9 13 Sep 2026 07:17PM UTC 168
97.81
GitHub Action Run
10 run-3.4-gemfiles/rack_2_2.gemfile - 34777197939.10 13 Sep 2026 07:17PM UTC 168
97.74
GitHub Action Run
11 run-4.0-gemfiles/multi_xml.gemfile - 34777197939.11 13 Sep 2026 07:16PM UTC 167
46.39
GitHub Action Run
12 run-3.3-gemfiles/rack_3_2.gemfile - 34777197939.12 13 Sep 2026 07:17PM UTC 168
97.79
GitHub Action Run
13 run-3.4-gemfiles/rack_3_0.gemfile - 34777197939.13 13 Sep 2026 07:16PM UTC 168
97.8
GitHub Action Run
14 run-3.3-gemfiles/rails_8_0.gemfile - 34777197939.14 13 Sep 2026 07:17PM UTC 169
97.81
GitHub Action Run
15 run-3.3-gemfiles/rails_7_2.gemfile - 34777197939.15 13 Sep 2026 07:17PM UTC 169
97.8
GitHub Action Run
16 run-3.4-gemfiles/rails_8_1.gemfile - 34777197939.16 13 Sep 2026 07:17PM UTC 169
97.8
GitHub Action Run
17 run-4.0-gemfiles/multi_json.gemfile - 34777197939.17 13 Sep 2026 07:17PM UTC 167
46.66
GitHub Action Run
18 run-4.0-gemfiles/rack_2_2.gemfile - 34777197939.18 13 Sep 2026 07:17PM UTC 168
97.74
GitHub Action Run
19 run-4.0-gemfiles/rack_3_1.gemfile - 34777197939.19 13 Sep 2026 07:17PM UTC 168
97.78
GitHub Action Run
20 run-3.4-gemfiles/rails_7_2.gemfile - 34777197939.20 13 Sep 2026 07:17PM UTC 169
97.8
GitHub Action Run
21 run-4.0-gemfiles/rails_8_1.gemfile - 34777197939.21 13 Sep 2026 07:17PM UTC 169
97.8
GitHub Action Run
22 run-3.4-gemfiles/rails_8_0.gemfile - 34777197939.22 13 Sep 2026 07:17PM UTC 169
97.8
GitHub Action Run
23 run-3.4-Gemfile - 34777197939.23 13 Sep 2026 07:17PM UTC 168
97.78
GitHub Action Run
24 run-4.0-gemfiles/rack_3_0.gemfile - 34777197939.24 13 Sep 2026 07:17PM UTC 168
97.78
GitHub Action Run
25 run-4.0-gemfiles/rails_8_0.gemfile - 34777197939.25 13 Sep 2026 07:17PM UTC 169
97.78
GitHub Action Run
26 run-3.4-gemfiles/rack_3_2.gemfile - 34777197939.26 13 Sep 2026 07:17PM UTC 168
97.8
GitHub Action Run
27 run-4.0-gemfiles/grape_swagger.gemfile - 34777197939.27 13 Sep 2026 07:17PM UTC 167
54.08
GitHub Action Run
28 run-4.0-gemfiles/hashie.gemfile - 34777197939.28 13 Sep 2026 07:16PM UTC 167
60.85
GitHub Action Run
29 run-4.0-Gemfile - 34777197939.29 13 Sep 2026 07:16PM UTC 168
97.8
GitHub Action Run
30 run-3.4-gemfiles/rack_3_1.gemfile - 34777197939.30 13 Sep 2026 07:17PM UTC 168
97.78
GitHub Action Run
31 run-4.0-gemfiles/grape_entity.gemfile - 34777197939.31 13 Sep 2026 07:18PM UTC 167
49.68
GitHub Action Run
32 run-3.3-Gemfile - 34777197939.32 13 Sep 2026 07:16PM UTC 168
97.79
GitHub Action Run
Source Files on build 34777197939
  • Tree
  • List 169
  • 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 #34777197939
  • Pull Request #2942
  • PR Base - master (#34776966334)
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