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

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

Build:
Build:
LAST BUILD BRANCH: refactor/inline-mustermann-grape
DEFAULT BRANCH: master
Ran 31 May 2026 06:56PM 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:56PM UTC coverage: 96.838% (-0.02%) from 96.861%
26721499467

Pull #2752

github

ericproulx
Skip per-request instrumentation work when no subscribers are listening

Grape fires up to six ActiveSupport::Notifications.instrument calls per
request (endpoint run / render / run_validators / run_filters and
format_response). Each builds a payload Hash and enters the notification
machinery on every request, even when nothing is subscribed to the event.

Guard each emission behind ActiveSupport::Notifications.notifier.listening?
via a small private instrument_<event> method on the owning class. With no
subscriber the block runs directly, skipping the payload Hash and the
instrument dispatch; the block is forwarded anonymously so nothing extra is
allocated unless a subscriber is present. Behaviour is unchanged when a
subscriber exists - same events, same payloads.

Saves one Hash allocation per emitted event (-6 allocations/request on an
endpoint with before/after filters and params), ~+4.6% median throughput
under YJIT on that endpoint; scales with events emitted per request.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2752: Skip per-request instrumentation work when no subscribers are listening

1112 of 1203 branches covered (92.44%)

Branch coverage included in aggregate %.

19 of 20 new or added lines in 2 files covered. (95.0%)

1 existing line in 1 file now uncovered.

3543 of 3604 relevant lines covered (98.31%)

23213.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.35
-0.6% lib/grape/endpoint.rb

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/rack_3_1.gemfile - 26721499467.1 31 May 2026 06:57PM UTC 165
95.65
GitHub Action Run
2 run-4.0-gemfiles/rack_3_2.gemfile - 26721499467.2 31 May 2026 06:57PM UTC 165
95.65
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 26721499467.3 31 May 2026 06:56PM UTC 165
62.65
GitHub Action Run
4 run-3.3-gemfiles/rails_8_0.gemfile - 26721499467.4 31 May 2026 06:57PM UTC 166
95.65
GitHub Action Run
5 run-3.3-gemfiles/rails_8_1.gemfile - 26721499467.5 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
6 run-4.0-gemfiles/rack_2_2.gemfile - 26721499467.6 31 May 2026 06:56PM UTC 165
95.61
GitHub Action Run
7 run-4.0-gemfiles/multi_json.gemfile - 26721499467.7 31 May 2026 06:56PM UTC 165
37.14
GitHub Action Run
8 run-4.0-gemfiles/dry_validation.gemfile - 26721499467.8 31 May 2026 06:56PM UTC 165
58.53
GitHub Action Run
9 run-3.4-gemfiles/rack_3_1.gemfile - 26721499467.9 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
10 run-4.0-gemfiles/grape_swagger.gemfile - 26721499467.10 31 May 2026 06:56PM UTC 165
55.43
GitHub Action Run
11 run-3.3-Gemfile - 26721499467.11 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
12 run-4.0-gemfiles/rails_8_1.gemfile - 26721499467.12 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
13 run-4.0-gemfiles/multi_xml.gemfile - 26721499467.13 31 May 2026 06:56PM UTC 165
37.14
GitHub Action Run
14 run-3.3-gemfiles/rack_3_2.gemfile - 26721499467.14 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
15 run-4.0-gemfiles/rails_7_2.gemfile - 26721499467.15 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
16 run-3.4-gemfiles/rails_8_1.gemfile - 26721499467.16 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
17 run-3.4-gemfiles/rack_3_0.gemfile - 26721499467.17 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
18 run-3.3-gemfiles/rack_3_1.gemfile - 26721499467.18 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
19 run-4.0-gemfiles/rails_8_0.gemfile - 26721499467.19 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
20 run-3.4-gemfiles/rails_8_0.gemfile - 26721499467.20 31 May 2026 06:57PM UTC 166
95.65
GitHub Action Run
21 run-4.0-gemfiles/rack_3_0.gemfile - 26721499467.21 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
22 run-3.4-gemfiles/rack_3_2.gemfile - 26721499467.22 31 May 2026 06:57PM UTC 165
95.65
GitHub Action Run
23 run-4.0-gemfiles/grape_entity.gemfile - 26721499467.23 31 May 2026 06:56PM UTC 165
50.39
GitHub Action Run
24 run-3.3-gemfiles/rails_7_2.gemfile - 26721499467.24 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
25 run-3.4-Gemfile - 26721499467.25 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
26 run-3.3-gemfiles/rack_2_2.gemfile - 26721499467.26 31 May 2026 06:56PM UTC 165
95.6
GitHub Action Run
27 run-3.4-gemfiles/rails_7_2.gemfile - 26721499467.27 31 May 2026 06:56PM UTC 166
95.65
GitHub Action Run
28 run-4.0-Gemfile - 26721499467.28 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
29 run-3.4-gemfiles/rack_2_2.gemfile - 26721499467.29 31 May 2026 06:56PM UTC 165
95.61
GitHub Action Run
30 run-3.3-gemfiles/rack_3_0.gemfile - 26721499467.30 31 May 2026 06:56PM UTC 165
95.65
GitHub Action Run
Source Files on build 26721499467
  • Tree
  • List 166
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26721499467
  • Pull Request #2752
  • 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