STINNER Victor added the comment:
On the buildbot server, I see the following code in
lib/python/buildbot/status/mail.py:
# GB: NEW: add test logfile excerpts
if "test" in t: # only if the test went wrong
for log in build.getLogs():
if "test" in log.getStep().getName():
text += "\n"
text += "Excerpt from the test logfile:"
text += interpret_test_logfile(log.getText().splitlines())
text += "\n"
break
But I'm unable to find this code in the upstream code:
https://github.com/buildbot/buildbot/blob/v0.8.12/master/buildbot/status/mail.py#L742
Do we have downstream changes on buildbot? I'm asking because it seems like
emails cannot be send because of these lines. Extract of logs:
2017-05-05 11:55:42+0000 [-] Exception caught notifying
<buildbot.status.mail.MailNotifier instance at 0x7f9512f3add0> of buildFinished
event
2017-05-05 11:55:42+0000 [-] Unhandled Error
Traceback (most recent call last):
File "/data/buildbot/lib/python/buildbot/status/build.py", line 320,
in buildFinished
(...)
File "/data/buildbot/lib/python/buildbot/status/mail.py", line 792,
in buildMessage
if "test" in t: # only if the test went wrong
exceptions.NameError: global name 't' is not defined
Note: It seems like 0.8.14 is deployed, but I don't see any v0.8.14 tag on
GitHub, the last one of the 0.8 branch is v0.8.12.
https://pypi.python.org/pypi/buildbot/0.8.14 wasn't tagged in Git?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30325>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com