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

NCAR / manage_externals / 125
90%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2018 11:51PM UTC
Jobs 5
Files 11
Run time 40min
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
125

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.

312 of 354 branches covered (88.14%)

Branch coverage included in aggregate %.

1017 of 1093 relevant lines covered (93.05%)

3.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 125.1 28 Mar 2018 11:51PM UTC 0
91.86
Travis Job 125.1
2 125.2 28 Mar 2018 11:52PM UTC 0
92.01
Travis Job 125.2
3 125.3 28 Mar 2018 11:51PM UTC 0
91.93
Travis Job 125.3
4 125.4 28 Mar 2018 11:51PM UTC 0
91.93
Travis Job 125.4
5 125.5 29 Mar 2018 12:31AM UTC 0
91.86
Travis Job 125.5
Source Files on build 125
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #125
  • d6423c68 on github
  • Prev Build on master (#124)
  • Next Build on master (#137)
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