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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 14 May 2026 02:31PM UTC
Jobs 37
Files 160
Run time 2min
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

14 May 2026 02:30PM UTC coverage: 97.016% (-0.04%) from 97.051%
25865878425

Pull #2712

github

ericproulx
Switch error_formatter to keyword arguments; expose status and headers

The error_formatter contract previously took five positional arguments —
`(message, backtrace, options, env, original_exception)` — which made it
impossible to thread additional context through to custom formatters
without breaking every existing override. Switch to keyword arguments and
add two fields that have been asked for in #2527:

    def call(message:, backtrace:, options:, env:,
             status:, headers:, original_exception:)

`status:` makes JSON:API-style error bodies straightforward (the spec
embeds the HTTP status code in the response). `headers:` lets formatters
react to the response content-type or trace the marker headers set by
`error!`. Both were previously only reachable via
`env[Grape::Env::API_ENDPOINT].status` and friends.

This is a contract break — existing custom formatters that re-declare
`call` with the positional signature will need to migrate. See
UPGRADING.md for the before/after.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2712: Switch error_formatter to keyword arguments; expose status and headers

1076 of 1159 branches covered (92.84%)

Branch coverage included in aggregate %.

21 of 22 new or added lines in 4 files covered. (95.45%)

1 existing line in 1 file now uncovered.

3475 of 3532 relevant lines covered (98.39%)

32072.61 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.1
-0.52% lib/grape/middleware/error.rb

Coverage Regressions

Lines Coverage ∆ File
1
95.1
-0.52% lib/grape/middleware/error.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 25865878425.1 14 May 2026 02:31PM UTC 160
95.73
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 25865878425.2 14 May 2026 02:31PM UTC 159
58.35
GitHub Action Run
3 run-4.0-gemfiles/rack_2_2.gemfile - 25865878425.3 14 May 2026 02:31PM UTC 159
95.68
GitHub Action Run
4 run-3.4-gemfiles/rack_3_2.gemfile - 25865878425.4 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
5 run-4.0-gemfiles/rack_3_1.gemfile - 25865878425.5 14 May 2026 02:32PM UTC 159
95.73
GitHub Action Run
6 run-4.0-gemfiles/multi_json.gemfile - 25865878425.6 14 May 2026 02:31PM UTC 159
36.35
GitHub Action Run
7 run-3.3-Gemfile - 25865878425.7 14 May 2026 02:31PM UTC 159
95.71
GitHub Action Run
8 run-3.4-gemfiles/rack_3_1.gemfile - 25865878425.8 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
9 run-4.0-gemfiles/rails_8_1.gemfile - 25865878425.9 14 May 2026 02:32PM UTC 160
95.73
GitHub Action Run
10 run-3.4-gemfiles/rails_8_1.gemfile - 25865878425.10 14 May 2026 02:32PM UTC 160
95.73
GitHub Action Run
11 run-3.2-gemfiles/rack_2_2.gemfile - 25865878425.11 14 May 2026 02:31PM UTC 159
95.71
GitHub Action Run
12 run-4.0-gemfiles/rails_8_0.gemfile - 25865878425.12 14 May 2026 02:32PM UTC 160
95.73
GitHub Action Run
13 run-3.2-gemfiles/rack_3_2.gemfile - 25865878425.13 14 May 2026 02:31PM UTC 159
95.75
GitHub Action Run
14 run-3.3-gemfiles/rack_3_1.gemfile - 25865878425.14 14 May 2026 02:32PM UTC 159
95.71
GitHub Action Run
15 run-3.4-gemfiles/rack_2_2.gemfile - 25865878425.15 14 May 2026 02:31PM UTC 159
95.68
GitHub Action Run
16 run-3.3-gemfiles/rack_3_2.gemfile - 25865878425.16 14 May 2026 02:31PM UTC 159
95.71
GitHub Action Run
17 run-4.0-gemfiles/hashie.gemfile - 25865878425.17 14 May 2026 02:31PM UTC 159
62.84
GitHub Action Run
18 run-3.4-gemfiles/rack_3_0.gemfile - 25865878425.18 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
19 run-3.3-gemfiles/rails_8_1.gemfile - 25865878425.19 14 May 2026 02:31PM UTC 160
95.71
GitHub Action Run
20 run-3.3-gemfiles/rails_7_2.gemfile - 25865878425.20 14 May 2026 02:31PM UTC 160
95.71
GitHub Action Run
21 run-3.3-gemfiles/rails_8_0.gemfile - 25865878425.21 14 May 2026 02:31PM UTC 160
95.71
GitHub Action Run
22 run-3.3-gemfiles/rack_3_0.gemfile - 25865878425.22 14 May 2026 02:31PM UTC 159
95.71
GitHub Action Run
23 run-4.0-gemfiles/rack_3_0.gemfile - 25865878425.23 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
24 run-4.0-gemfiles/multi_xml.gemfile - 25865878425.24 14 May 2026 02:31PM UTC 159
36.35
GitHub Action Run
25 run-4.0-gemfiles/grape_entity.gemfile - 25865878425.25 14 May 2026 02:31PM UTC 159
50.26
GitHub Action Run
26 run-3.3-gemfiles/rack_2_2.gemfile - 25865878425.26 14 May 2026 02:31PM UTC 159
95.66
GitHub Action Run
27 run-3.2-gemfiles/rails_8_0.gemfile - 25865878425.27 14 May 2026 02:31PM UTC 160
95.75
GitHub Action Run
28 run-3.4-gemfiles/rails_8_0.gemfile - 25865878425.28 14 May 2026 02:31PM UTC 160
95.73
GitHub Action Run
29 run-3.4-gemfiles/rails_7_2.gemfile - 25865878425.29 14 May 2026 02:31PM UTC 160
95.73
GitHub Action Run
30 run-3.2-Gemfile - 25865878425.30 14 May 2026 02:31PM UTC 159
95.75
GitHub Action Run
31 run-3.2-gemfiles/rack_3_0.gemfile - 25865878425.31 14 May 2026 02:31PM UTC 159
95.75
GitHub Action Run
32 run-4.0-gemfiles/rack_3_2.gemfile - 25865878425.32 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
33 run-3.2-gemfiles/rack_3_1.gemfile - 25865878425.33 14 May 2026 02:31PM UTC 159
95.75
GitHub Action Run
34 run-3.4-Gemfile - 25865878425.34 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
35 run-3.2-gemfiles/rails_8_1.gemfile - 25865878425.35 14 May 2026 02:31PM UTC 160
95.75
GitHub Action Run
36 run-4.0-Gemfile - 25865878425.36 14 May 2026 02:31PM UTC 159
95.73
GitHub Action Run
37 run-3.2-gemfiles/rails_7_2.gemfile - 25865878425.37 14 May 2026 02:31PM UTC 160
95.75
GitHub Action Run
Source Files on build 25865878425
  • Tree
  • List 160
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25865878425
  • Pull Request #2712
  • PR Base - master (#25854383996)
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