Closed waldo1001 closed 3 years ago
Similar warning near the end of the docker container create
Synchronizing Tests-Graph
Installing Tests-Graph
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Integration.app
Synchronizing Tests-Integration
Installing Tests-Integration
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Invoicing.app
Synchronizing Tests-Invoicing
Installing Tests-Invoicing
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Job.app
Synchronizing Tests-Job
Installing Tests-Job
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Local.app
Synchronizing Tests-Local
Installing Tests-Local
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Misc.app
Synchronizing Tests-Misc
Installing Tests-Misc
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Permissions.app
Synchronizing Tests-Permissions
Installing Tests-Permissions
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Physical Inventory.app
Synchronizing Tests-Physical Inventory
Installing Tests-Physical Inventory
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Prepayment.app
Synchronizing Tests-Prepayment
Installing Tests-Prepayment
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Rapid Start.app
Synchronizing Tests-Rapid Start
Installing Tests-Rapid Start
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Report.app
Synchronizing Tests-Report
Installing Tests-Report
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Resource.app
Synchronizing Tests-Resource
Installing Tests-Resource
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-Reverse.app
Synchronizing Tests-Reverse
Installing Tests-Reverse
Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-SCM.app
One or more errors occurred.
Exception of type 'System.OutOfMemoryException' was thrown.
Exception of type 'System.OutOfMemoryException' was thrown.
##[error]The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; \Run\start.ps1 -installOnly -includeTestToolkit' returned a non-zero code: 3221225477
Finishing: W1 / Current Build
@fvet, do you have a tip on how to repro this scenario?
No idea how to repro, we got it randomly. In the meanwhile, I've stopped installing all test apps on my initial container creation and haven't got the exception any longer. It only appears when I tried to include all test apps.
You can now set up memory on the create-step. We already put the default value to 8Gb.
- task: ALOpsDockerCreate@1
displayName: 'ALOps Docker Create'
inputs:
artifactspecification: Specific # Set Artifact resolve method. $(artifactspecification)
artifactversion: # BC/NAV Version, eg: 9, 10.4, NAV2016, 16.4.24524. $(artifactversion)
artifacttype: OnPrem # Set Artifact Type. $(artifacttype)
artifactcountry: # The Country for the Artifact. $(artifactcountry)
versionselect: Latest # The version to be selected from the Artifacts. $(versionselect)
artifacthint: # . $(artifacthint)
multitenant: False # Create a Multi-Tenant image. $(multitenant)
memory: 8G # Set maximum memory for Container. $(memory)
imageprefix: myImage # New image name, tag defined by $(imagenametemplate). $(imageprefix)
dockerregistry: # Docker registry Pull/Push, example: 'bcinsider.azurecr.io', or 'repo.mydomain.com' $(dockerregistry)
dockerusername: # Docker login username. $(dockerusername)
dockerpassword: # Docker login password. $(dockerpassword)
storageaccount: # Non Default Storage Account. $(storageaccount)
sastoken: # SAS Token used to access Storage Account. $(sastoken)
forcecreateimage: False # Forces image creation, skipping Pull image. $(forcecreateimage)
myscripts: # Specify myScripts to be added to the image. $(myscripts)
imagenametemplate: %IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%# Template for defining Image names or using a fixed name $(imagenametemplate)
licensefile: # BC License File to be included in the Image $(licensefile)
includetesttoolkit: False # Included the TestToolkit in created image. $(includetesttoolkit)
includetestlibrariesonly: False # Included only the Test-Libraries in created image. $(includetestlibrariesonly)
includetestframeworkonly: False # Included only the Test-Framework in created image. $(includetestframeworkonly)
includeperformancetoolkit: False # Include Performance-Toolkit in created image. $(includeperformancetoolkit)
Ok, issue can be closed.
Reported as part of another issue here: #231