Title: [230796] trunk/Tools
Revision
230796
Author
[email protected]
Date
2018-04-18 22:38:53 -0700 (Wed, 18 Apr 2018)

Log 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.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (230795 => 230796)


--- trunk/Tools/ChangeLog	2018-04-19 04:19:50 UTC (rev 230795)
+++ trunk/Tools/ChangeLog	2018-04-19 05:38:53 UTC (rev 230796)
@@ -1,5 +1,15 @@
 2018-04-18  Ross Kirsling  <[email protected]>
 
+        [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.
+
+2018-04-18  Ross Kirsling  <[email protected]>
+
         Buildbots using Python zipfile should enable compression
         https://bugs.webkit.org/show_bug.cgi?id=184759
 

Modified: trunk/Tools/EWSTools/Start-Queue.ps1 (230795 => 230796)


--- trunk/Tools/EWSTools/Start-Queue.ps1	2018-04-19 04:19:50 UTC (rev 230795)
+++ trunk/Tools/EWSTools/Start-Queue.ps1	2018-04-19 05:38:53 UTC (rev 230796)
@@ -52,6 +52,19 @@
     git checkout origin/master -b master;
 }
 
+# Over time, git for Windows can fill up a user's temporary directory with files.
+function Clean-TempDirectory
+{
+    Write-Host ('Cleaning user temp directory ({0}).' -f $env:temp);
+    $countBefore = (Get-ChildItem -Recurse $env:temp | Measure-Object).Count;
+
+    Get-ChildItem $env:temp | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue;
+    $countAfter = (Get-ChildItem -Recurse $env:temp | Measure-Object).Count;
+
+    Write-Host ('{0} items successfully removed.' -f ($countBefore - $countAfter));
+    Write-Host ('{0} items could not be removed.' -f $countAfter);
+}
+
 # TODO: Switch to test-webkitpy when it works without cygwin
 function Clean-PythonC
 {
@@ -81,6 +94,7 @@
 while ($true) {
     Clean-WebKitBuild;
     Clean-PythonC;
+    Clean-TempDirectory;
     Clean-Git;
 
     perl ./Tools/Scripts/update-webkit;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to