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

Windows provisioning scripts fail, but don't return proper exit code

    XMLWordPrintable

Details

    • fd8815786034a09c4d3374bc1334028cbc55aac4

    Description

      As a result of this, even though provisioning fails, it says successful and continues happily.

      powershell.exe -ExecutionPolicy RemoteSigned -NonInteractive -File C:\Users\qt\AppData\Local\Temp\provisioning-473545131\coin\provisioning\qtci-windows-8-x86\libusb.ps1: 
      coin:2017/03/05 10:57:24.593752 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: Stdout: Extracting 'C:\users\qt\downloads\libusb-1.0.21.7z' to 'C:\Utils\libusb-1.0'... 
      coin:2017/03/05 10:57:24.593759 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 
      coin:2017/03/05 10:57:24.593765 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 
      coin:2017/03/05 10:57:24.593770 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 
      coin:2017/03/05 10:57:24.593775 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: Processing archive: C:\users\qt\downloads\libusb-1.0.21.7z 
      coin:2017/03/05 10:57:24.593779 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 
      coin:2017/03/05 10:57:24.593784 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: Error: Can not open file as archive 
      coin:2017/03/05 10:57:24.593789 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 
      coin:2017/03/05 10:57:24.593794 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 
      coin:2017/03/05 10:57:24.593798 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: Stderr: Verify-Checksum : Checksum verification failed, got: 
      coin:2017/03/05 10:57:24.593811 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: '1B5B0EE87CD3C931D80D6C6A6A8FEEF60D194C55' expected: 
      coin:2017/03/05 10:57:24.593816 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: '37c8884a0ddca97d492b8ef3e08970ae3ba20653' 
      coin:2017/03/05 10:57:24.593822 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: At C:\Users\qt\AppData\Local\Temp\provisioning-473545131\coin\provisioning\comm 
      coin:2017/03/05 10:57:24.593828 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: on\libusb.ps1:42 char:1 
      coin:2017/03/05 10:57:24.593833 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: + Verify-Checksum $archive "37c8884a0ddca97d492b8ef3e08970ae3ba20653" 
      coin:2017/03/05 10:57:24.593838 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
      coin:2017/03/05 10:57:24.593844 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep 
      coin:2017/03/05 10:57:24.593849 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: tion 
      coin:2017/03/05 10:57:24.593853 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio 
      coin:2017/03/05 10:57:24.593858 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: n,Verify-Checksum 
      coin:2017/03/05 10:57:24.593862 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 
      coin:2017/03/05 10:57:24.731523 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: 2017/03/05 10:57:23.803157 pkg.go:39: Success running cmd /c shutdown /p /f: 
      coin:2017/03/05 10:57:24.731536 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: Stdout: 
      coin:2017/03/05 10:57:24.731541 provision.go:141: qtci-windows-8-x86-933523-provisioning-tmp: Stderr: 
      coin:2017/03/05 10:57:39.896591 provision.go:233: Provisioning for qtci-windows-8-x86-933523 complete.
      coin:2017/03/05 10:57:39.908960 provision.go:353: All virtual machines are provisioned!
      

      Attachments

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

        Activity

          People

            frederik Frederik Gladhorn
            tosaraja Tony Sarajärvi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes