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

dblock / grape / 27287147098
97%

Build:
DEFAULT BRANCH: master
Ran 10 Jun 2026 03:31PM UTC
Jobs 30
Files 166
Run time 2min
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

04 Jun 2026 04:09PM UTC coverage: 96.839% (-0.04%) from 96.883%
27287147098

push

github

web-flow
Build the cookie jar only on use and drop its deferral Proc (#2757)

Two related steps that make the response-cookie path lazy at the request
boundary:

- `build_response_cookies` runs on every request and went through
  `cookies` -> `request.cookies`, materializing the `Grape::Cookies` jar
  even when the handler never touched a cookie. Gate it on a new
  `Grape::Request#cookies?` predicate (true only once the jar exists),
  so a cookie-free request allocates no jar at all.

- With the jar now built only when a cookie is actually read or written,
  its `-> { rack_cookies }` deferral Proc no longer earns its keep: any
  access immediately forces the parse, and a write (`[]=`) always did.
  Parse `rack_cookies` eagerly in the constructor and replace the
  `is_a?(Proc)` lazy reader with a plain `attr_reader`, dropping the
  closure allocation and the per-access branch.

The `ActiveSupport::HashWithIndifferentAccess` wrapping is unchanged --
it backs Grape's string/symbol-indifferent cookie access.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

1114 of 1205 branches covered (92.45%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 3 files covered. (100.0%)

31 existing lines in 18 files now uncovered.

3543 of 3604 relevant lines covered (98.31%)

23211.17 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
93.8
0.73% lib/grape/middleware/error.rb
6
94.49
1.06% lib/grape/validations/params_scope.rb
2
97.38
0.1% lib/grape/endpoint.rb
2
96.72
-1.74% lib/grape/router.rb
2
50.0
4.55% lib/grape/serve_stream/sendfile_response.rb
1
92.54
-0.32% lib/grape/dsl/helpers.rb
1
93.0
-2.83% lib/grape/dsl/request_response.rb
1
96.3
-0.26% lib/grape/error_formatter/base.rb
1
95.45
-0.38% lib/grape/exceptions/validation_errors.rb
1
91.3
3.8% lib/grape/exceptions/validation.rb
1
77.42
-1.99% lib/grape/formatter/serializable_hash.rb
1
93.65
-0.72% lib/grape/middleware/base.rb
1
97.71
0.3% lib/grape/middleware/formatter.rb
1
93.94
0.09% lib/grape/middleware/stack.rb
1
90.0
2.5% lib/grape/util/lazy/value_enumerable.rb
1
95.65
-1.65% lib/grape/validations/attributes_iterator.rb
1
96.77
0.86% lib/grape/validations/validators/base.rb
1
92.0
-8.0% lib/grape/validations/validators/default_validator.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_0.gemfile - 27287147098.1 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
2 run-3.3-gemfiles/rack_2_2.gemfile - 27287147098.2 10 Jun 2026 03:31PM UTC 165
95.61
GitHub Action Run
3 run-3.3-gemfiles/rack_3_0.gemfile - 27287147098.3 10 Jun 2026 03:32PM UTC 165
95.65
GitHub Action Run
4 run-3.3-Gemfile - 27287147098.4 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
5 run-3.4-Gemfile - 27287147098.5 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
6 run-3.3-gemfiles/rails_8_1.gemfile - 27287147098.6 10 Jun 2026 03:31PM UTC 166
95.65
GitHub Action Run
7 run-3.4-gemfiles/rails_8_1.gemfile - 27287147098.7 10 Jun 2026 03:32PM UTC 166
95.65
GitHub Action Run
8 run-3.3-gemfiles/rack_3_1.gemfile - 27287147098.8 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
9 run-4.0-gemfiles/hashie.gemfile - 27287147098.9 10 Jun 2026 03:31PM UTC 165
62.52
GitHub Action Run
10 run-3.4-gemfiles/rack_2_2.gemfile - 27287147098.10 10 Jun 2026 03:32PM UTC 165
95.61
GitHub Action Run
11 run-4.0-gemfiles/multi_xml.gemfile - 27287147098.11 10 Jun 2026 03:31PM UTC 165
37.14
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 27287147098.12 10 Jun 2026 03:31PM UTC 165
55.32
GitHub Action Run
13 run-4.0-gemfiles/rack_3_2.gemfile - 27287147098.13 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
14 run-4.0-gemfiles/rails_8_1.gemfile - 27287147098.14 10 Jun 2026 03:31PM UTC 166
95.65
GitHub Action Run
15 run-3.3-gemfiles/rails_7_2.gemfile - 27287147098.15 10 Jun 2026 03:31PM UTC 166
95.65
GitHub Action Run
16 run-4.0-Gemfile - 27287147098.16 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
17 run-3.4-gemfiles/rails_7_2.gemfile - 27287147098.17 10 Jun 2026 03:32PM UTC 166
95.65
GitHub Action Run
18 run-3.4-gemfiles/rails_8_0.gemfile - 27287147098.18 10 Jun 2026 03:32PM UTC 166
95.65
GitHub Action Run
19 run-4.0-gemfiles/grape_entity.gemfile - 27287147098.19 10 Jun 2026 03:31PM UTC 165
50.32
GitHub Action Run
20 run-4.0-gemfiles/dry_validation.gemfile - 27287147098.20 10 Jun 2026 03:31PM UTC 165
58.38
GitHub Action Run
21 run-3.3-gemfiles/rails_8_0.gemfile - 27287147098.21 10 Jun 2026 03:31PM UTC 166
95.65
GitHub Action Run
22 run-3.4-gemfiles/rack_3_2.gemfile - 27287147098.22 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
23 run-4.0-gemfiles/rack_3_1.gemfile - 27287147098.23 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
24 run-4.0-gemfiles/rails_8_0.gemfile - 27287147098.24 10 Jun 2026 03:31PM UTC 166
95.65
GitHub Action Run
25 run-4.0-gemfiles/multi_json.gemfile - 27287147098.25 10 Jun 2026 03:31PM UTC 165
37.14
GitHub Action Run
26 run-3.4-gemfiles/rack_3_1.gemfile - 27287147098.26 10 Jun 2026 03:32PM UTC 165
95.65
GitHub Action Run
27 run-4.0-gemfiles/rack_2_2.gemfile - 27287147098.27 10 Jun 2026 03:31PM UTC 165
95.61
GitHub Action Run
28 run-3.4-gemfiles/rack_3_0.gemfile - 27287147098.28 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
29 run-3.3-gemfiles/rack_3_2.gemfile - 27287147098.29 10 Jun 2026 03:31PM UTC 165
95.65
GitHub Action Run
30 run-4.0-gemfiles/rails_7_2.gemfile - 27287147098.30 10 Jun 2026 03:31PM UTC 166
95.65
GitHub Action Run
Source Files on build 27287147098
  • Tree
  • List 166
  • Changed 130
  • Source Changed 94
  • Coverage Changed 127
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27287147098
  • d79a12b4 on github
  • Prev Build on master (#20604092433)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc