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

ruby-grape / grape / 24693877550
97%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 10:35PM UTC
Jobs 37
Files 155
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

20 Apr 2026 10:35PM UTC coverage: 96.931% (+0.003%) from 96.928%
24693877550

push

github

web-flow
Skip backtrace capture on internal validation exceptions (#2687)

Grape::Exceptions::Validation is raised once per bad attribute on every
failing request; Grape::Exceptions::ValidationArrayErrors wraps them and
is raised once per validator. Both are caught internally by
Endpoint#run_validators and their backtraces are never surfaced — they
point into Grape's own validator stack, not user code, and have no
diagnostic value.

Ruby's +raise+ only captures a backtrace if the exception's backtrace
ivar is nil. Pre-seeding it via +set_backtrace(EMPTY_BACKTRACE)+ in
+initialize+ makes +raise+ skip the C-level +make_backtrace+ call
entirely. At representative prod stack depth (80-150 frames) this saves
~1-2 µs per raise.

The outer Grape::Exceptions::ValidationErrors is untouched — its
backtrace is preserved for anyone doing +rescue_from ValidationErrors+
or shipping validation failures to error-reporting tools.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1071 of 1157 branches covered (92.57%)

Branch coverage included in aggregate %.

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

3351 of 3405 relevant lines covered (98.41%)

32216.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.2-gemfiles/rack_2_2.gemfile - 24693877550.1 20 Apr 2026 10:36PM UTC 154
95.59
GitHub Action Run
2 run-3.3-gemfiles/rack_2_2.gemfile - 24693877550.2 20 Apr 2026 10:36PM UTC 154
95.54
GitHub Action Run
3 run-4.0-gemfiles/rails_8_0.gemfile - 24693877550.3 20 Apr 2026 10:36PM UTC 155
95.61
GitHub Action Run
4 run-3.2-gemfiles/rails_8_1.gemfile - 24693877550.4 20 Apr 2026 10:36PM UTC 155
95.63
GitHub Action Run
5 run-4.0-gemfiles/grape_entity.gemfile - 24693877550.5 20 Apr 2026 10:35PM UTC 154
49.44
GitHub Action Run
6 run-3.2-gemfiles/rails_8_0.gemfile - 24693877550.6 20 Apr 2026 10:36PM UTC 155
95.63
GitHub Action Run
7 run-4.0-gemfiles/multi_json.gemfile - 24693877550.7 20 Apr 2026 10:36PM UTC 154
35.99
GitHub Action Run
8 run-4.0-gemfiles/dry_validation.gemfile - 24693877550.8 20 Apr 2026 10:36PM UTC 154
57.79
GitHub Action Run
9 run-3.2-gemfiles/rack_3_0.gemfile - 24693877550.9 20 Apr 2026 10:36PM UTC 154
95.63
GitHub Action Run
10 run-3.4-gemfiles/rails_8_1.gemfile - 24693877550.10 20 Apr 2026 10:36PM UTC 155
95.61
GitHub Action Run
11 run-4.0-Gemfile - 24693877550.11 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
12 run-4.0-gemfiles/rack_2_2.gemfile - 24693877550.12 20 Apr 2026 10:36PM UTC 154
95.56
GitHub Action Run
13 run-3.4-gemfiles/rails_7_2.gemfile - 24693877550.13 20 Apr 2026 10:36PM UTC 155
95.61
GitHub Action Run
14 run-3.3-gemfiles/rack_3_2.gemfile - 24693877550.14 20 Apr 2026 10:36PM UTC 154
95.58
GitHub Action Run
15 run-4.0-gemfiles/rails_8_1.gemfile - 24693877550.15 20 Apr 2026 10:36PM UTC 155
95.61
GitHub Action Run
16 run-3.2-gemfiles/rails_7_2.gemfile - 24693877550.16 20 Apr 2026 10:36PM UTC 155
95.63
GitHub Action Run
17 run-3.3-gemfiles/rails_8_0.gemfile - 24693877550.17 20 Apr 2026 10:36PM UTC 155
95.59
GitHub Action Run
18 run-3.3-Gemfile - 24693877550.18 20 Apr 2026 10:36PM UTC 154
95.58
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 24693877550.19 20 Apr 2026 10:36PM UTC 155
95.61
GitHub Action Run
20 run-3.2-gemfiles/rack_3_1.gemfile - 24693877550.20 20 Apr 2026 10:36PM UTC 154
95.63
GitHub Action Run
21 run-3.3-gemfiles/rack_3_1.gemfile - 24693877550.21 20 Apr 2026 10:35PM UTC 154
95.58
GitHub Action Run
22 run-4.0-gemfiles/rack_3_0.gemfile - 24693877550.22 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
23 run-3.4-gemfiles/rack_3_0.gemfile - 24693877550.23 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
24 run-4.0-gemfiles/rack_3_2.gemfile - 24693877550.24 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
25 run-3.2-gemfiles/rack_3_2.gemfile - 24693877550.25 20 Apr 2026 10:36PM UTC 154
95.63
GitHub Action Run
26 run-4.0-gemfiles/multi_xml.gemfile - 24693877550.26 20 Apr 2026 10:35PM UTC 154
35.99
GitHub Action Run
27 run-4.0-gemfiles/rails_7_2.gemfile - 24693877550.27 20 Apr 2026 10:36PM UTC 155
95.61
GitHub Action Run
28 run-3.4-gemfiles/rack_3_1.gemfile - 24693877550.28 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
29 run-3.2-Gemfile - 24693877550.29 20 Apr 2026 10:36PM UTC 154
95.63
GitHub Action Run
30 run-3.3-gemfiles/rails_8_1.gemfile - 24693877550.30 20 Apr 2026 10:36PM UTC 155
95.59
GitHub Action Run
31 run-3.4-gemfiles/rack_3_2.gemfile - 24693877550.31 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
32 run-3.3-gemfiles/rack_3_0.gemfile - 24693877550.32 20 Apr 2026 10:36PM UTC 154
95.58
GitHub Action Run
33 run-4.0-gemfiles/rack_3_1.gemfile - 24693877550.33 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
34 run-3.4-Gemfile - 24693877550.34 20 Apr 2026 10:36PM UTC 154
95.61
GitHub Action Run
35 run-3.3-gemfiles/rails_7_2.gemfile - 24693877550.35 20 Apr 2026 10:36PM UTC 155
95.59
GitHub Action Run
36 run-3.4-gemfiles/rack_2_2.gemfile - 24693877550.36 20 Apr 2026 10:36PM UTC 154
95.56
GitHub Action Run
37 run-4.0-gemfiles/hashie.gemfile - 24693877550.37 20 Apr 2026 10:36PM UTC 154
62.47
GitHub Action Run
Source Files on build 24693877550
  • Tree
  • List 155
  • 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 #24693877550
  • 5ad002db on github
  • Prev Build on master (#24693774069)
  • Next Build on master (#24699723680)
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