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

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

Build:
Build:
LAST BUILD BRANCH: fix/recompile-settings-mutation-race
DEFAULT BRANCH: master
Ran 23 May 2026 08:29AM UTC
Jobs 38
Files 164
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

23 May 2026 08:28AM UTC coverage: 96.977%. Remained the same
26328124769

Pull #2736

github

ericproulx
Lazy-allocate `validation_errors` in Endpoint#run_validators

The happy path (no validator raises) used to allocate an empty
`validation_errors = []` Array on every request, then check
`validation_errors.any?` at the end. Mirror the lazy `||= []` shape
already used in `Validators::Base#validate!`:

- Start with `validation_errors = nil`.
- Inside the rescues, do `(validation_errors ||= []) << e` and
  `(validation_errors ||= []).concat(e.errors)`.
- Use `if validation_errors` as the raise guard — non-nil iff at least
  one validator raised, which is the same predicate as
  `.any?` for the prior empty-or-populated array.

Zero behaviour change; one fewer allocation per request on the
no-validation-error path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2736: Lazy-allocate validation_errors in Endpoint#run_validators

1088 of 1173 branches covered (92.75%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 2 files covered. (100.0%)

3532 of 3591 relevant lines covered (98.36%)

31650.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_7_2.gemfile - 26328124769.1 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
2 run-3.3-gemfiles/rack_3_2.gemfile - 26328124769.2 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
3 run-3.4-gemfiles/rails_8_0.gemfile - 26328124769.3 23 May 2026 08:30AM UTC 164
95.69
GitHub Action Run
4 run-4.0-gemfiles/rack_2_2.gemfile - 26328124769.4 23 May 2026 08:29AM UTC 163
95.65
GitHub Action Run
5 run-3.4-gemfiles/rack_3_0.gemfile - 26328124769.5 23 May 2026 08:30AM UTC 163
95.69
GitHub Action Run
6 run-4.0-gemfiles/multi_json.gemfile - 26328124769.6 23 May 2026 08:29AM UTC 163
36.64
GitHub Action Run
7 run-4.0-gemfiles/rack_3_2.gemfile - 26328124769.7 23 May 2026 08:30AM UTC 163
95.69
GitHub Action Run
8 run-3.3-gemfiles/rack_2_2.gemfile - 26328124769.8 23 May 2026 08:29AM UTC 163
95.64
GitHub Action Run
9 run-3.2-gemfiles/rack_3_1.gemfile - 26328124769.9 23 May 2026 08:29AM UTC 163
95.73
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 26328124769.10 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
11 run-3.2-gemfiles/rack_3_0.gemfile - 26328124769.11 23 May 2026 08:29AM UTC 163
95.73
GitHub Action Run
12 run-3.2-gemfiles/rails_8_1.gemfile - 26328124769.12 23 May 2026 08:29AM UTC 164
95.73
GitHub Action Run
13 run-3.2-gemfiles/rails_8_0.gemfile - 26328124769.13 23 May 2026 08:29AM UTC 164
95.73
GitHub Action Run
14 run-3.2-gemfiles/rails_7_2.gemfile - 26328124769.14 23 May 2026 08:29AM UTC 164
95.73
GitHub Action Run
15 run-3.4-gemfiles/rack_2_2.gemfile - 26328124769.15 23 May 2026 08:29AM UTC 163
95.65
GitHub Action Run
16 run-3.4-Gemfile - 26328124769.16 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
17 run-4.0-gemfiles/rails_7_2.gemfile - 26328124769.17 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
18 run-3.2-gemfiles/rack_3_2.gemfile - 26328124769.18 23 May 2026 08:29AM UTC 163
95.73
GitHub Action Run
19 run-4.0-gemfiles/dry_validation.gemfile - 26328124769.19 23 May 2026 08:29AM UTC 163
58.22
GitHub Action Run
20 run-3.3-gemfiles/rails_8_0.gemfile - 26328124769.20 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
21 run-3.2-Gemfile - 26328124769.21 23 May 2026 08:29AM UTC 163
95.73
GitHub Action Run
22 run-3.4-gemfiles/rack_3_2.gemfile - 26328124769.22 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
23 run-4.0-gemfiles/grape_entity.gemfile - 26328124769.23 23 May 2026 08:29AM UTC 163
50.21
GitHub Action Run
24 run-4.0-gemfiles/rails_8_0.gemfile - 26328124769.24 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
25 run-4.0-Gemfile - 26328124769.25 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
26 run-4.0-gemfiles/rack_3_1.gemfile - 26328124769.26 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
27 run-3.3-gemfiles/rails_8_1.gemfile - 26328124769.27 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
28 run-4.0-gemfiles/multi_xml.gemfile - 26328124769.28 23 May 2026 08:29AM UTC 163
36.64
GitHub Action Run
29 run-3.3-gemfiles/rack_3_1.gemfile - 26328124769.29 23 May 2026 08:30AM UTC 163
95.69
GitHub Action Run
30 run-3.4-gemfiles/rails_8_1.gemfile - 26328124769.30 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
31 run-4.0-gemfiles/grape_swagger.gemfile - 26328124769.31 23 May 2026 08:29AM UTC 163
55.17
GitHub Action Run
32 run-3.3-gemfiles/rails_7_2.gemfile - 26328124769.32 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
33 run-3.3-Gemfile - 26328124769.33 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
34 run-3.2-gemfiles/rack_2_2.gemfile - 26328124769.34 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
35 run-4.0-gemfiles/rack_3_0.gemfile - 26328124769.35 23 May 2026 08:30AM UTC 163
95.69
GitHub Action Run
36 run-4.0-gemfiles/rails_8_1.gemfile - 26328124769.36 23 May 2026 08:29AM UTC 164
95.69
GitHub Action Run
37 run-3.3-gemfiles/rack_3_0.gemfile - 26328124769.37 23 May 2026 08:29AM UTC 163
95.69
GitHub Action Run
38 run-4.0-gemfiles/hashie.gemfile - 26328124769.38 23 May 2026 08:29AM UTC 163
62.43
GitHub Action Run
Source Files on build 26328124769
  • Tree
  • List 164
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26328124769
  • Pull Request #2736
  • PR Base - master (#26292056269)
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