Changeset 230796 in webkit


Ignore:
Timestamp:
Apr 18, 2018 10:38:53 PM (6 years ago)
Author:
Ross Kirsling
Message:

[WinCairo][EWS] Build bot should clean user temp directory each time.
https://bugs.webkit.org/show_bug.cgi?id=184761

Reviewed by Lucas Forschler.

  • EWSTools/Start-Queue.ps1:

Clean user's temp directory before each build, so that Windows git doesn't fill it up over time.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r230790 r230796  
     12018-04-18  Ross Kirsling  <ross.kirsling@sony.com>
     2
     3        [WinCairo][EWS] Build bot should clean user temp directory each time.
     4        https://bugs.webkit.org/show_bug.cgi?id=184761
     5
     6        Reviewed by Lucas Forschler.
     7
     8        * EWSTools/Start-Queue.ps1:
     9        Clean user's temp directory before each build, so that Windows git doesn't fill it up over time.
     10
    1112018-04-18  Ross Kirsling  <ross.kirsling@sony.com>
    212
  • trunk/Tools/EWSTools/Start-Queue.ps1

    r226232 r230796  
    5353}
    5454
     55# Over time, git for Windows can fill up a user's temporary directory with files.
     56function Clean-TempDirectory
     57{
     58    Write-Host ('Cleaning user temp directory ({0}).' -f $env:temp);
     59    $countBefore = (Get-ChildItem -Recurse $env:temp | Measure-Object).Count;
     60
     61    Get-ChildItem $env:temp | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue;
     62    $countAfter = (Get-ChildItem -Recurse $env:temp | Measure-Object).Count;
     63
     64    Write-Host ('{0} items successfully removed.' -f ($countBefore - $countAfter));
     65    Write-Host ('{0} items could not be removed.' -f $countAfter);
     66}
     67
    5568# TODO: Switch to test-webkitpy when it works without cygwin
    5669function Clean-PythonC
     
    8295    Clean-WebKitBuild;
    8396    Clean-PythonC;
     97    Clean-TempDirectory;
    8498    Clean-Git;
    8599
Note: See TracChangeset for help on using the changeset viewer.