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

ruby-grape / grape / 40076715824
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/head-around-router
DEFAULT BRANCH: master
Ran 24 Oct 2026 08:06AM UTC
Jobs 32
Files 176
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

24 Oct 2026 08:05AM UTC coverage: 99.95% (-0.001%) from 99.951%
40076715824

Pull #3042

github

ericproulx
Wrap the router in Rack::Head instead of each endpoint's stack

Rack::Head was the first middleware in each endpoint's stack, so it only
saw responses that went through one. A Rack app mounted with `mount` is
called by the router directly and skips `build_stack`, and a middleware
inserted with `insert 0` sat outside Rack::Head: a HEAD request to
either got the full body back. The router's own 404 had to strip its
body itself (#2958) for the same reason.

A single Rack::Head around the router, inside Rack::Lint, now strips
the body of every HEAD response the API gives, and the router's 404
special case goes away. A request that cascades through several routes
goes through one Rack::Head instead of one per route tried.

Since an endpoint's stack no longer contains Rack::Head,
`insert_before`/`insert_after Rack::Head` raise when the API compiles,
and a middleware inserted by index lands one place further in. Both are
covered in UPGRADING.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3042: Wrap the router in Rack::Head instead of each endpoint's stack

1519 of 1521 branches covered (99.87%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 2 files covered. (100.0%)

4537 of 4538 relevant lines covered (99.98%)

30413.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_0.gemfile - 40076715824.1 24 Oct 2026 08:06AM UTC 175
98.83
GitHub Action Run
2 run-4.0-gemfiles/multi_xml_0_8.gemfile - 40076715824.2 24 Oct 2026 08:06AM UTC 174
46.34
GitHub Action Run
3 run-4.0-gemfiles/rails_8_1.gemfile - 40076715824.3 24 Oct 2026 08:07AM UTC 176
98.81
GitHub Action Run
4 run-3.3-gemfiles/rack_3_1.gemfile - 40076715824.4 24 Oct 2026 08:07AM UTC 175
98.83
GitHub Action Run
5 run-3.3-gemfiles/rack_3_2.gemfile - 40076715824.5 24 Oct 2026 08:06AM UTC 175
98.83
GitHub Action Run
6 run-3.3-gemfiles/rack_2_2.gemfile - 40076715824.6 24 Oct 2026 08:06AM UTC 175
98.79
GitHub Action Run
7 run-3.4-Gemfile - 40076715824.7 24 Oct 2026 08:06AM UTC 175
98.81
GitHub Action Run
8 run-4.0-gemfiles/rails_8_0.gemfile - 40076715824.8 24 Oct 2026 08:07AM UTC 176
98.81
GitHub Action Run
9 run-3.4-gemfiles/rack_2_2.gemfile - 40076715824.9 24 Oct 2026 08:07AM UTC 175
98.78
GitHub Action Run
10 run-3.4-gemfiles/rack_3_2.gemfile - 40076715824.10 24 Oct 2026 08:07AM UTC 175
98.81
GitHub Action Run
11 run-4.0-gemfiles/dry_validation.gemfile - 40076715824.11 24 Oct 2026 08:07AM UTC 174
56.41
GitHub Action Run
12 run-4.0-gemfiles/multi_json.gemfile - 40076715824.12 24 Oct 2026 08:07AM UTC 174
46.57
GitHub Action Run
13 run-3.4-gemfiles/rails_8_1.gemfile - 40076715824.13 24 Oct 2026 08:06AM UTC 176
98.81
GitHub Action Run
14 run-3.3-Gemfile - 40076715824.14 24 Oct 2026 08:07AM UTC 175
98.83
GitHub Action Run
15 run-4.0-gemfiles/grape_entity.gemfile - 40076715824.15 24 Oct 2026 08:07AM UTC 174
49.46
GitHub Action Run
16 run-3.3-gemfiles/rails_8_1.gemfile - 40076715824.16 24 Oct 2026 08:07AM UTC 176
98.83
GitHub Action Run
17 run-3.4-gemfiles/rack_3_0.gemfile - 40076715824.17 24 Oct 2026 08:07AM UTC 175
98.81
GitHub Action Run
18 run-4.0-Gemfile - 40076715824.18 24 Oct 2026 08:07AM UTC 175
98.81
GitHub Action Run
19 run-4.0-gemfiles/rack_3_0.gemfile - 40076715824.19 24 Oct 2026 08:06AM UTC 175
98.81
GitHub Action Run
20 run-4.0-gemfiles/rack_3_1.gemfile - 40076715824.20 24 Oct 2026 08:07AM UTC 175
98.81
GitHub Action Run
21 run-3.4-gemfiles/rack_3_1.gemfile - 40076715824.21 24 Oct 2026 08:06AM UTC 175
98.81
GitHub Action Run
22 run-4.0-gemfiles/rack_2_2.gemfile - 40076715824.22 24 Oct 2026 08:07AM UTC 175
98.78
GitHub Action Run
23 run-4.0-gemfiles/hashie.gemfile - 40076715824.23 24 Oct 2026 08:07AM UTC 174
60.25
GitHub Action Run
24 run-4.0-gemfiles/rails_7_2.gemfile - 40076715824.24 24 Oct 2026 08:07AM UTC 176
98.81
GitHub Action Run
25 run-3.4-gemfiles/rails_7_2.gemfile - 40076715824.25 24 Oct 2026 08:07AM UTC 176
98.81
GitHub Action Run
26 run-4.0-gemfiles/grape_swagger.gemfile - 40076715824.26 24 Oct 2026 08:07AM UTC 174
53.64
GitHub Action Run
27 run-3.3-gemfiles/rails_8_0.gemfile - 40076715824.27 24 Oct 2026 08:06AM UTC 176
98.83
GitHub Action Run
28 run-3.3-gemfiles/rails_7_2.gemfile - 40076715824.28 24 Oct 2026 08:07AM UTC 176
98.83
GitHub Action Run
29 run-4.0-gemfiles/multi_xml.gemfile - 40076715824.29 24 Oct 2026 08:07AM UTC 174
46.31
GitHub Action Run
30 run-4.0-gemfiles/multi_json_1_20.gemfile - 40076715824.30 24 Oct 2026 08:07AM UTC 174
46.61
GitHub Action Run
31 run-4.0-gemfiles/rack_3_2.gemfile - 40076715824.31 24 Oct 2026 08:07AM UTC 175
98.81
GitHub Action Run
32 run-3.4-gemfiles/rails_8_0.gemfile - 40076715824.32 24 Oct 2026 08:07AM UTC 176
98.81
GitHub Action Run
Source Files on build 40076715824
  • Tree
  • List 176
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40076715824
  • Pull Request #3042
  • PR Base - master (#40075496335)
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