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

ruby-grape / grape / 30170426685
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/adversarial-sweep-2026-08
DEFAULT BRANCH: master
Ran 25 Jul 2026 06:51PM UTC
Jobs 32
Files 168
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

25 Jul 2026 06:50PM UTC coverage: 96.828% (-0.001%) from 96.829%
30170426685

Pull #2817

github

ericproulx
Remove request-time mutable state from Array/custom coercers

Two coercers created or mutated state at request time on instances that
are shared across requests (and cached in Types::CoercerCache):

- ArrayCoercer memoized @elem_coercer with ||= inside #call, so the
  first request to hit a shared instance wrote a new ivar (and could
  seed the unsynchronized DryTypes cache). Build it eagerly in
  initialize instead; rename the now-unused @subtype accordingly.
  SetCoercer inherits the eager build via super.

- CustomTypeCoercer#collection_symbolizer called map! on whatever the
  user's coerce_with method returned. A frozen return raised FrozenError,
  which CoerceValidator swallowed as a spurious "is invalid" 400; the
  input could also be the user's own object. dup before map! avoids the
  mutation and, unlike map, keeps a Set a Set.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #2817: Remove request-time mutable state from Array and custom-type coercers

1137 of 1230 branches covered (92.44%)

Branch coverage included in aggregate %.

3747 of 3814 relevant lines covered (98.24%)

22746.17 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.75
0.0% lib/grape/validations/types/dry_type_coercer.rb
1
89.29
0.0% lib/grape/validations/types/variant_collection_coercer.rb
1
96.77
0.0% lib/grape/validations/validators/base.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 30170426685.1 25 Jul 2026 06:52PM UTC 168
95.4
GitHub Action Run
2 run-3.4-Gemfile - 30170426685.2 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
3 run-3.4-gemfiles/rack_3_2.gemfile - 30170426685.3 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
4 run-4.0-gemfiles/multi_xml_0_8.gemfile - 30170426685.4 25 Jul 2026 06:51PM UTC 167
47.78
GitHub Action Run
5 run-3.4-gemfiles/rails_8_0.gemfile - 30170426685.5 25 Jul 2026 06:51PM UTC 168
95.4
GitHub Action Run
6 run-3.3-gemfiles/rack_3_0.gemfile - 30170426685.6 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
7 run-4.0-gemfiles/rack_3_0.gemfile - 30170426685.7 25 Jul 2026 06:52PM UTC 167
95.39
GitHub Action Run
8 run-3.4-gemfiles/rack_2_2.gemfile - 30170426685.8 25 Jul 2026 06:51PM UTC 167
95.36
GitHub Action Run
9 run-4.0-gemfiles/dry_validation.gemfile - 30170426685.9 25 Jul 2026 06:51PM UTC 167
58.79
GitHub Action Run
10 run-3.3-Gemfile - 30170426685.10 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
11 run-3.3-gemfiles/rails_8_0.gemfile - 30170426685.11 25 Jul 2026 06:51PM UTC 168
95.4
GitHub Action Run
12 run-3.3-gemfiles/rack_3_1.gemfile - 30170426685.12 25 Jul 2026 06:53PM UTC 167
95.39
GitHub Action Run
13 run-4.0-gemfiles/grape_entity.gemfile - 30170426685.13 25 Jul 2026 06:52PM UTC 167
51.05
GitHub Action Run
14 run-4.0-gemfiles/rails_8_1.gemfile - 30170426685.14 25 Jul 2026 06:52PM UTC 168
95.4
GitHub Action Run
15 run-3.3-gemfiles/rails_7_2.gemfile - 30170426685.15 25 Jul 2026 06:51PM UTC 168
95.4
GitHub Action Run
16 run-4.0-gemfiles/rack_3_1.gemfile - 30170426685.16 25 Jul 2026 06:52PM UTC 167
95.39
GitHub Action Run
17 run-3.4-gemfiles/rails_8_1.gemfile - 30170426685.17 25 Jul 2026 06:51PM UTC 168
95.4
GitHub Action Run
18 run-3.4-gemfiles/rack_3_1.gemfile - 30170426685.18 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 30170426685.19 25 Jul 2026 06:51PM UTC 167
47.74
GitHub Action Run
20 run-4.0-gemfiles/hashie.gemfile - 30170426685.20 25 Jul 2026 06:51PM UTC 167
62.76
GitHub Action Run
21 run-4.0-gemfiles/rack_2_2.gemfile - 30170426685.21 25 Jul 2026 06:51PM UTC 167
95.36
GitHub Action Run
22 run-3.4-gemfiles/rack_3_0.gemfile - 30170426685.22 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
23 run-3.3-gemfiles/rack_2_2.gemfile - 30170426685.23 25 Jul 2026 06:51PM UTC 167
95.35
GitHub Action Run
24 run-4.0-gemfiles/rack_3_2.gemfile - 30170426685.24 25 Jul 2026 06:52PM UTC 167
95.39
GitHub Action Run
25 run-3.3-gemfiles/rack_3_2.gemfile - 30170426685.25 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
26 run-4.0-gemfiles/grape_swagger.gemfile - 30170426685.26 25 Jul 2026 06:51PM UTC 167
55.76
GitHub Action Run
27 run-3.3-gemfiles/rails_8_1.gemfile - 30170426685.27 25 Jul 2026 06:51PM UTC 168
95.4
GitHub Action Run
28 run-4.0-Gemfile - 30170426685.28 25 Jul 2026 06:51PM UTC 167
95.39
GitHub Action Run
29 run-4.0-gemfiles/rails_8_0.gemfile - 30170426685.29 25 Jul 2026 06:51PM UTC 168
95.4
GitHub Action Run
30 run-4.0-gemfiles/multi_json_1_20.gemfile - 30170426685.30 25 Jul 2026 06:52PM UTC 167
48.35
GitHub Action Run
31 run-4.0-gemfiles/multi_json.gemfile - 30170426685.31 25 Jul 2026 06:51PM UTC 167
48.31
GitHub Action Run
32 run-3.4-gemfiles/rails_7_2.gemfile - 30170426685.32 25 Jul 2026 06:52PM UTC 168
95.4
GitHub Action Run
Source Files on build 30170426685
  • Tree
  • List 168
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30170426685
  • Pull Request #2817
  • PR Base - master (#30166451855)
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