Bug 213609 - [ews] Improve handling of invalid changelog
Summary: [ews] Improve handling of invalid changelog
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-25 09:21 PDT by Aakash Jain
Modified: 2020-07-16 08:07 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.31 KB, patch)
2020-06-25 09:27 PDT, Aakash Jain
jbedard: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2020-06-25 09:21:06 PDT
[ews] Improve handling of invalid changelog.

In https://ews-build.webkit.org/#/builders/28/builds/2949 7  validate-changelog-and-reviewer step failed with below exception because ChangeLog was invalid (started with :wq). Such issue solved be handled in a better manner, and a user readable error message should be displayed.

Traceback (most recent call last):
  File "Tools/Scripts/webkit-patch", line 80, in <module>
    main()
  File "Tools/Scripts/webkit-patch", line 75, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File "/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File "/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File "/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py", line 55, in execute
    self._sequence.run_and_handle_errors(tool, options, state)
  File "/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 73, in run_and_handle_errors
    self._run(tool, options, state)
  File "/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 67, in _run
    step(tool, options).run(state)
  File "/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/steps/validatereviewer.py", line 53, in run
    if changelog_entry.has_valid_reviewer():
AttributeError: 'NoneType' object has no attribute 'has_valid_reviewer'
Comment 1 Aakash Jain 2020-06-25 09:27:30 PDT
Created attachment 402741 [details]
Patch
Comment 2 Aakash Jain 2020-06-25 09:28:11 PDT
> Patch
Speculative fix.
Comment 3 Aakash Jain 2020-06-25 09:47:31 PDT
Committed r263513: <https://trac.webkit.org/changeset/263513>
Comment 4 Aakash Jain 2020-06-25 10:10:30 PDT
> Committed r263513: <https://trac.webkit.org/changeset/263513>
This change worked as expected, e.g.: https://bugs.webkit.org/show_bug.cgi?id=213602#c3
Comment 5 Radar WebKit Bug Importer 2020-06-25 17:11:31 PDT
<rdar://problem/64781527>