WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
184761
[WinCairo][EWS] Build bot should clean user temp directory each time.
https://bugs.webkit.org/show_bug.cgi?id=184761
Summary
[WinCairo][EWS] Build bot should clean user temp directory each time.
Ross Kirsling
Reported
2018-04-18 16:25:31 PDT
[WinCairo][EWS] Build bot should clean user temp directory each time.
Attachments
Patch
(1.96 KB, patch)
2018-04-18 16:26 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Patch
(2.07 KB, patch)
2018-04-18 17:40 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Patch
(1.88 KB, patch)
2018-04-18 21:21 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ross Kirsling
Comment 1
2018-04-18 16:26:15 PDT
Created
attachment 338276
[details]
Patch
Ross Kirsling
Comment 2
2018-04-18 17:40:03 PDT
Created
attachment 338288
[details]
Patch
Ross Kirsling
Comment 3
2018-04-18 17:47:34 PDT
***
Bug 182371
has been marked as a duplicate of this bug. ***
Ross Kirsling
Comment 4
2018-04-18 17:47:45 PDT
***
Bug 182758
has been marked as a duplicate of this bug. ***
Lucas Forschler
Comment 5
2018-04-18 18:54:09 PDT
Comment on
attachment 338288
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=338288&action=review
I'm not a powershell expert, but this otherwise seems fine.
> Tools/EWSTools/Start-Queue.ps1:58 > + Write-Host 'Cleaning user temp directory';
I would output the temp folder here, just to make it clear what directory you are working on.
> Tools/EWSTools/Start-Queue.ps1:67 > + $filesRemoved++;
if $file is a directory, it looks like you'll attempt to remove it recursively, but only increment $filesremoved once... so this count may not be accurate. Otherwise, I'm not sure what the purpose of the -Recurse is here on the Remove-Item line.
> Tools/EWSTools/Start-Queue.ps1:68 > + Write-Host ('Removed file {0}' -f $file.FullName)
This is going to be pretty verbose... do you actually want this list? Or was this just for debugging?
Ross Kirsling
Comment 6
2018-04-18 21:18:48 PDT
(In reply to Lucas Forschler from
comment #5
)
> Comment on
attachment 338288
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=338288&action=review
> > I'm not a powershell expert, but this otherwise seems fine. > > > Tools/EWSTools/Start-Queue.ps1:58 > > + Write-Host 'Cleaning user temp directory'; > > I would output the temp folder here, just to make it clear what directory > you are working on.
Good idea.
> > Tools/EWSTools/Start-Queue.ps1:67 > > + $filesRemoved++; > > if $file is a directory, it looks like you'll attempt to remove it > recursively, but only increment $filesremoved once... so this count may not > be accurate. Otherwise, I'm not sure what the purpose of the -Recurse is > here on the Remove-Item line. > > > Tools/EWSTools/Start-Queue.ps1:68 > > + Write-Host ('Removed file {0}' -f $file.FullName) > > This is going to be pretty verbose... do you actually want this list? Or was > this just for debugging?
This was mostly just a copy-paste-and-tweak of Don's function from here:
https://github.com/WebKitForWindows/powershell-webkit-dev/blob/master/WebKitDev/Functions/Remove-TempFiles.ps1
But I agree that this could be simplified a bit.
Ross Kirsling
Comment 7
2018-04-18 21:21:38 PDT
Created
attachment 338305
[details]
Patch
WebKit Commit Bot
Comment 8
2018-04-18 22:38:58 PDT
Comment on
attachment 338305
[details]
Patch Clearing flags on attachment: 338305 Committed
r230796
: <
https://trac.webkit.org/changeset/230796
>
WebKit Commit Bot
Comment 9
2018-04-18 22:39:00 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2018-04-18 22:39:21 PDT
<
rdar://problem/39554382
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug