Kubilay Kocak added the comment:
as per msg280837, this beings to happen when I restart the buildbot worker via
sudo (does not fail on initial startup, executed/invoked using the same script,
which does not use sudo) and the environment the worker starts with appears to
be relevant.
Attached are the environments for the worker at initial startup
(python-initial) and subsequent service restart using sudo (python-sudo, which
fails tests).
The delta between the two is:
--- python-initial 2017-06-09 14:35:49.557098000 +1000
+++ python-sudo 2017-06-09 14:35:13.665893000 +1000
@@ -6,17 +6,29 @@
BLOCKSIZE=K
EDITOR=vi
GROUP=buildbot
- HOME=/
+ HOME=/root
HOST=CURRENT-amd64
HOSTTYPE=FreeBSD
- LOGNAME=buildbot
+ LANG=en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ LC_CTYPE=en_US.UTF-8
+ LOGNAME=root
MACHTYPE=x86_64
+ MAIL=/var/mail/root
OSTYPE=FreeBSD
PAGER=more
- PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin://bin
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
+ PS1=%B[%{%}%n%{%}%b@%B%{%}%m%b%{%}:%~%B]%b
PWD=/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build
- RC_PID=23
+ RC_PID=22356
+ SHELL=/bin/csh
SHLVL=1
- USER=buildbot
+ SUDO_COMMAND=/usr/local/etc/rc.d/buildslave restart
+ SUDO_GID=1001
+ SUDO_UID=1001
+ SUDO_USER=koobs
+ TERM=screen-256color
+ USER=root
+ USERNAME=root
VENDOR=amd
using PTY: False
----------
Added file: http://bugs.python.org/file46936/python-initial.txt
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27838>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com