Bug 40712
Summary: | webkit-patch failure-reason crashes at r61139 when using git (because that commit was on a branch) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | abarth, eric, ojan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | All |
Adam Roben (:aroben)
webkit-patch failure-reason crashes at r61139 when using git. Here's the exception you get:
Traceback (most recent call last):
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkit-patch", line 64, in <module>
main()
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkit-patch", line 59, in main
WebKitPatch(__file__).main()
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/multicommandtool.py", line 302, in main
result = command.check_arguments_and_execute(options, args, self)
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/multicommandtool.py", line 113, in check_arguments_and_execute
return self.execute(options, args, tool) or 0
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/queries.py", line 274, in execute
return self._explain_failures_for_builder(builder, start_revision=int(start_revision))
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/queries.py", line 247, in _explain_failures_for_builder
self._print_blame_information_for_transition(build, last_build_with_results, fixed_results)
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/queries.py", line 206, in _print_blame_information_for_transition
commit_info = self.tool.checkout().commit_info_for_revision(revision)
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/common/checkout/api.py", line 63, in commit_info_for_revision
committer_email = self._scm.committer_email_for_revision(revision)
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/common/checkout/scm.py", line 573, in committer_email_for_revision
git_commit = self.git_commit_from_svn_revision(revision)
File "/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/common/checkout/scm.py", line 560, in git_commit_from_svn_revision
raise ScriptError(message='Failed to find git commit for revision %s, your checkout likely needs an update.' % revision)
webkitpy.common.system.executive.ScriptError: Failed to find git commit for revision 61139, your checkout likely needs an update.
The problem is that r61139 was on a branch that I don't have included in my git repository. Maybe we should just skip over revisions like these?
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
I assume you ran it bare? I think failure-reason will take a starting revision argument, but then again maybe that was in a patch I never landed.
Adam Roben (:aroben)
(In reply to comment #1)
> I assume you ran it bare? I think failure-reason will take a starting revision argument, but then again maybe that was in a patch I never landed.
Yes, I did run it bare. And yes, it does take a starting revision argument which you could use to work around this bug.
Eric Seidel (no email)
failure-reason could be made a lot more user friendly and smarter, and this is definitely a good bug to have around. I don't expect getting to fixing it any time soon though, but thank you for filing. :) If you're using failure-reason often, I'm happy to review patches to make it better! :)
Adam Roben (:aroben)
*** This bug has been marked as a duplicate of bug 46866 ***