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

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

Build:
Build:
LAST BUILD BRANCH: refactor/inline-mustermann-grape
DEFAULT BRANCH: master
Ran 31 May 2026 05:25PM UTC
Jobs 30
Files 166
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

31 May 2026 05:25PM UTC coverage: 96.865% (+0.004%) from 96.861%
26719391341

Pull #2751

github

ericproulx
Skip absent optional steps when composing structured error messages

`Grape::Exceptions::Base#compose_message` looped over every entry in
`MESSAGE_STEPS` (problem, summary, resolution) and translated each one
individually. For an optional step a message does not define — e.g.
`summary` on `invalid_message_body` — `Grape::Util::Translation#translate`
falls back to returning the scoped key path as a string. That string is
non-blank, so it passed the `detail.present?` guard and leaked verbatim:

    Summary:
      grape.errors.messages.invalid_message_body.summary

Gate each step on whether the already-resolved message hash defines it.
The resolved hash reflects the :en fallback, so locale fallback for
present steps is preserved, and the existing key-path behaviour for a
fully-unresolvable top-level message is untouched.

Fixes #2748.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2751: Skip absent optional steps when composing structured error messages

1105 of 1195 branches covered (92.47%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

3530 of 3590 relevant lines covered (98.33%)

23267.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.15
0.7% lib/grape/exceptions/validation_errors.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json.gemfile - 26719391341.1 31 May 2026 05:26PM UTC 165
37.2
GitHub Action Run
2 run-3.4-gemfiles/rack_3_0.gemfile - 26719391341.2 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
3 run-4.0-Gemfile - 26719391341.3 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
4 run-4.0-gemfiles/grape_swagger.gemfile - 26719391341.4 31 May 2026 05:25PM UTC 165
55.41
GitHub Action Run
5 run-3.4-gemfiles/rails_8_0.gemfile - 26719391341.5 31 May 2026 05:26PM UTC 166
95.67
GitHub Action Run
6 run-3.4-gemfiles/rails_8_1.gemfile - 26719391341.6 31 May 2026 05:26PM UTC 166
95.67
GitHub Action Run
7 run-3.3-gemfiles/rack_3_1.gemfile - 26719391341.7 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
8 run-3.4-gemfiles/rack_2_2.gemfile - 26719391341.8 31 May 2026 05:25PM UTC 165
95.63
GitHub Action Run
9 run-3.3-gemfiles/rack_2_2.gemfile - 26719391341.9 31 May 2026 05:25PM UTC 165
95.63
GitHub Action Run
10 run-4.0-gemfiles/rack_3_0.gemfile - 26719391341.10 31 May 2026 05:26PM UTC 165
95.67
GitHub Action Run
11 run-3.4-Gemfile - 26719391341.11 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
12 run-4.0-gemfiles/multi_xml.gemfile - 26719391341.12 31 May 2026 05:25PM UTC 165
37.2
GitHub Action Run
13 run-3.3-gemfiles/rack_3_2.gemfile - 26719391341.13 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
14 run-4.0-gemfiles/rails_7_2.gemfile - 26719391341.14 31 May 2026 05:26PM UTC 166
95.67
GitHub Action Run
15 run-4.0-gemfiles/rails_8_1.gemfile - 26719391341.15 31 May 2026 05:26PM UTC 166
95.67
GitHub Action Run
16 run-3.4-gemfiles/rack_3_1.gemfile - 26719391341.16 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
17 run-3.3-Gemfile - 26719391341.17 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
18 run-3.3-gemfiles/rails_7_2.gemfile - 26719391341.18 31 May 2026 05:25PM UTC 166
95.67
GitHub Action Run
19 run-3.4-gemfiles/rack_3_2.gemfile - 26719391341.19 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
20 run-4.0-gemfiles/dry_validation.gemfile - 26719391341.20 31 May 2026 05:26PM UTC 165
58.53
GitHub Action Run
21 run-4.0-gemfiles/rails_8_0.gemfile - 26719391341.21 31 May 2026 05:25PM UTC 166
95.67
GitHub Action Run
22 run-3.3-gemfiles/rack_3_0.gemfile - 26719391341.22 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
23 run-4.0-gemfiles/grape_entity.gemfile - 26719391341.23 31 May 2026 05:25PM UTC 165
50.39
GitHub Action Run
24 run-4.0-gemfiles/rack_2_2.gemfile - 26719391341.24 31 May 2026 05:26PM UTC 165
95.63
GitHub Action Run
25 run-4.0-gemfiles/rack_3_1.gemfile - 26719391341.25 31 May 2026 05:26PM UTC 165
95.67
GitHub Action Run
26 run-4.0-gemfiles/hashie.gemfile - 26719391341.26 31 May 2026 05:25PM UTC 165
62.67
GitHub Action Run
27 run-3.3-gemfiles/rails_8_1.gemfile - 26719391341.27 31 May 2026 05:26PM UTC 166
95.67
GitHub Action Run
28 run-3.4-gemfiles/rails_7_2.gemfile - 26719391341.28 31 May 2026 05:26PM UTC 166
95.67
GitHub Action Run
29 run-4.0-gemfiles/rack_3_2.gemfile - 26719391341.29 31 May 2026 05:25PM UTC 165
95.67
GitHub Action Run
30 run-3.3-gemfiles/rails_8_0.gemfile - 26719391341.30 31 May 2026 05:25PM UTC 166
95.67
GitHub Action Run
Source Files on build 26719391341
  • Tree
  • List 166
  • 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 #26719391341
  • Pull Request #2751
  • PR Base - master (#26681995871)
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