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

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

Build:
Build:
LAST BUILD BRANCH: refactor/inline-mustermann-grape
DEFAULT BRANCH: master
Ran 31 May 2026 06:17PM 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 06:17PM UTC coverage: 96.865% (+0.004%) from 96.861%
26720593550

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 %.

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

1 existing line in 1 file now uncovered.

3530 of 3590 relevant lines covered (98.33%)

23267.58 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-Gemfile - 26720593550.1 31 May 2026 06:18PM UTC 165
95.67
GitHub Action Run
2 run-4.0-gemfiles/rack_3_0.gemfile - 26720593550.2 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
3 run-4.0-gemfiles/rack_3_2.gemfile - 26720593550.3 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
4 run-4.0-gemfiles/grape_swagger.gemfile - 26720593550.4 31 May 2026 06:17PM UTC 165
55.41
GitHub Action Run
5 run-3.4-Gemfile - 26720593550.5 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
6 run-4.0-gemfiles/rails_8_1.gemfile - 26720593550.6 31 May 2026 06:18PM UTC 166
95.67
GitHub Action Run
7 run-3.4-gemfiles/rack_2_2.gemfile - 26720593550.7 31 May 2026 06:17PM UTC 165
95.63
GitHub Action Run
8 run-3.3-gemfiles/rack_3_0.gemfile - 26720593550.8 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
9 run-3.4-gemfiles/rails_8_0.gemfile - 26720593550.9 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
10 run-4.0-gemfiles/rack_2_2.gemfile - 26720593550.10 31 May 2026 06:17PM UTC 165
95.63
GitHub Action Run
11 run-3.4-gemfiles/rack_3_0.gemfile - 26720593550.11 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 26720593550.12 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
13 run-3.3-gemfiles/rack_3_2.gemfile - 26720593550.13 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
14 run-3.4-gemfiles/rails_8_1.gemfile - 26720593550.14 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
15 run-3.3-gemfiles/rails_8_0.gemfile - 26720593550.15 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
16 run-4.0-gemfiles/rails_8_0.gemfile - 26720593550.16 31 May 2026 06:18PM UTC 166
95.67
GitHub Action Run
17 run-4.0-gemfiles/dry_validation.gemfile - 26720593550.17 31 May 2026 06:17PM UTC 165
58.53
GitHub Action Run
18 run-4.0-gemfiles/grape_entity.gemfile - 26720593550.18 31 May 2026 06:17PM UTC 165
50.39
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 26720593550.19 31 May 2026 06:17PM UTC 165
37.2
GitHub Action Run
20 run-4.0-gemfiles/rails_7_2.gemfile - 26720593550.20 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
21 run-4.0-gemfiles/rack_3_1.gemfile - 26720593550.21 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
22 run-4.0-gemfiles/multi_json.gemfile - 26720593550.22 31 May 2026 06:17PM UTC 165
37.2
GitHub Action Run
23 run-3.3-gemfiles/rack_3_1.gemfile - 26720593550.23 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
24 run-3.3-gemfiles/rails_7_2.gemfile - 26720593550.24 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
25 run-4.0-gemfiles/hashie.gemfile - 26720593550.25 31 May 2026 06:17PM UTC 165
62.67
GitHub Action Run
26 run-3.4-gemfiles/rails_7_2.gemfile - 26720593550.26 31 May 2026 06:17PM UTC 166
95.67
GitHub Action Run
27 run-3.3-Gemfile - 26720593550.27 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
28 run-3.4-gemfiles/rack_3_2.gemfile - 26720593550.28 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
29 run-3.4-gemfiles/rack_3_1.gemfile - 26720593550.29 31 May 2026 06:17PM UTC 165
95.67
GitHub Action Run
30 run-3.3-gemfiles/rack_2_2.gemfile - 26720593550.30 31 May 2026 06:17PM UTC 165
95.63
GitHub Action Run
Source Files on build 26720593550
  • 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 #26720593550
  • 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