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

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

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 19 Apr 2026 05:39PM UTC
Jobs 37
Files 153
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

19 Apr 2026 05:38PM UTC coverage: 96.91% (+0.003%) from 96.907%
24635096923

Pull #2687

github

ericproulx
Skip backtrace capture on internal validation exceptions

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>
Pull Request #2687: Skip backtrace capture on internal validation exceptions

1070 of 1158 branches covered (92.4%)

Branch coverage included in aggregate %.

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

3352 of 3405 relevant lines covered (98.44%)

33042.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 24635096923.1 19 Apr 2026 05:40PM UTC 153
95.59
GitHub Action Run
2 run-3.3-gemfiles/rack_2_2.gemfile - 24635096923.2 19 Apr 2026 05:40PM UTC 152
95.52
GitHub Action Run
3 run-3.3-gemfiles/rails_8_0.gemfile - 24635096923.3 19 Apr 2026 05:40PM UTC 153
95.57
GitHub Action Run
4 run-3.2-gemfiles/rails_7_2.gemfile - 24635096923.4 19 Apr 2026 05:39PM UTC 153
95.61
GitHub Action Run
5 run-3.4-gemfiles/rack_3_2.gemfile - 24635096923.5 19 Apr 2026 05:40PM UTC 152
95.58
GitHub Action Run
6 run-3.3-gemfiles/rack_3_0.gemfile - 24635096923.6 19 Apr 2026 05:40PM UTC 152
95.56
GitHub Action Run
7 run-3.4-gemfiles/rails_7_2.gemfile - 24635096923.7 19 Apr 2026 05:40PM UTC 153
95.59
GitHub Action Run
8 run-4.0-gemfiles/rack_3_1.gemfile - 24635096923.8 19 Apr 2026 05:40PM UTC 152
95.58
GitHub Action Run
9 run-4.0-Gemfile - 24635096923.9 19 Apr 2026 05:40PM UTC 152
95.58
GitHub Action Run
10 run-3.2-gemfiles/rack_3_2.gemfile - 24635096923.10 19 Apr 2026 05:39PM UTC 152
95.61
GitHub Action Run
11 run-3.2-gemfiles/rack_3_0.gemfile - 24635096923.11 19 Apr 2026 05:39PM UTC 152
95.61
GitHub Action Run
12 run-4.0-gemfiles/rack_3_2.gemfile - 24635096923.12 19 Apr 2026 05:40PM UTC 152
95.58
GitHub Action Run
13 run-4.0-gemfiles/dry_validation.gemfile - 24635096923.13 19 Apr 2026 05:40PM UTC 152
57.56
GitHub Action Run
14 run-3.2-gemfiles/rails_8_1.gemfile - 24635096923.14 19 Apr 2026 05:40PM UTC 153
95.61
GitHub Action Run
15 run-4.0-gemfiles/multi_xml.gemfile - 24635096923.15 19 Apr 2026 05:39PM UTC 152
35.9
GitHub Action Run
16 run-3.4-gemfiles/rack_2_2.gemfile - 24635096923.16 19 Apr 2026 05:40PM UTC 152
95.54
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 24635096923.17 19 Apr 2026 05:39PM UTC 152
95.58
GitHub Action Run
18 run-4.0-gemfiles/rails_8_1.gemfile - 24635096923.18 19 Apr 2026 05:40PM UTC 153
95.59
GitHub Action Run
19 run-4.0-gemfiles/rack_2_2.gemfile - 24635096923.19 19 Apr 2026 05:39PM UTC 152
95.54
GitHub Action Run
20 run-4.0-gemfiles/hashie.gemfile - 24635096923.20 19 Apr 2026 05:40PM UTC 152
62.24
GitHub Action Run
21 run-3.2-gemfiles/rack_2_2.gemfile - 24635096923.21 19 Apr 2026 05:39PM UTC 152
95.56
GitHub Action Run
22 run-3.2-gemfiles/rails_8_0.gemfile - 24635096923.22 19 Apr 2026 05:40PM UTC 153
95.61
GitHub Action Run
23 run-3.3-gemfiles/rails_8_1.gemfile - 24635096923.23 19 Apr 2026 05:40PM UTC 153
95.57
GitHub Action Run
24 run-3.4-Gemfile - 24635096923.24 19 Apr 2026 05:40PM UTC 152
95.58
GitHub Action Run
25 run-3.2-gemfiles/rack_3_1.gemfile - 24635096923.25 19 Apr 2026 05:39PM UTC 152
95.61
GitHub Action Run
26 run-4.0-gemfiles/rails_8_0.gemfile - 24635096923.26 19 Apr 2026 05:39PM UTC 153
95.59
GitHub Action Run
27 run-3.3-gemfiles/rack_3_2.gemfile - 24635096923.27 19 Apr 2026 05:40PM UTC 152
95.56
GitHub Action Run
28 run-4.0-gemfiles/grape_entity.gemfile - 24635096923.28 19 Apr 2026 05:40PM UTC 152
49.23
GitHub Action Run
29 run-3.3-gemfiles/rack_3_1.gemfile - 24635096923.29 19 Apr 2026 05:40PM UTC 152
95.56
GitHub Action Run
30 run-3.4-gemfiles/rails_8_0.gemfile - 24635096923.30 19 Apr 2026 05:40PM UTC 153
95.59
GitHub Action Run
31 run-3.4-gemfiles/rack_3_0.gemfile - 24635096923.31 19 Apr 2026 05:40PM UTC 152
95.58
GitHub Action Run
32 run-3.4-gemfiles/rails_8_1.gemfile - 24635096923.32 19 Apr 2026 05:40PM UTC 153
95.59
GitHub Action Run
33 run-3.2-Gemfile - 24635096923.33 19 Apr 2026 05:39PM UTC 152
95.61
GitHub Action Run
34 run-4.0-gemfiles/multi_json.gemfile - 24635096923.34 19 Apr 2026 05:40PM UTC 152
35.9
GitHub Action Run
35 run-4.0-gemfiles/rack_3_0.gemfile - 24635096923.35 19 Apr 2026 05:39PM UTC 152
95.58
GitHub Action Run
36 run-3.3-Gemfile - 24635096923.36 19 Apr 2026 05:39PM UTC 152
95.56
GitHub Action Run
37 run-3.3-gemfiles/rails_7_2.gemfile - 24635096923.37 19 Apr 2026 05:40PM UTC 153
95.57
GitHub Action Run
Source Files on build 24635096923
  • Tree
  • List 153
  • 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 #24635096923
  • Pull Request #2687
  • PR Base - master (#24617960772)
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