Bug 201140

Summary: [EWS] Do not append additional '(failure)' string at the end of custom failure message in EWS Buildbot
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, commit-queue, ews-watchlist, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Aakash Jain 2019-08-26 08:47:37 PDT
In various build-steps in EWS, there is a custom failure message (e.g.: 2 style errors), however an additional (failure) is appended at the end (making it: 2 style errors (failure)). The additional (failure) string in unnecessary and makes the text less readable. We should remove this additional string.

Other example:
3 api tests failed or timed out (failure)
Comment 1 Aakash Jain 2019-08-26 09:03:14 PDT
Created attachment 377248 [details]
Patch
Comment 2 EWS Watchlist 2019-08-26 09:05:30 PDT Comment hidden (obsolete)
Comment 3 Aakash Jain 2019-08-26 09:06:45 PDT
Sample run:

Without this patch: https://ews-build.webkit-uat.org/#/builders/5/builds/4968
With this patch:    https://ews-build.webkit-uat.org/#/builders/5/builds/4969
Comment 4 Jonathan Bedard 2019-08-26 09:23:34 PDT
Comment on attachment 377248 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=377248&action=review

> Tools/BuildSlaveSupport/ews-build/steps.py:509
> +        return {u'step': unicode(status)}

What prompted this change? Do we have an example of status being something other than ASCII?
Comment 5 Aakash Jain 2019-08-26 09:40:28 PDT
Comment on attachment 377248 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=377248&action=review

>> Tools/BuildSlaveSupport/ews-build/steps.py:509
>> +        return {u'step': unicode(status)}
> 
> What prompted this change? Do we have an example of status being something other than ASCII?

The above code refactoring prompted this. Earlier the 'status' variable was always unicode. After this change, in case of self.failedTestCount, 'status' is not unicode, so we need to convert it to unicode. Buildbot expects the returned status to be unicode (and throws an exception if it's not a unicode).
Comment 6 WebKit Commit Bot 2019-08-26 10:48:18 PDT
Comment on attachment 377248 [details]
Patch

Clearing flags on attachment: 377248

Committed r249104: <https://trac.webkit.org/changeset/249104>
Comment 7 WebKit Commit Bot 2019-08-26 10:48:19 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-08-26 10:49:19 PDT
<rdar://problem/54713089>