You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buildbot: send email notifications to buildbot-status@ #74510
On the buildbot server, I see the following code in lib/python/buildbot/status/mail.py:
# GB: NEW: add test logfile excerptsif"test"int: # only if the test went wrongforloginbuild.getLogs():
if"test"inlog.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:
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'isnot 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?
Activity
vstinner commentedon May 9, 2017
I created a new mailing list to get email notifications when a buildbot starts failing (state change from green/success to red/failure).
It seems like the buildbot config already sends email, but I don't see them in the archives of the python-checkins list?
Config:
https://github.com/python/buildmaster-config/blob/master/master/master.cfg#L820-L827
python-checkins archives:
https://mail.python.org/pipermail/python-checkins/2017-May/thread.html
vstinner commentedon May 9, 2017
On the buildbot server, I see the following code in lib/python/buildbot/status/mail.py:
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 definedNote: 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?
vstinner commentedon May 9, 2017
It seems like the code is copied by rsync from a server called dinsdale:
https://github.com/python/psf-chef/blob/master/cookbooks/buildmaster.txt#L13
vstinner commentedon May 10, 2017
To rebuild the lib/python/buildbot/ directory, you can start from buildbot 0.8.14 and then apply attached buildbot-0.8.14py1.patch diff.
vstinner commentedon May 10, 2017
Ok, Zachary gave me a clue, the code comes from https://github.com/python/buildbot/
It seems like our server is outdated, since buildbot/status/mail.py now contains:
vstinner commentedon May 10, 2017
Zachary updated the buildbot Git repository to get the mail.py fix.
I changed the email address to buildbot-status@python.org:
python/buildmaster-config#5
Let's see how things are going.
vstinner commentedon May 17, 2017
Email notifications is now working properly, I close the issue.