EarlyWarningSystemTask run() method has return value which are slightly non-intuitive. False does not indicate that patch failed EWS, it indicates that EWS is not sure. Patch failure is indicated by an exception. We should document these values in order to avoid confusion. Having this comment could have prevented https://bugs.webkit.org/show_bug.cgi?id=180302
Created attachment 328202 [details] Proposed patch
Comment on attachment 328202 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=328202&action=review > Tools/Scripts/webkitpy/tool/bot/earlywarningsystemtask.py:61 > + """ Could named constants help make this clearer And let us simplify this comment to just explain that an exception indicates patch failure (e.g. RETRY = False, PASS => True)? If you have your heart set on this comment then “would be” => “will be”. Also does the formatting of this docstring match the formatting of other docstrings that explain return values and/or exceptions?
Committed r225500: <https://trac.webkit.org/changeset/225500>
<rdar://problem/35842175>