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

uber-common / opentracing-python-instrumentation / 317 / 1
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 27 Dec 2018 09:41PM UTC
Files 19
Run time 2s
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

27 Dec 2018 09:39PM UTC coverage: 71.526%. Remained the same
COVER=1

push

travis-ci

web-flow
Add unit test for ThreadSafeStackContext (#71)

Ported from Uber's internal `tornado-extras` lib. Should've been added in #2.

From internal ticket T233805 by @sema:

> With the help of @recht, I've found a race (or unexpected semantics if you will) in Tornado's StackContext used by tornado-extras' RequestContext.
> 
> In short, StackContext more or less assumes it will only be expected on one thread. If you use it across threads (using wraps) then the context may be entered/exited in unexpected ways. This causes exceptions in RequestContext [like below], and other subtle errors.
> 
> ```
> AttributeError: 'RequestContextManager' object has no attribute '_prev_data'
> ```
> 
> I've included an explanation of the race(s) in the diff + a test case that triggers the error (revert the usage of ThreadSafeStackContext and the test should fail).

Signed-off-by: Yuri Shkuro <ys@uber.com>

120 of 191 branches covered (62.83%)

Branch coverage included in aggregate %.

616 of 838 relevant lines covered (73.51%)

0.74 hits per line

Source Files on job 317.1 (COVER=1)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 305
  • Travis Job 317.1
  • 9fe13cc5 on github
  • Prev Job for COVER=1 on master (#305.1)
  • Next Job for COVER=1 on master (#325.1)
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