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

ruby-grape / grape / 30485820748
97%

Build:
DEFAULT BRANCH: master
Ran 29 Jul 2026 07:45PM 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

29 Jul 2026 07:45PM UTC coverage: 96.969%. Remained the same
30485820748

push

github

web-flow
Document the definition-time rejection of uncoercible collection types (#2837)

#2817 made ArrayCoercer build its element coercer eagerly in the
constructor rather than memoizing it on first use, so that coercers --
shared across requests -- create no state at request time. A side effect
went unrecorded: an Array/Set whose element type Grape cannot coerce is
now rejected while the params block is evaluated, so an application that
boots today can fail to boot on 4.0 with

    ArgumentError: type Foo should support coercion via `[]`

Previously the element coercer was built on the first request that
supplied the parameter, so a declaration never exercised by a request --
a documentation-only type, which is what this breaks in practice -- never
raised at all; one that was exercised got the same ArgumentError swallowed
by the coercion validator into a generic 400 "is invalid".

The tightening is right: the non-collection form (type: Foo) has always
raised at definition time, and the collection form's leniency was an
accident of the lazy build rather than a supported behavior. But it is a
load-time break, so it needs an UPGRADING entry, which this adds -- with
the three fixes that actually work (a one-argument parse, coerce_with, or
dropping type: in favour of documentation:), and a warning that defining
self.[] only silences the load-time error while leaving the parameter
failing per request.

Also pin the behavior: nothing asserted it anywhere, so a future refactor
could revert it silently. The three "raises" examples fail against the
pre-#2817 lazy build and pass against the eager one.

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

1193 of 1282 branches covered (93.06%)

Branch coverage included in aggregate %.

3798 of 3865 relevant lines covered (98.27%)

26800.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_2.gemfile - 30485820748.1 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
2 run-3.4-gemfiles/rails_7_2.gemfile - 30485820748.2 29 Jul 2026 07:46PM UTC 167
95.59
GitHub Action Run
3 run-4.0-gemfiles/dry_validation.gemfile - 30485820748.3 29 Jul 2026 07:45PM UTC 166
58.18
GitHub Action Run
4 run-4.0-gemfiles/rails_8_0.gemfile - 30485820748.4 29 Jul 2026 07:45PM UTC 167
95.59
GitHub Action Run
5 run-4.0-Gemfile - 30485820748.5 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
6 run-3.3-gemfiles/rails_8_1.gemfile - 30485820748.6 29 Jul 2026 07:45PM UTC 167
95.59
GitHub Action Run
7 run-4.0-gemfiles/rack_2_2.gemfile - 30485820748.7 29 Jul 2026 07:45PM UTC 166
95.55
GitHub Action Run
8 run-3.3-gemfiles/rails_7_2.gemfile - 30485820748.8 29 Jul 2026 07:46PM UTC 167
95.59
GitHub Action Run
9 run-4.0-gemfiles/multi_json_1_20.gemfile - 30485820748.9 29 Jul 2026 07:45PM UTC 166
47.89
GitHub Action Run
10 run-4.0-gemfiles/multi_xml.gemfile - 30485820748.10 29 Jul 2026 07:46PM UTC 166
47.25
GitHub Action Run
11 run-4.0-gemfiles/rails_7_2.gemfile - 30485820748.11 29 Jul 2026 07:45PM UTC 167
95.59
GitHub Action Run
12 run-4.0-gemfiles/hashie.gemfile - 30485820748.12 29 Jul 2026 07:46PM UTC 166
62.11
GitHub Action Run
13 run-3.3-gemfiles/rack_3_0.gemfile - 30485820748.13 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
14 run-3.4-gemfiles/rails_8_0.gemfile - 30485820748.14 29 Jul 2026 07:45PM UTC 167
95.59
GitHub Action Run
15 run-4.0-gemfiles/multi_xml_0_8.gemfile - 30485820748.15 29 Jul 2026 07:46PM UTC 166
47.29
GitHub Action Run
16 run-3.3-gemfiles/rack_3_1.gemfile - 30485820748.16 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
17 run-4.0-gemfiles/grape_swagger.gemfile - 30485820748.17 29 Jul 2026 07:46PM UTC 166
55.48
GitHub Action Run
18 run-4.0-gemfiles/rails_8_1.gemfile - 30485820748.18 29 Jul 2026 07:46PM UTC 167
95.59
GitHub Action Run
19 run-4.0-gemfiles/rack_3_2.gemfile - 30485820748.19 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
20 run-3.4-gemfiles/rack_2_2.gemfile - 30485820748.20 29 Jul 2026 07:45PM UTC 166
95.55
GitHub Action Run
21 run-3.3-gemfiles/rack_3_2.gemfile - 30485820748.21 29 Jul 2026 07:46PM UTC 166
95.58
GitHub Action Run
22 run-3.4-gemfiles/rack_3_0.gemfile - 30485820748.22 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
23 run-3.3-gemfiles/rack_2_2.gemfile - 30485820748.23 29 Jul 2026 07:46PM UTC 166
95.55
GitHub Action Run
24 run-3.3-gemfiles/rails_8_0.gemfile - 30485820748.24 29 Jul 2026 07:46PM UTC 167
95.59
GitHub Action Run
25 run-4.0-gemfiles/rack_3_1.gemfile - 30485820748.25 29 Jul 2026 07:46PM UTC 166
95.58
GitHub Action Run
26 run-3.4-gemfiles/rails_8_1.gemfile - 30485820748.26 29 Jul 2026 07:46PM UTC 167
95.59
GitHub Action Run
27 run-4.0-gemfiles/multi_json.gemfile - 30485820748.27 29 Jul 2026 07:45PM UTC 166
47.85
GitHub Action Run
28 run-3.4-gemfiles/rack_3_1.gemfile - 30485820748.28 29 Jul 2026 07:46PM UTC 166
95.58
GitHub Action Run
29 run-3.3-Gemfile - 30485820748.29 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
30 run-4.0-gemfiles/grape_entity.gemfile - 30485820748.30 29 Jul 2026 07:45PM UTC 166
50.55
GitHub Action Run
31 run-4.0-gemfiles/rack_3_0.gemfile - 30485820748.31 29 Jul 2026 07:45PM UTC 166
95.58
GitHub Action Run
32 run-3.4-Gemfile - 30485820748.32 29 Jul 2026 07:46PM UTC 166
95.58
GitHub Action Run
Source Files on build 30485820748
  • Tree
  • List 167
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30485820748
  • 55e2b1f4 on github
  • Prev Build on master (#30485610217)
  • Next Build on master (#30486032579)
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