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

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

Build:
Build:
LAST BUILD BRANCH: remove-tornado-upper-bound
DEFAULT BRANCH: master
Ran 27 Dec 2018 09:31PM UTC
Files 19
Run time 1s
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:29PM UTC coverage: 71.526%. Remained the same
COVER=1

Pull #71

travis-ci

web-flow
Port internal test for ThreadSafeStackContext

From internal ticket 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>
Pull Request #71: Add unit test for ThreadSafeStackContext

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 314.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 302
  • Travis Job 314.1
  • d1e8d0da on github
  • Prev Job for COVER=1 on test_thread_safe_request_context (#305.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