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

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

Build:
Build:
LAST BUILD BRANCH: remove-tornado-upper-bound
DEFAULT BRANCH: master
Ran 27 Dec 2018 09:29PM UTC
Jobs 1
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

pending completion
313

push

travis-ci

yurishkuro
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>

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 313.1 (COVER=1) 27 Dec 2018 09:29PM UTC 0
71.53
Travis Job 313.1
Source Files on build 313
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #313
  • c212312b on github
  • Next Build on test_thread_safe_request_context (#315)
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