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

appsembler / tahoe_cert_agent
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/django-1.11.29
DEFAULT BRANCH: master
Repo Added 27 Aug 2018 12:38PM UTC
Files 10
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

LAST BUILD ON BRANCH subprocess-pipe-fix
branch: subprocess-pipe-fix
CHANGE BRANCH
x
Reset
  • subprocess-pipe-fix
  • ansible-log-path
  • custom-domains/run-certget-for-single-domain
  • dependabot/pip/django-1.11.23
  • dependabot/pip/django-1.11.28
  • dependabot/pip/django-1.11.29
  • dependabot/pip/djangorestframework-3.9.1
  • domain-whitelist-bugfix
  • domain-whitelist-test
  • honeycomb-config
  • master
  • remove-f-string
  • smoketest
  • statsd
  • tests
  • tox
  • travisci-flake8
  • travisci-vm

pending completion
57

Pull #8

travis-ci

web-flow
fix subprocess pipe hanging issue

Just calling `.wait()` without reading stdout can result in the
process deadlocking when the pipe fills up.

We could call `.communicate()`, which ensures that it all gets read,
but has its own risk of memory filling up because it buffers it all:
https://docs.python.org/2/library/subprocess.html#subprocess.Popen.communicate

Instead, we just loop over it, reading line by line until it hits a
`StopIteration`.

I do not have a unit test for this bug, unfortunately. It's a tricky
interaction between python and the system that it's running on and
would likely be a flakey test at best. Furthermore, reproducing the
bug and successfully testing for it would involve detecting that the
program had hung, and that gets tricky (halting problem and all).
Pull Request #8: fix subprocess pipe hanging issue

3 of 3 new or added lines in 1 file covered. (100.0%)

148 of 161 relevant lines covered (91.93%)

0.92 hits per line

Relevant lines Covered
Build:
Build:
161 RELEVANT LINES 148 COVERED LINES
0.92 HITS PER LINE
Source Files on subprocess-pipe-fix
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
57 subprocess-pipe-fix fix subprocess pipe hanging issue Just calling `.wait()` without reading stdout can result in the process deadlocking when the pipe fills up. We could call `.communicate()`, which ensures that it all gets read, but has its own risk of memory fil... Pull #8 26 Oct 2018 03:06PM UTC web-flow travis-ci pending completion  
56 subprocess-pipe-fix fix subprocess pipe hanging issue Just calling `.wait()` without reading stdout can result in the process deadlocking when the pipe fills up. We could call `.communicate()`, which ensures that it all gets read, but has its own risk of memory fil... push 26 Oct 2018 03:00PM UTC thraxil travis-ci pending completion  
See All Builds (96)
  • Repo on GitHub
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