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

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

Build:
Build:
LAST BUILD BRANCH: benchmark/route-throughput-scenarios
DEFAULT BRANCH: master
Ran 12 Sep 2026 11:05AM 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

12 Sep 2026 11:05AM UTC coverage: 99.164% (-0.04%) from 99.203%
34690136319

Pull #2936

github

ericproulx
Speed up header versioning, content negotiation, params validation and error responses

Thirteen request-path changes, each measured on its own and together:

Versioning and content negotiation
- Header versioner: answer the Accept headers most requests send (every
  declared media type, */*, none) from a table built once per list of
  media types and shared through Grape::Util::Cache, instead of running
  Rack::Utils.best_q_match and MediaType.parse per request. MediaType is
  now immutable, so the api.* env strings it writes are frozen
  (UPGRADING).
- Versioners read cascade/parameter/strict/vendor off instance variables
  instead of two Forwardable hops and two Data readers.
- Formatter: the same kind of shared table for Accept-negotiated formats
  when no format is pinned.

Params validation
- A required, dependency-free Hash scope (the root scope included) is
  validated without the attributes iterator, and skips should_validate?,
  which always answers true for it.
- So are the elements of an Array scope that is the only one iterating
  elements on such a chain, required or optional.
- The attributes iterator settles its per-scope state once per pass.
- qualifying_params returns early for scopes other than `given`.
- declared skips the renamed-params lookup when nothing is renamed.
- DryTypeCoercer uses dry-types' non-raising block form, so a rejected
  value no longer builds a re-raised backtrace.

Error responses
- The default rescue handler no longer reads the exception's backtrace
  unless one is asked for.
- Formatter lets a parser's Grape errors through without re-raising them.
- rack_response hands its fresh headers to Rack::Response as they are,
  Method rescue handlers are called directly, and ensure_utf8 returns a
  valid UTF-8 message as it is.
- ValidationErrors#full_messages is translated once instead of on every
  call.

Adds specs for behaviour the changes brought to light and nothing
pinned, each found by a mutation that passed ... (continued)
Pull Request #2936: Speed up header versioning, content negotiation, params validation and error responses

1347 of 1393 branches covered (96.7%)

Branch coverage included in aggregate %.

104 of 104 new or added lines in 12 files covered. (100.0%)

4108 of 4108 relevant lines covered (100.0%)

26779.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-Gemfile - 34690136319.1 12 Sep 2026 11:06AM UTC 168
97.91
GitHub Action Run
2 run-4.0-gemfiles/rails_8_0.gemfile - 34690136319.2 12 Sep 2026 11:06AM UTC 169
97.89
GitHub Action Run
3 run-3.4-gemfiles/rails_8_0.gemfile - 34690136319.3 12 Sep 2026 11:05AM UTC 169
97.87
GitHub Action Run
4 run-4.0-gemfiles/multi_json.gemfile - 34690136319.4 12 Sep 2026 11:06AM UTC 167
46.75
GitHub Action Run
5 run-3.4-gemfiles/rack_2_2.gemfile - 34690136319.5 12 Sep 2026 11:05AM UTC 168
97.85
GitHub Action Run
6 run-3.3-gemfiles/rack_2_2.gemfile - 34690136319.6 12 Sep 2026 11:06AM UTC 168
97.87
GitHub Action Run
7 run-3.4-gemfiles/rack_3_0.gemfile - 34690136319.7 12 Sep 2026 11:05AM UTC 168
97.89
GitHub Action Run
8 run-3.4-gemfiles/rails_7_2.gemfile - 34690136319.8 12 Sep 2026 11:05AM UTC 169
97.89
GitHub Action Run
9 run-3.3-gemfiles/rails_8_0.gemfile - 34690136319.9 12 Sep 2026 11:06AM UTC 169
97.89
GitHub Action Run
10 run-3.3-gemfiles/rack_3_2.gemfile - 34690136319.10 12 Sep 2026 11:06AM UTC 168
97.89
GitHub Action Run
11 run-4.0-gemfiles/rack_3_0.gemfile - 34690136319.11 12 Sep 2026 11:06AM UTC 168
97.89
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 34690136319.12 12 Sep 2026 11:05AM UTC 169
97.91
GitHub Action Run
13 run-4.0-gemfiles/rack_3_1.gemfile - 34690136319.13 12 Sep 2026 11:06AM UTC 168
97.89
GitHub Action Run
14 run-3.3-gemfiles/rack_3_1.gemfile - 34690136319.14 12 Sep 2026 11:06AM UTC 168
97.89
GitHub Action Run
15 run-4.0-gemfiles/rack_3_2.gemfile - 34690136319.15 12 Sep 2026 11:06AM UTC 168
97.87
GitHub Action Run
16 run-3.3-gemfiles/rails_7_2.gemfile - 34690136319.16 12 Sep 2026 11:06AM UTC 169
97.89
GitHub Action Run
17 run-4.0-gemfiles/multi_json_1_20.gemfile - 34690136319.17 12 Sep 2026 11:05AM UTC 167
46.79
GitHub Action Run
18 run-4.0-gemfiles/dry_validation.gemfile - 34690136319.18 12 Sep 2026 11:06AM UTC 167
56.92
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 34690136319.19 12 Sep 2026 07:04PM UTC 167
46.48
GitHub Action Run
20 run-4.0-gemfiles/rack_2_2.gemfile - 34690136319.20 12 Sep 2026 11:06AM UTC 168
97.83
GitHub Action Run
21 run-4.0-gemfiles/grape_entity.gemfile - 34690136319.21 12 Sep 2026 11:05AM UTC 167
49.73
GitHub Action Run
22 run-3.4-gemfiles/rack_3_1.gemfile - 34690136319.22 12 Sep 2026 11:06AM UTC 168
97.87
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 34690136319.23 12 Sep 2026 11:05AM UTC 169
97.89
GitHub Action Run
24 run-4.0-gemfiles/grape_swagger.gemfile - 34690136319.24 12 Sep 2026 11:05AM UTC 167
54.0
GitHub Action Run
25 run-4.0-Gemfile - 34690136319.25 12 Sep 2026 11:05AM UTC 168
97.89
GitHub Action Run
26 run-3.3-gemfiles/rack_3_0.gemfile - 34690136319.26 12 Sep 2026 11:06AM UTC 168
97.89
GitHub Action Run
27 run-4.0-gemfiles/hashie.gemfile - 34690136319.27 12 Sep 2026 11:05AM UTC 167
61.07
GitHub Action Run
28 run-4.0-gemfiles/multi_xml_0_8.gemfile - 34690136319.28 12 Sep 2026 11:05AM UTC 167
46.52
GitHub Action Run
29 run-3.4-Gemfile - 34690136319.29 12 Sep 2026 11:05AM UTC 168
97.89
GitHub Action Run
30 run-4.0-gemfiles/rails_8_1.gemfile - 34690136319.30 12 Sep 2026 11:05AM UTC 169
97.89
GitHub Action Run
31 run-3.4-gemfiles/rack_3_2.gemfile - 34690136319.31 12 Sep 2026 11:05AM UTC 168
97.89
GitHub Action Run
32 run-4.0-gemfiles/rails_7_2.gemfile - 34690136319.32 12 Sep 2026 11:06AM UTC 169
97.89
GitHub Action Run
Source Files on build 34690136319
  • Tree
  • List 169
  • Changed 16
  • Source Changed 12
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34690136319
  • Pull Request #2936
  • PR Base - master (#34684568247)
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