Bug 106131

Summary: Add a script to delete stale zero-byte build files
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: New BugsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, lforschler, simon.fraser, thakis, thorton, wsiegrist
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Updated per comments tony: review+

Ryosuke Niwa
Reported 2013-01-04 13:36:47 PST
Add a script to delete stale zero-byte bulid files
Attachments
Patch (6.03 KB, patch)
2013-01-04 13:41 PST, Ryosuke Niwa
no flags
Updated per comments (6.03 KB, patch)
2013-01-04 15:20 PST, Ryosuke Niwa
tony: review+
Ryosuke Niwa
Comment 1 2013-01-04 13:41:29 PST
Eric Seidel (no email)
Comment 2 2013-01-04 14:21:09 PST
Which platform is this for?
Nico Weber
Comment 3 2013-01-04 14:31:27 PST
Comment on attachment 181369 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=181369&action=review Looks fine to me, but I'm not a reviewer. > Tools/BuildSlaveSupport/delete-stale-build-files:47 > + if genericPlatform != 'mac': eseidel: This suggestes it's for the apple port > Tools/BuildSlaveSupport/delete-stale-build-files:54 > + for root, dirs, files in os.walk(directory): nit: Since you don't use dirs, you can do `for root, _, files in…` instead. > Tools/BuildSlaveSupport/delete-stale-build-files:71 > + exit_code += 1 I'd just do `= 1`
Ryosuke Niwa
Comment 4 2013-01-04 14:45:32 PST
(In reply to comment #2) > Which platform is this for? We’ll only do that for Mac port where we see zero-byte build files every now and then but we can certainly support other kinds of stale build files in the future (I think MSVC generates quite few of them).
Tony Chang
Comment 5 2013-01-04 15:03:25 PST
Comment on attachment 181369 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=181369&action=review > Tools/ChangeLog:3 > + Add a script to delete stale zero-byte bulid files Typo: bulid -> build. > Tools/BuildSlaveSupport/delete-stale-build-files:60 > + if ext in ['.dep', '.timestamp', '.txt', '.html', '.js', '.generated'] or os.path.getsize(full_path): Nit: Use a tuple instead of a list. > Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:146 > + description = ["delete stale build files"] Nit: "deleting stale build files" since this prints while the step is running.
Ryosuke Niwa
Comment 6 2013-01-04 15:20:42 PST
Created attachment 181391 [details] Updated per comments
Tony Chang
Comment 7 2013-01-04 15:32:36 PST
Comment on attachment 181391 [details] Updated per comments View in context: https://bugs.webkit.org/attachment.cgi?id=181391&action=review Seems fine as long as you're not seeing spurious rebuilds after running this. > Tools/ChangeLog:8 > + Reviewed by NOBODY (OOPS!). > + > + * BuildSlaveSupport/build.webkit.org-config/master.cfg: Nit: I would maybe mention that this is Apple Mac only for now.
Ryosuke Niwa
Comment 8 2013-01-05 00:21:19 PST
Note You need to log in before you can comment on or make changes to this bug.