Bug 128388

Summary: Make EWS retry one more time after cleaning the build directory
Product: WebKit Reporter: Adrian Perez de Castro (EWS) <aperez+ews>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: aperez, ap, commit-queue, glenn, jamesr, mrowe, ossy, rniwa, senorblanco
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch ap: review-, ap: commit-queue-

Adrian Perez de Castro (EWS)
Reported 2014-02-07 12:07:55 PST
Make EWS retry one more time after cleaning the build directory
Attachments
Patch (3.50 KB, patch)
2014-02-07 12:09 PST, Adrian Perez de Castro (EWS)
no flags
Patch (3.55 KB, patch)
2014-02-07 12:23 PST, Adrian Perez
no flags
Patch (3.45 KB, patch)
2014-02-10 07:13 PST, Adrian Perez
ap: review-
ap: commit-queue-
Adrian Perez de Castro (EWS)
Comment 1 2014-02-07 12:09:44 PST
Adrian Perez
Comment 2 2014-02-07 12:16:10 PST
This patch will help in cases where derived sources (or other files created in the build directory) are causing builds to fail and cleaning the build directory is needed. Usually in those cases we have been manually handling the situation, and making the EWS bots do that automatically would make them more resilient. This would help situations like the one mentioned in bug #128370.
Adrian Perez
Comment 3 2014-02-07 12:23:08 PST
Csaba Osztrogonác
Comment 4 2014-02-10 05:42:28 PST
I understand your intention to fix this annoying problem, but I'm not sure if it is the best fix for it. In my opinion it is too intrusive to remove the whole WebKitBuild ( including WebKitBuild/Dependencies too) always when the tree is red or an incremental build issue occur. I think a simple "tree redness" occur more often than the mentioned gtkdoc issue. And it seems it is a GTK only problem, why should we remove the WebKitBuild on every "tree redness" on every EWS? I would prefer fixing gtkdoc somehow. Until the proper fix I can accept a GTK only workaround like you proposed or a less intrusive workaround, for example removing only the WebKitBuild/.../DerivedSources directory,
Csaba Osztrogonác
Comment 5 2014-02-10 05:43:09 PST
Comment on attachment 223483 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=223483&action=review > Tools/Scripts/webkitpy/tool/bot/earlywarningsystemtask.py:64 > + subprocess.call(["rm", "-rf", self._build_directory], > + stdout=None, stderr=None) Just out of curiosity: Does it work on Windows too?
Adrian Perez
Comment 6 2014-02-10 07:13:53 PST
Adrian Perez
Comment 7 2014-02-10 07:15:35 PST
(In reply to comment #5) > (From update of attachment 223483 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=223483&action=review > > > Tools/Scripts/webkitpy/tool/bot/earlywarningsystemtask.py:64 > > + subprocess.call(["rm", "-rf", self._build_directory], > > + stdout=None, stderr=None) > > Just out of curiosity: Does it work on Windows too? I have uploaded a new version of the patch which uses shutil.rmtree() from the Python standard library — that certainly works in Windows, too.
Adrian Perez
Comment 8 2014-02-10 08:11:54 PST
(In reply to comment #4) > I understand your intention to fix this annoying problem, > but I'm not sure if it is the best fix for it. > > In my opinion it is too intrusive to remove the whole WebKitBuild ( > including WebKitBuild/Dependencies too) always when the tree is red > or an incremental build issue occur. I think a simple "tree redness" > occur more often than the mentioned gtkdoc issue. And it seems it is > a GTK only problem, why should we remove the WebKitBuild on every > "tree redness" on every EWS? Note that the “webkit-build-directory” script is used to obtain the build directory, so “WebKitBuild/Debug” or “WebKitBuild/Release” can be removed, but “WebKitBuild/Dependencies” is never removed. Also, provided that I would expect EWS bots to have “ccache” installed, so in reality applying the patch is not that intrusive. > I would prefer fixing gtkdoc somehow. Until the proper fix I can accept > a GTK only workaround like you proposed or a less intrusive workaround, > for example removing only the WebKitBuild/.../DerivedSources directory, Fixing the invocation of gtk-doc is something that should also be done. Nevertheless, there can be other cases in which the EWS bots could choke and need a clean build—wiping just the derived sources may not be enough.
Alexey Proskuryakov
Comment 9 2014-02-26 14:49:03 PST
I agree with Ossy, this looks like it will make EWS substantially slower for little benefit.
Note You need to log in before you can comment on or make changes to this bug.