Bug 201140 - [EWS] Do not append additional '(failure)' string at the end of custom failure message in EWS Buildbot
Summary: [EWS] Do not append additional '(failure)' string at the end of custom failur...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-26 08:47 PDT by Aakash Jain
Modified: 2019-08-26 10:49 PDT (History)
6 users (show)

See Also:


Attachments
Patch (3.12 KB, patch)
2019-08-26 09:03 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>