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

pantsbuild / pants / 4367
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: pantsd/stdio-per-run-log
DEFAULT BRANCH: main
Ran 07 Apr 2015 04:50PM UTC
Jobs 10
Files 319
Run time 19min
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
4367

push

travis-ci

dt
Change subproc sigint handler to exit more cleanly

The very fast exit of os._exit can cause the stdlib multiproc glue code in the parent process, specifically the queues readers that shuttle results between processes, to deadlock.

It appears that using `sys.exit` in subprocesses instead allows those queues to close in a way that does not cause the parent process to deadlock, while still ensuring that subprocesses exit.

As a refresher: Even if the work function passed to subprocs catches KeyboardInterrupt, the multiprocessing queue code still throws, so a signal handler of some kind is needed to prevent $numproc stacktraces being printed on interrupt.

Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/56935938

Reviewed at https://rbcommons.com/s/twitter/r/2024/

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

12960 of 18607 relevant lines covered (69.65%)

0.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4367.1 (CI_FLAGS="-clpnet 'Various pants self checks'") 07 Apr 2015 04:50PM UTC 0
Travis Job 4367.1
2 4367.2 (CI_FLAGS="-fkmsrclpn 'Test examples and testprojects'") 07 Apr 2015 04:53PM UTC 0
Travis Job 4367.2
3 4367.3 (CI_FLAGS="-fkmsrcnet 'Python unit tests for pants and pants-plugins'") 07 Apr 2015 04:57PM UTC 0
69.65
Travis Job 4367.3
4 4367.4 (CI_FLAGS="-fkmsrclpet 'Python contrib tests'") 07 Apr 2015 04:57PM UTC 0
Travis Job 4367.4
5 4367.5 (CI_FLAGS="-fkmsrlpnet -i 6:0 'Python integration tests for pants - shard 1'") 07 Apr 2015 04:59PM UTC 0
Travis Job 4367.5
6 4367.6 (CI_FLAGS="-fkmsrlpnet -i 6:1 'Python integration tests for pants - shard 2'") 07 Apr 2015 05:01PM UTC 0
Travis Job 4367.6
7 4367.7 (CI_FLAGS="-fkmsrlpnet -i 6:2 'Python integration tests for pants - shard 3'") 07 Apr 2015 05:04PM UTC 0
Travis Job 4367.7
8 4367.8 (CI_FLAGS="-fkmsrlpnet -i 6:3 'Python integration tests for pants - shard 4'") 07 Apr 2015 05:03PM UTC 0
Travis Job 4367.8
9 4367.9 (CI_FLAGS="-fkmsrlpnet -i 6:4 'Python integration tests for pants - shard 5'") 07 Apr 2015 05:06PM UTC 0
Travis Job 4367.9
10 4367.10 (CI_FLAGS="-fkmsrlpnet -i 6:5 'Python integration tests for pants - shard 6'") 07 Apr 2015 05:09PM UTC 0
Travis Job 4367.10
Source Files on build 4367
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4367
  • 14886c50 on github
  • Prev Build on master (#4365)
  • Next Build on master (#4382)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc