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

TykTechnologies / tyk / 7991
39%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 30 Dec 2019 07:51AM UTC
Jobs 1
Files 0
Run time –
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
7991

push

travis-ci

Tyk Bot
python: use sync.Mutex for protecting Python calls, extend error handlers (#2746)

I've found several issues when using `dlpython` GIL helper functions, mostly because there might be internal calls that weren't correctly mapped when preparing the bindings. I did many experiments with it and the simplest approach is to control the lock in the Go side, with this we can avoid additional `cgo` overhead (in 2.8 we were controlling the GIL using the CPython calls).

Performance gets slightly better, less context switches and CPU usage as well, I'm comparing 2.8.6 (with previous approach) with this 2.9.x patch. It should protect all calls and ensure no crashes related to `PyCallObject`:

<img width="920" alt="test1" src="https://user-images.githubusercontent.com/20110/71085093-9eb5ab00-218e-11ea-86af-695893d84abf.png">
<img width="924" alt="test2" src="https://user-images.githubusercontent.com/20110/71085094-9eb5ab00-218e-11ea-952e-a67d7d592423.png">

<img width="1115" alt="cpuinterrupts" src="https://user-images.githubusercontent.com/20110/71085118-abd29a00-218e-11ea-8b83-4ef0c038d30a.png">
<img width="1087" alt="cpuusage" src="https://user-images.githubusercontent.com/20110/71085119-abd29a00-218e-11ea-8c2d-0e828f114504.png">


Fix for: https://github.com/TykTechnologies/tyk/issues/2760

(cherry picked from commit eb5acc763)
Jobs
ID Job ID Ran Files Coverage
2 7991.2 (LATEST_GO=true) 30 Dec 2019 07:51AM UTC 0
Travis Job 7991.2
Source Files on build 7991
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7991
  • 42711b8a on github
  • Prev Build on release-2.9 (#7990)
  • Next Build on release-2.9 (#7992)
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