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

uber-common / opentracing-python-instrumentation / 317
88%

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

pending completion
317

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

Jobs
ID Job ID Ran Files Coverage
1 317.1 (COVER=1) 27 Dec 2018 09:41PM UTC 0
71.53
Travis Job 317.1
Source Files on build 317
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #317
  • 9fe13cc5 on github
  • Prev Build on master (#305)
  • Next Build on master (#325)
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

© 2025 Coveralls, Inc