Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-3238

Disable cleanmgr.exe from Windows

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: dev, 5.12, 5.13, 5.14
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows
    • Technical Risk:
      Normal

      Description

      We need to disable cleanmgr from Windows. It seems that it will clean our provisioning scripts from the vm.

       

      Here's the provisioning log from private instance:

      http://10.212.0.61:8083/coin/api/results/provisioning/qtci-windows-10-x86_64-14-1bbb9d/provision_1569500349/log.txt.gz

      Running "C:\Windows\Temp\Git-2.13.0-64-bit.exe" with arguments "/SILENT /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh""
      Adding SSH and SCP to environment variables for RTA
      Setting environment variable "SSH" to "C:\Program Files\Git\usr\bin\ssh.exe"
      Setting environment variable "SCP" to "C:\Program Files\Git\usr\bin\scp.exe"
      agent:2019/09/26 12:31:33 pkg.go:32: Success running powershell.exe -ExecutionPolicy RemoteSigned -NonInteractive -File C:\Users\qt\AppData\Local\Temp\coinpowershellwrapper.ps1
      agent:2019/09/26 12:31:33 build.go:451: Running provisioning powershell script: "C:\Users\qt\AppData\Local\Temp\provisioning-750779535\coin\provisioning\qtci-windows-10-x86_64\08-install-jdk.ps1"
      Running C:\Users\qt\AppData\Local\Temp\provisioning-750779535\coin\provisioning\qtci-windows-10-x86_64\08-install-jdk.ps1
      Caught System.Management.Automation.CommandNotFoundException
      The term 'C:\Users\qt\AppData\Local\Temp\provisioning-750779535\coin\provisioning\qtci-windows-10-x86_64\08-install-jdk.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
      agent:2019/09/26 12:31:36 pkg.go:27: Error running: powershell.exe -ExecutionPolicy RemoteSigned -NonInteractive -File C:\Users\qt\AppData\Local\Temp\coinpowershellwrapper.ps1: %!s(MISSING)
      agent:2019/09/26 12:31:36 pkg.go:28: You have 3 hours debugging time! Starting: 2019-09-26 12:31:36.0282099 +0000 GMT m=+649.337311401

       

      And here's some log (C:\Windows\Logs\DISM\dism.log) from Windows 10 provisioning image :

      Client Process:C:\Windows\system32\cleanmgr.exe
      2019-09-26 12:31:12, Info pszWellKnownDirs:$Windows.~BT
      2019-09-26 12:31:12, Info bCleanWindowsOld:0
      2019-09-26 12:31:12, Info bRemoveUninstall:0
      2019-09-26 12:31:12, Info bShowOnlyInUpgrade:0
      2019-09-26 12:31:12, Info bShowOnlyInESDInstall:0
      2019-09-26 12:31:12, Info bSilentCleanup:1
      2019-09-26 12:31:12, Info bCleanupTemporaryInstallationFiles:1
      2019-09-26 12:31:12, Info CSetupFilesCleanup::GetSpaceUsed - Calculating the space for session: Temporary Setup Files
      2019-09-26 12:31:12, Info IsSetupRunning - Setup Running: 0
      2019-09-26 12:31:12, Info IsSetupInProgress - SystemSetupInProgress Reg value: 0
      2019-09-26 12:31:12, Info IsSetupInProgress - DeploymentInProgress Key present: No
      2019-09-26 12:31:12, Info IsProcessElevated - bResult: 1
      2019-09-26 12:31:12, Info CSetupFilesCleanup::CleanVolume - Iterating on: C:\$Windows.~BT
      2019-09-26 12:31:12, Error EnumeratePathEx: FindFirstFile failed for [C:\$Windows.~BT\*]; GLE = 0x3[gle=0x00000003]
      2019-09-26 12:31:12, Error EnumeratePathEx: FindFirstFile failed for [C:\$Windows.~BT\*]; GLE = 0x3[gle=0x00000003]
      2019-09-26 12:31:12, Info CSetupFilesCleanup::CleanVolume - Return status: 80070003
      2019-09-26 12:31:12, Info CSetupFilesCleanup::GetSpaceUsed - Space used : 0
      2019-09-26 12:31:12, Info CSetupFilesCleanup::GetSpaceUsed - Block status: 0
      2019-09-26 12:31:12, Info CSetupFilesCleanup::Initialize - No files to delete : Temporary Setup Files
      2019-09-26 12:31:12, Info Initialization status:1
      2019-09-26 12:31:12, Info CSetupFilesCleanup::Deactivate - session deactivated for Plugin:Tempora

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                hehalmet Heikki Halmet
                Reporter:
                hehalmet Heikki Halmet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes