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

ruby-grape / grape / 35441540097
100%

Build:
DEFAULT BRANCH: master
Ran 19 Sep 2026 11:58AM 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

19 Sep 2026 11:58AM UTC coverage: 99.045% (-0.02%) from 99.062%
35441540097

push

github

web-flow
Lint every response of an API once under lint! (#2960)

`lint!` and Grape.config.lint put Rack::Lint in each endpoint's stack, so
two kinds of response never met it: the 404 the router answers for a path
nothing matches, which no endpoint builds, and a Rack app mounted with
`mount`, which the router calls directly instead of through a stack. That
is how a HEAD request for an unknown path answered with a body (#2958)
while the suite, which lints every API, stayed green.

The per-endpoint Rack::Lint is gone. A linted API instead wraps its router
in a single Rack::Lint, which checks every response the API gives --
endpoints, errors, the router's own 404, mounted Rack apps -- exactly once,
and after Rack::Head, so a HEAD response is checked with its body stripped.
Keeping the endpoint Lints and adding one around the router would nest
two, and nested Rack::Lints cannot survive a middleware that calls `to_ary`
on the body -- the inner one closes it, the outer one then iterates it --
which Rack::ETag does in any Rails app mounting the API.

`lint!` is therefore read from the top of the API that is served, as the
README describes it ("at the API level"). Declared inside a namespace, or
in an API mounted into another one, it no longer does anything; README and
UPGRADING say so.

The suite's own lint then flagged two fixtures: `API.call({})`, an env
Rack::Lint rejects, and a mounted Rack app returning a frozen headers Hash,
which Rack 3 forbids. The first now passes a real env; the second an
unfrozen Hash the spec still checks is not written into.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1430 of 1485 branches covered (96.3%)

Branch coverage included in aggregate %.

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

4273 of 4273 relevant lines covered (100.0%)

28482.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_0.gemfile - 35441540097.1 19 Sep 2026 11:58AM UTC 167
97.88
GitHub Action Run
2 run-4.0-gemfiles/grape_entity.gemfile - 35441540097.2 19 Sep 2026 11:58AM UTC 165
48.95
GitHub Action Run
3 run-4.0-gemfiles/rails_7_2.gemfile - 35441540097.3 19 Sep 2026 11:58AM UTC 167
97.86
GitHub Action Run
4 run-4.0-gemfiles/rails_8_1.gemfile - 35441540097.4 19 Sep 2026 11:58AM UTC 167
97.86
GitHub Action Run
5 run-4.0-gemfiles/grape_swagger.gemfile - 35441540097.5 19 Sep 2026 11:58AM UTC 165
53.34
GitHub Action Run
6 run-3.3-gemfiles/rack_3_0.gemfile - 35441540097.6 19 Sep 2026 11:58AM UTC 166
97.88
GitHub Action Run
7 run-4.0-gemfiles/rack_3_0.gemfile - 35441540097.7 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
8 run-4.0-gemfiles/rails_8_0.gemfile - 35441540097.8 19 Sep 2026 11:58AM UTC 167
97.85
GitHub Action Run
9 run-4.0-gemfiles/multi_xml_0_8.gemfile - 35441540097.9 19 Sep 2026 11:58AM UTC 165
45.76
GitHub Action Run
10 run-3.3-gemfiles/rails_8_1.gemfile - 35441540097.10 19 Sep 2026 11:58AM UTC 167
97.86
GitHub Action Run
11 run-4.0-gemfiles/multi_xml.gemfile - 35441540097.11 19 Sep 2026 11:58AM UTC 165
45.72
GitHub Action Run
12 run-3.3-Gemfile - 35441540097.12 19 Sep 2026 11:58AM UTC 166
97.88
GitHub Action Run
13 run-4.0-gemfiles/rack_2_2.gemfile - 35441540097.13 19 Sep 2026 11:58AM UTC 166
97.81
GitHub Action Run
14 run-4.0-gemfiles/multi_json.gemfile - 35441540097.14 19 Sep 2026 11:58AM UTC 165
46.0
GitHub Action Run
15 run-3.3-gemfiles/rack_3_1.gemfile - 35441540097.15 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
16 run-3.4-gemfiles/rails_7_2.gemfile - 35441540097.16 19 Sep 2026 11:58AM UTC 167
97.85
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 35441540097.17 19 Sep 2026 11:58AM UTC 166
97.84
GitHub Action Run
18 run-4.0-gemfiles/multi_json_1_20.gemfile - 35441540097.18 19 Sep 2026 11:58AM UTC 165
46.04
GitHub Action Run
19 run-4.0-gemfiles/rack_3_1.gemfile - 35441540097.19 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
20 run-3.4-gemfiles/rails_8_1.gemfile - 35441540097.20 19 Sep 2026 11:58AM UTC 167
97.86
GitHub Action Run
21 run-3.4-Gemfile - 35441540097.21 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
22 run-3.4-gemfiles/rack_3_0.gemfile - 35441540097.22 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
23 run-3.3-gemfiles/rails_7_2.gemfile - 35441540097.23 19 Sep 2026 11:58AM UTC 167
97.86
GitHub Action Run
24 run-3.4-gemfiles/rack_2_2.gemfile - 35441540097.24 19 Sep 2026 11:58AM UTC 166
97.83
GitHub Action Run
25 run-3.3-gemfiles/rack_2_2.gemfile - 35441540097.25 19 Sep 2026 11:58AM UTC 166
97.84
GitHub Action Run
26 run-4.0-Gemfile - 35441540097.26 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
27 run-4.0-gemfiles/hashie.gemfile - 35441540097.27 19 Sep 2026 11:58AM UTC 165
59.85
GitHub Action Run
28 run-3.3-gemfiles/rack_3_2.gemfile - 35441540097.28 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
29 run-4.0-gemfiles/dry_validation.gemfile - 35441540097.29 19 Sep 2026 11:58AM UTC 165
56.11
GitHub Action Run
30 run-3.4-gemfiles/rack_3_2.gemfile - 35441540097.30 19 Sep 2026 11:58AM UTC 166
97.86
GitHub Action Run
31 run-4.0-gemfiles/rack_3_2.gemfile - 35441540097.31 19 Sep 2026 11:58AM UTC 166
97.84
GitHub Action Run
32 run-3.4-gemfiles/rails_8_0.gemfile - 35441540097.32 19 Sep 2026 11:58AM UTC 167
97.86
GitHub Action Run
Source Files on build 35441540097
  • Tree
  • List 167
  • 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 #35441540097
  • 62ded655 on github
  • Prev Build on master (#35336214906)
  • Next Build on master (#35454670201)
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