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

99designs / gqlgen / 7357739561
0%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2023 03:12PM UTC
Jobs 2
Files 117
Run time 7s
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

29 Dec 2023 03:10PM UTC coverage: 75.914% (-0.02%) from 75.93%
7357739561

push

github

web-flow
fix: avoid panic from tracing on bad request (#2871)

This fixes a panic which arises from the tracing components when a request has some defect which results in an error when creating the operation context. The transports consistently handle this by calling `DispatchError(graphql.WithOperationContext(ctx, rc), err)` where `rc` is the OperationContext which was not correctly constructed. This seems dangerous, because middleware may assume that if there in an `OperationContext` in the `context.Context` than they are being invoked on a normal codepath and can assume their other interceptors have been invoked in the normal order. Also, using a value returned by a function which also returned a non-nil error is very unusual. However, I have no idea what the impact of changing that dangerous behavior in the transports would be, so I opted to make the tracing component more resilient instead.

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

7 existing lines in 3 files now uncovered.

6918 of 9113 relevant lines covered (75.91%)

1437.31 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
75.26
-0.53% codegen/config/binder.go
2
64.81
-1.85% codegen/object.go
3
87.13
-0.9% graphql/handler/transport/websocket.go
Jobs
ID Job ID Ran Files Coverage
1 7357739561.1 29 Dec 2023 03:12PM UTC 108
79.42
GitHub Action Run
2 7357739561.2 29 Dec 2023 03:12PM UTC 117
75.89
GitHub Action Run
Source Files on build 7357739561
  • Tree
  • List 117
  • Changed 43
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c811d47e on github
  • Prev Build on master (#7295508495)
  • Next Build on master (#7361009597)
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