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

NCAR / manage_externals
92%
master: 90%

Build:
Build:
LAST BUILD BRANCH: manic-v1.1.0
DEFAULT BRANCH: master
Repo Added 16 Nov 2017 02:42AM UTC
Files 11
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 release-v1.0
branch: release-v1.0
CHANGE BRANCH
x
Reset
  • release-v1.0
  • manic-v0.5.0
  • manic-v0.6.0
  • manic-v0.7.0
  • manic-v0.8.0
  • manic-v1.0.0
  • manic-v1.0.1
  • manic-v1.0.2
  • manic-v1.1.0
  • master
  • release-v1.1

pending completion
129

push

travis-ci

bandre-ucar
Bugfix: timeout limit for subprocesses

For security reasons svn and git do not use standard in/out/error to request
and process authentication. Instead, they use lower level system interfaces.
Python calling a subprocess can only interact with stdio, and can not intercept
or detect the lower level calls. On some systems, these requests are visible
to the user, on some systems they are not. When subprocess commands expect user
input they will wait and manage_externals appears to hang.

Change the subprocess calls to polling the running process and checking the
current run time. If the run time exceeds a timeout limit, then we display an
error message suggesting that the user verify authentication and then declare a
fatal error.

The default timeout interval of 5 minutes is probably too long and can be
shortened. But since svn requires network interaction and some large checkouts
can take a long time, this is a 'conservative' initial value.

Breakup up the subprocess call routine so it is easier to understand.

Testing:
  make test - python2/python3 - all tests pass.
  manually test with very short timeout to ensure error message is raised.

311 of 354 branches covered (87.85%)

Branch coverage included in aggregate %.

1018 of 1092 relevant lines covered (93.22%)

3.73 hits per line

Relevant lines Covered
Build:
Build:
1092 RELEVANT LINES 1018 COVERED LINES
3.73 HITS PER LINE
Source Files on release-v1.0
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
129 release-v1.0 Bugfix: timeout limit for subprocesses For security reasons svn and git do not use standard in/out/error to request and process authentication. Instead, they use lower level system interfaces. Python calling a subprocess can only interact with st... push 03 Apr 2018 05:05PM UTC bandre-ucar travis-ci pending completion  
See All Builds (109)
  • 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