Skip to content

Conversation

@pjcollins
Copy link
Member

Android workload pack conversion has been failing intermittently:

Generating package project: 'obj\Debug\src\msiPackage\x86\Microsoft.Android.Sdk.Windows\msi.csproj'
convert.proj(72,5): error : One or more errors occurred.
convert.proj(72,5): error : Failed to generate MSIs for workload packs.


C:\Users\AzDevOps\.nuget\packages\wix\3.14.0-dotnet\tools\heat.exe dir obj\Debug\pkg\Microsoft.Android.Templates.31.0.100-rc.2.14 -cg CG_PackageContent -var var.SourceDir -ag -srd -sreg -dr InstallDir -o obj\Debug\src\msi\Microsoft.Android.Templates\31.0.100-rc.2.14\x64\PackageContent.wxs
##[error]light.exe(0,0): Error LGHT0001: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
light.exe : error LGHT0001: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) [C:\a\1\s\nuget-msi-convert\convert-v2\convert.proj]

  Exception Type: System.IO.FileNotFoundException

  Stack Trace:
     at Microsoft.Tools.WindowsInstallerXml.Cab.Interop.NativeMethods.CreateCabFinish(IntPtr contextHandle, IntPtr newCabNamesCallBackAddress)
     at Microsoft.Tools.WindowsInstallerXml.Cab.WixCreateCab.Complete(IntPtr newCabNamesCallBackAddress)
     at Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.CreateCabinet(CabinetWorkItem cabinetWorkItem)
     at Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.ProcessWorkItems()

I've added a lock to attempt to synchronize some .nupkg file access that
seemed to be problematic when executing asynchronously.

Android workload pack conversion has been failing intermittently:

    Generating package project: 'obj\Debug\src\msiPackage\x86\Microsoft.Android.Sdk.Windows\msi.csproj'
    convert.proj(72,5): error : One or more errors occurred.
    convert.proj(72,5): error : Failed to generate MSIs for workload packs.

    C:\Users\AzDevOps\.nuget\packages\wix\3.14.0-dotnet\tools\heat.exe dir obj\Debug\pkg\Microsoft.Android.Templates.31.0.100-rc.2.14 -cg CG_PackageContent -var var.SourceDir -ag -srd -sreg -dr InstallDir -o obj\Debug\src\msi\Microsoft.Android.Templates\31.0.100-rc.2.14\x64\PackageContent.wxs
    ##[error]light.exe(0,0): Error LGHT0001: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
    light.exe : error LGHT0001: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) [C:\a\1\s\nuget-msi-convert\convert-v2\convert.proj]

      Exception Type: System.IO.FileNotFoundException

      Stack Trace:
         at Microsoft.Tools.WindowsInstallerXml.Cab.Interop.NativeMethods.CreateCabFinish(IntPtr contextHandle, IntPtr newCabNamesCallBackAddress)
         at Microsoft.Tools.WindowsInstallerXml.Cab.WixCreateCab.Complete(IntPtr newCabNamesCallBackAddress)
         at Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.CreateCabinet(CabinetWorkItem cabinetWorkItem)
         at Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.ProcessWorkItems()

I've added a lock to attempt to synchronize some .nupkg file access that
seemed to be problematic when executing asynchronously.
@pjcollins pjcollins requested a review from joeloff August 30, 2021 23:28
Copy link
Member

@joeloff joeloff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should make a similar change in GenerateManifestMsi

@pjcollins
Copy link
Member Author

It looks like <GenerateManifestMsi/> wasn't parallelized as part of c17de7f, so that shouldn't be a concern.

@joeloff
Copy link
Member

joeloff commented Aug 31, 2021

Oh, yes, because we build like 2 MSIS with that, what was I thinking.

@pjcollins pjcollins merged commit 7168d63 into dotnet:main Sep 2, 2021
@pjcollins pjcollins deleted the workload-optional-parallel branch September 2, 2021 13:51
pjcollins added a commit to dotnet/android that referenced this pull request Sep 2, 2021
Context: dotnet/arcade#7813

We've been often seeing .NET 6 msi generation failing after updating to
a version of arcade that added parallelization to the msi creation.  The
latest version of arcade should hopefully fix these issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants