Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EWS] Support PRs when sending build failure emails (Follow-up fix) #144

Merged
merged 0 commits into from Feb 15, 2022

Conversation

JonWBedard
Copy link
Member

@JonWBedard JonWBedard commented Feb 15, 2022

15e21e6

[EWS] Support PRs when sending build failure emails (Follow-up fix)
https://bugs.webkit.org/show_bug.cgi?id=235926
<rdar://problem/88302122 >

Reviewed by Aakash Jain.

* Tools/CISupport/ews-build/steps.py:
(GitHub.email_for_owners): Return error string.
(AnalyzeCompileWebKitResults.send_email_for_new_build_failure): Log error
from email_from_owners to buildbot stdio.


Canonical link: https://commits.webkit.org/247296@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@289854 268f45cc-cd09-0410-ab3c-d52691b4dbfc

@JonWBedard JonWBedard self-assigned this Feb 15, 2022
@JonWBedard JonWBedard force-pushed the eng/github-ews-log-owner-errors branch from 5be02e0 to f2e33dc Compare February 15, 2022 19:42
Copy link
Member

@aj062 aj062 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ with comments.

@@ -2168,7 +2167,7 @@ def send_email_for_new_build_failure(self):
if pr_number and not self.should_send_email_for_pr(pr_number):
return
if not patch_id and not (pr_number and sha):
print('Unrecognized change type')
self._addToLog('Unrecognized change type')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we will ever hit it. Some other steps will check similar check fail much earlier. But that's ok print to UI here as well.


if not change_author:
print('Failed to determine change author for hash {} belonging to PR #{}'.format(sha, patch_id))
self._addToLog('Failed to determine change author for hash {} belonging to PR #{}'.format(sha, patch_id))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to mention something about contributors.json as well. So that people know what they can do to fix it. Might want to include github username in this message as well. Something like:
Unable to determine email address for [github_username] from contributors.json. Skipping sending email.

@JonWBedard JonWBedard closed this Feb 15, 2022
@JonWBedard JonWBedard force-pushed the eng/github-ews-log-owner-errors branch from f2e33dc to 15e21e6 Compare February 15, 2022 22:51
@JonWBedard JonWBedard merged commit 15e21e6 into WebKit:main Feb 15, 2022
@JonWBedard
Copy link
Member Author

@JonWBedard JonWBedard deleted the eng/github-ews-log-owner-errors branch February 15, 2022 22:52
@aj062
Copy link
Member

aj062 commented Feb 15, 2022

Landed https://commits.webkit.org/247296@main (15e21e6)!

Left a comment: 15e21e6#r66766126

@JonWBedard JonWBedard added Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases WebKit Nightly Build labels Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
2 participants