if you use “webkit-patch upload” to upload a patch, and the patch is over 2000 KB in size, it pretends to succeed but actually fails to upload the patch to the webkit bug. (If I try to attach the patch via the UI, I get this error message: “The file you are trying to attach is 2651 kilobytes (KB) in size. Patches cannot be more than 2000 KB in size. Try breaking your patch into several pieces.”
We should change "webkit-patch upload" to report failure in this case, rather than pretending to have succeeded.
Assigning to Eric, for now, since he made the most recent change I can find in this area:
2011-05-31 Eric Seidel <firstname.lastname@example.org>
Reviewed by David Kilzer.
webkitpy should create zips with zip -9
Dave Kilzer suggested we add this to make zips uploaded to bugzilla smaller.
Very related to bug 31760.
Created attachment 116044 [details]
I see, it's only for patches. I'll try again.
Yup, only for patches.
Created attachment 123175 [details]
Comment on attachment 123175 [details]
Just needs testing. :) OTherwise looks OK.
I take it you are asking for unittests to be added?
I'm not particularly interested in doing that. (I did do manual tests and it seemed to work fine.) But I keep bumping into this bug, it's really annoying, and I wanted to save other developers the annoyance of the silent failures documented here. But there's only so much time I have to devote to this.
I think this change improves the code. If someone wants to take on the task of adding unittests that's fine, but I would encourage you to accept the improvement anyway.
Thanks for the patch, but we follow the general guidelines of the WebKit project, which is not to accept patches that change behavior without tests. Hopefully you'll either find time to write some tests or someone else will build upon your work.
*** Bug 35208 has been marked as a duplicate of this bug. ***
I have an even simpler fix for the problem, how about we always click the 'big file' checkbox?
diff --git a/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py b/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py
index a32e86e..4529bf0 100644
@@ -530,6 +530,7 @@ class Bugzilla(object):
self.browser['description'] = description
self.browser['ispatch'] = ("1",)
+ self.browser['bigfile'] = ("bigfile",)
This way I could upload my over 4MB patches at bug 77736.
I don't know what the big-file checkbox does, or if it's a good idea to ever (let alone always) press it.
Ideally we'd detect that the patch was over 2MB (but less than 5MB) and automatically check the "big patch" checkbox.