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
[Merge-Queue] Remove custom summaries when skipped #235
[Merge-Queue] Remove custom summaries when skipped #235
Conversation
Tools/CISupport/ews-build/steps.py
Outdated
@@ -4638,7 +4638,7 @@ def start(self, BufferLogObserverClass=logobserver.BufferLogObserver): | |||
|
|||
def getResultSummary(self): | |||
if self.results == SKIPPED: | |||
return {'step': 'Patches are always squashed'} | |||
return super(ValidateSquashed, self).getResultSummary() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the default case.
We should delete if condition for SKIPPED case, and change the current default return Can only land squashed branches
to an explicit self.results value (e.g.: if self.results == ERROR
).
There are many self.results values which are not covered by current default case (e.g.: WARNINGS, EXCEPTION), complete list here: https://github.com/buildbot/buildbot/blob/master/master/buildbot/process/results.py#L17
fddb0ac
to
3a387ba
Compare
Tools/CISupport/ews-build/steps.py
Outdated
if self.results == SKIPPED: | ||
return {'step': 'Patches are always squashed'} | ||
if self.results == FAILURE: | ||
return {'step': 'Can only land squashed branches'} | ||
elif self.results == SUCCESS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this elif can be if (since previous if statement has a return)
Tools/CISupport/ews-build/steps.py
Outdated
if self.results == SKIPPED: | ||
return {'step': 'No reviewer defined' if self.getProperty('github.number') else 'Patches have no commit message'} | ||
if self.results == FAILURE: | ||
return {'step': 'Failed to apply reviewers'} | ||
elif self.results == SUCCESS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Tools/CISupport/ews-build/steps.py
Outdated
if self.results == SKIPPED: | ||
return {'step': 'No reviewer defined' if self.getProperty('github.number') else 'Patches are edited upon application'} | ||
if self.results == FAILURE: | ||
return {'step': 'Failed to add reviewers to ChangeLogs'} | ||
elif self.results == SUCCESS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
3a387ba
to
3d55663
Compare
https://bugs.webkit.org/show_bug.cgi?id=238633 <rdar://problem/91125435> Patch by Jonathan Bedard <jbedard@apple.com> on 2022-04-04 Reviewed by Aakash Jain. * Tools/CISupport/ews-build/steps.py: (ValidateSquashed.getResultSummary): (AddReviewerToCommitMessage.getResultSummary): (AddReviewerToChangeLog.getResultSummary): (ValidateCommitMessage.getResultSummary): (Canonicalize.getResultSummary): (PushPullRequestBranch.getResultSummary): (UpdatePullRequest.getResultSummary): * Tools/CISupport/ews-build/steps_unittest.py:
Committed r292291 (?): https://commits.webkit.org/r292291 All reviewed patches have been landed. Closing bug and clearing flags on attachment . |
3d55663
to
afb86c2
Compare
ddae38d