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

pantsbuild / pants / 4367 / 3
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: pantsd/stdio-per-run-log
DEFAULT BRANCH: main
Ran 07 Apr 2015 04:57PM UTC
Files 319
Run time 17s
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

07 Apr 2015 04:39PM UTC coverage: 69.651% (-0.03%) from 69.683%
CI_FLAGS="-fkmsrcnet 'Python unit tests for pants and pants-plugins'"

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/

12960 of 18607 relevant lines covered (69.65%)

0.7 hits per line

Source Files on job 4367.3 (CI_FLAGS="-fkmsrcnet 'Python unit tests for pants and pants-plugins'")
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4367
  • Travis Job 4367.3
  • 14886c50 on github
  • Prev Job for CI_FLAGS="-fkmsrcnet 'Python unit tests for pants and pants-plugins'" on master (#4365.3)
  • Next Job for CI_FLAGS="-fkmsrcnet 'Python unit tests for pants and pants-plugins'" on master (#4382.3)
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