-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.6.0
-
Component/s: Build
-
Fully Compatible
-
ALL
-
Server 2.7.2
-
0
smoke.py can leave orphan processes on failure, which causes MCI to wait two hours unnecessarily before it declares the task failed.
Given a dummy "sleep-forever" script:
#!/bin/sh exec sleep 32768
Run smoke.py with --mongod=sleep-forever. Here I toggle on buildlogger for extra fun:
$ python ./buildscripts/smoke.py --mongod=/Users/kangas/bin/sleep-forever --buildlogger-builder=mattkangas --buildlogger-buildnum=1 --buildlogger-credentials=../buildlogger.creds --buildlogger-phase=junk jsCore
While running:
$ pstree -s python -+= 00001 root /sbin/launchd \-+= 00143 kangas /sbin/launchd \-+= 00210 kangas /Applications/iTerm.app/Contents/MacOS/iTerm -psn_0_57358 \-+= 02127 root login -fp kangas \-+= 02128 kangas -bash \-+= 05251 kangas python ./buildscripts/smoke.py --mongod=/Users/kangas/bin/sleep-forever --buildlogger-builder=mattkangas --buildlogger-buildnu \-+- 05253 kangas /usr/bin/python buildscripts/buildlogger.py -g /Users/kangas/bin/sleep-forever --port 27999 --dbpath /data/db/sconsTests/ -- \--- 05254 kangas sleep 32768
After it times out:
$ pstree -s python -+= 00001 root /sbin/launchd \-+- 05253 kangas /usr/bin/python buildscripts/buildlogger.py -g /Users/kangas/bin/sleep-forever --port 27999 --dbpath /data/db/sconsTests/ --setParamet \--- 05254 kangas sleep 32768
Orphans!