Bug 137784 - EWS incorrectly decides that patch fails to apply when Bugzilla gives an error
Summary: EWS incorrectly decides that patch fails to apply when Bugzilla gives an error
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-16 11:20 PDT by Alexey Proskuryakov
Modified: 2014-10-17 11:06 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2014-10-16 11:20:07 PDT
In bug 137779, EWS failed to test a patch because Bugzilla was giving a 500 error. But the bot decided that the patch actually failed to apply:

Error: efl-wk2-ews unable to apply patch. 14 minutes ago
Patch does not apply [results]


Processing patch 239950 from bug 137779.
Traceback (most recent call last):
  File "/home/buildbot/WebKit/Tools/Scripts/webkit-patch", line 84, in <module>
    main()
  File "/home/buildbot/WebKit/Tools/Scripts/webkit-patch", line 79, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/commands/download.py", line 177, in execute
    self._process_patch(patch, options, args, tool)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/commands/download.py", line 203, in _process_patch
    self._main_sequence.run_and_handle_errors(tool, options, state)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 73, in run_and_handle_errors
    self._run(tool, options, state)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 67, in _run
    step(tool, options).run(state)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/steps/applypatchwithlocalcommit.py", line 40, in run
    ApplyPatch.run(self, state)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/tool/steps/applypatch.py", line 46, in run
    self._tool.checkout().apply_patch(state["patch"])
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/checkout/checkout.py", line 163, in apply_patch
    self._executive.run_command(args, input=patch.contents(), cwd=self._scm.checkout_root)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/attachment.py", line 97, in contents
    return self._bug._bugzilla.fetch_attachment_contents(self.id())
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 490, in fetch_attachment_contents
    return self.browser.open(attachment_url).read()
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_mechanize.py", line 203, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/buildbot/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_mechanize.py", line 255, in _mech_open
    raise response
webkitpy.thirdparty.autoinstalled.mechanize._response.httperror_seek_wrapper: HTTP Error 500: Internal Server Error
Comment 1 Alexey Proskuryakov 2014-10-17 11:06:17 PDT
This should be an easy fix, but difficult to test when Bugzilla is up and running.