Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling test apps - Error downloading Microsoft_Tests-ERM_24.0.0.0.app #3733

Open
BennoVendrig opened this issue Oct 19, 2024 · 9 comments
Assignees

Comments

@BennoVendrig
Copy link

BennoVendrig commented Oct 19, 2024

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue
Normal apps are compiling correctly in a DevOps pipeline but the testapp is compiling with de dependency of the Microsoft_Tests-ERM app. I've done serveral settings but unfortunately nothing is working.

  • Latest version of BCContainerHelper 6.0.26
  • Install Microsoft_Tests-ERM app by adding the path in the installTestApps of installApps
  • Increase memory to 12G
  • setting installTestLibraries true and false doesn't fix the issue
  • setting installTestFramework true and false in combination with installTestLibraries doesn't fix the issue

The strange part is in the resolving dependencies area before starting to compile the test apps the dependency is known.
Image

Below the error:

Adding dependency to Base Application from Microsoft
Processing dependency Microsoft_System_24.0.0.0 ()
Downloading symbols: Microsoft_System_24.0.25600.0.app
Url : http://172.22.41.84:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=24.0.0.0&tenant=default
Processing dependency Axians Healthcare_Zorg ERP_23.0.0000.0 (ea1c5c22-9d11-48c8-b7b8-5ed387fc5acf)
Downloading symbols: Axians Healthcare_Zorg ERP_24.10.20241019.8598.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=ea1c5c22-9d11-48c8-b7b8-5ed387fc5acf&versionText=23.0.0000.0&tenant=default
Processing dependency Microsoft_Test Runner_24.0.0.0 (23de40a6-dfe8-4f80-80db-d70f83ce8caf)
Downloading symbols: Microsoft_Test Runner_24.5.23489.25631.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=23de40a6-dfe8-4f80-80db-d70f83ce8caf&versionText=24.0.0.0&tenant=default
Processing dependency Microsoft_Tests-TestLibraries_24.0.0.0 (5d86850b-0d76-4eca-bd7b-951ad998e997)
Downloading symbols: Microsoft_Tests-TestLibraries_24.5.23489.25631.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=5d86850b-0d76-4eca-bd7b-951ad998e997&versionText=24.0.0.0&tenant=default
Adding dependency to Permissions Mock from Microsoft
Processing dependency Microsoft_System Application Test Library_24.0.0.0 (9856ae4f-d1a7-46ef-89bb-6ef056398228)
Downloading symbols: Microsoft_System Application Test Library_24.5.23489.25631.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=9856ae4f-d1a7-46ef-89bb-6ef056398228&versionText=24.0.0.0&tenant=default
Processing dependency Microsoft_Library Variable Storage_24.0.0.0 (5095f467-0a01-4b99-99d1-9ff1237d286f)
Downloading symbols: Microsoft_Library Variable Storage_24.5.23489.25631.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=5095f467-0a01-4b99-99d1-9ff1237d286f&versionText=24.0.0.0&tenant=default
Processing dependency Microsoft_Any_24.0.0.0 (e7320ebb-08b3-4406-b1ec-b4927d3e280b)
Downloading symbols: Microsoft_Any_24.5.23489.25631.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=e7320ebb-08b3-4406-b1ec-b4927d3e280b&versionText=24.0.0.0&tenant=default
Processing dependency Microsoft_Library Assert_24.0.0.0 (dd0be2ea-f733-4d65-bb34-a28f4624fb14)
Downloading symbols: Microsoft_Library Assert_24.5.23489.25631.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=dd0be2ea-f733-4d65-bb34-a28f4624fb14&versionText=24.0.0.0&tenant=default
Processing dependency Microsoft_Tests-ERM_24.0.0.0 (fa3e2564-a39e-417f-9be6-c0dbe3d94069)
Downloading symbols: Microsoft_Tests-ERM_24.0.0.0.app
Url : http://172.22.41.84:7049/BC/dev/packages?appId=fa3e2564-a39e-417f-9be6-c0dbe3d94069&versionText=24.0.0.0&tenant=default
ERROR Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 404 (Not Found)."
Compile-AppInBcContainer Telemetry Correlation Id: a2a3d34d-2c1e-4556-9cbf-64d6086ec73f
Removing container
Run-AlPipeline Telemetry Correlation Id: a0d4ec2f-8130-4a7d-b189-65c44b71f971
##[error]Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 404 (Not Found)."
Response status code does not indicate success: 404 (Not Found).
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.26\AppHandling\Compile-AppInNavContainer.ps1:465
char:25

  •                     throw (GetExtendedErrorMessage $_)
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Exception calli...04 (Not Found).:String) [], RuntimeException
    • FullyQualifiedErrorId : Exception calling "GetResult" with "0" argument(s): "Response status code does not indic
      ate success: 404 (Not Found)."
      Response status code does not indicate success: 404 (Not Found).
      ##[error]PowerShell exited with code '1'.
      Finishing: Run Pipeline

Scripts used to create container and cause the issue
{
"name": "CI Pipeline Incremental Zorg ERP",
"memoryLimit": "12G",
"installApps": "e:\_CICD script\Continia\BC 23.0 (BC 2023 Wave 2 CU1)\App\Core\Core 9.0.1.185245 - 23.0 (BC 2023 Wave 2).app, e:\_CICD script\Continia\BC 23.0 (BC 2023 Wave 2 CU1)\App\Delivery Network\CDN 6.0.0.181398 - 23.0 (BC 2023 Wave 2).app, e:\_CICD script\Continia\BC 23.0 (BC 2023 Wave 2 CU1)\App\Connectivity App\CCA 2.0.0.397545 - 23.0 (BC 2023 Wave 2).app, e:\_CICD script\Continia\BC 23.0 (BC 2023 Wave 2 CU1)\App\Document Capture\DC 12.0.2.195520 - 23.0 (BC 2023 Wave 2).app, e:\Continia\BC 23.0 (BC 2023 Wave 2 CU1)\App\Document Capture\DC on-premises 12.0.2.195520 - 23.0 (BC 2023 Wave 2).app",
"previousApps": "",
"baseFolder": "e:\Agent_work2\1\s\",
"appFolders": "app, appPrintManagement, appContinia, appAPI",
"testFolders": "testapp",
"installTestApps": "",
"installTestRunner": false,
"installTestFramework": false,
"installTestLibraries": false,
"doNotRunTests": true,
"installPerformanceToolkit": false,
"doNotSignApps": true,
"enableCodeCop": true,
"enableAppSourceCop": true,
"enablePerTenantExtensionCop": false,
"enableUICop": true,
"bcContainerHelperVersion": "6.0.26",
"additionalCountries": "NL",
"appSourceCopSupportedCountries": "NL",
"appSourceCopMandatoryAffixes": "ZRG, PZRG, CZRG, TZRG, AZRG",
"vaultNameForLocal": "BuildVariablesAL",
"keepContainer": false,
"reUseContainer": false,
"versions": [
{
"version": "ci",
"artifact": "//24/nl/Latest",
"cacheImage": true,
"CreateRuntimePackages": true
},
{
"version": "current",
"artifact": "///nl/Current",
"CreateRuntimePackages": true
},
{
"version": "cloud",
"artifact": "///nl/Current"
},
{
"version": "nextmajor",
"artifact": "///nl/NextMajor/{INSIDERSASTOKEN}"
},
{
"version": "nextminor",
"artifact": "///nl/NextMinor/{INSIDERSASTOKEN}"
}
]
}

Full output of scripts
NavContainerHelper is version 6.0.26 with 12G setting
NavContainerHelper is running as administrator
Host is Microsoft Windows Server 2019
Docker Client Version is 19.03.14
Docker Server Version is 19.03.14

Additional context

  • does it happen all the time? Yes
  • did it use to work? No
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@freddydk
Copy link
Contributor

The log you posted in 1026 doesn't has:

2024-10-19T07:17:27.9474246Z Install Test Runner             False
2024-10-19T07:17:27.9504335Z Install Test Framework          False
2024-10-19T07:17:27.9529472Z Install Test Libraries          False
2024-10-19T07:17:27.9557964Z Install Perf. Toolkit           False

meaning that it will actually fail on:

2024-10-19T07:23:21.4094391Z Processing dependency Microsoft_Tests-TestLibraries_24.0.0.0 (5d86850b-0d76-4eca-bd7b-951ad998e997)
2024-10-19T07:23:21.4136087Z Downloading symbols: Microsoft_Tests-TestLibraries_24.0.0.0.app
2024-10-19T07:23:21.4151269Z Url : http://172.22.37.1:7049/BC/dev/packages?appId=5d86850b-0d76-4eca-bd7b-951ad998e997&versionText=24.0.0.0&tenant=default
2024-10-19T07:23:21.5292413Z ERROR Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 404 (Not Found)."

You should set InstalltestLibraries to true as the first thing.

But...
Install Test Libraries doesn't include the ERM tests - nothing does.

What you need is also to set installTestApps to the path of the ERM tests. I think you can specify the path inside the container preceeded by a colon, like:

-installTestApps @(':C:\Applications\BaseApp\Test\Microsoft_Tests-ERM.app')

Please find the right path of that.
If it still doesn't work, supply the log of a build with these changes, thanks

@BennoVendrig
Copy link
Author

Hi Freddy,
Thanks for the quick response.

I've set the setting InstalltestLibraries to True and include the ERM app in the installTestApps setting. Unfortunately the pipeline fails. See the attached log.Pipeline script v2.txt

Benno

@freddydk
Copy link
Contributor

As you can see in the log, the test libraries are now successfully installed and the failing part is when you then install the ERM app, it is taken from your own folder and that fails - not sure why.
You could try to create a container yourself and install the app to see why this is happening.
You could also use the app from the artifacts like suggested- you should though use the NL version of the ERM app instead of the W1 version.
(ERM version is under applicatoins.NL/Microsoft_Tests-ERM_24.5.x.y.app)

@freddydk
Copy link
Contributor

Added these settings to one of my repos:

  "installTestLibraries": true,
  "installTestApps": [ ":C:\\Applications.US\\Microsoft_Tests-ERM_*.app" ],
  "installOnlyReferencedApps": false

(the last is because I don't have a reference to ERM)

and I get:

Importing test toolkit
    _____                            _   _               _            _     _              _ _    _ _
   |_   _|                          | | (_)             | |          | |   | |            | | |  (_) |
     | |  _ __ ___  _ __   ___  _ __| |_ _ _ __   __ _  | |_ ___  ___| |_  | |_ ___   ___ | | | ___| |_
     | | | '_ ` _ \| '_ \ / _ \| '__| __| | '_ \ / _` | | __/ _ \/ __| __| | __/ _ \ / _ \| | |/ / | __|
    _| |_| | | | | | |_) | (_) | |  | |_| | | | | (_| | | ||  __/\__ \ |_  | || (_) | (_) | |   <| | |_
   |_____|_| |_| |_| .__/ \___/|_|   \__|_|_| |_|\__, |  \__\___||___/\__|  \__\___/ \___/|_|_|\_\_|\__|
                   | |                            __/ |
                   |_|                           |___/
  Synchronizing Permissions Mock on default
  App successfully synchronized
  Installing Permissions Mock on default
  App successfully installed
  Synchronizing Test Runner on default
  App successfully synchronized
  Installing Test Runner on default
  App successfully installed
  Synchronizing Any on default
  App successfully synchronized
  Installing Any on default
  App successfully installed
  Synchronizing Library Assert on default
  App successfully synchronized
  Installing Library Assert on default
  App successfully installed
  Skipping app 'C:\Applications.US\Microsoft_Permissions Mock_25.0.23364.2[571](https://github.com/freddydk/app1/actions/runs/11435074344/job/31809818428#step:8:581)1.app' as it is already installed
  Synchronizing Library Variable Storage on default
  App successfully synchronized
  Installing Library Variable Storage on default
  App successfully installed
  Publishing C:\ProgramData\BcContainerHelper\Extensions\bc11435074344\79c95c17-79b4-4de9-a74b-1710f65cf958\Microsoft_System Application Test Library_25.0.23364.25711.app
  Synchronizing System Application Test Library on tenant default
  Installing System Application Test Library on tenant default
  App Microsoft_System Application Test Library_25.0.23364.25711.app successfully published
  Publishing C:\ProgramData\BcContainerHelper\Extensions\bc11435074344\6216b[582](https://github.com/freddydk/app1/actions/runs/11435074344/job/31809818428#step:8:592)-8ee1-44bf-9d04-3cef92f5aa10\Microsoft_Business Foundation Test Libraries_25.0.23364.25711.app
  Synchronizing Business Foundation Test Libraries on tenant default
  Installing Business Foundation Test Libraries on tenant default
  App Microsoft_Business Foundation Test Libraries_25.0.23364.25711.app successfully published
  Publishing C:\ProgramData\BcContainerHelper\Extensions\bc11435074344\d10db2ab-937e-4aa8-9224-42e0a98c043c\Microsoft_Tests-TestLibraries_25.0.23364.25711.app
  Synchronizing Tests-TestLibraries on tenant default
  Installing Tests-TestLibraries on tenant default
  App Microsoft_Tests-TestLibraries_25.0.23364.25711.app successfully published
  Synchronizing AI Test Toolkit on default
  App successfully synchronized
  Installing AI Test Toolkit on default
  App successfully installed
  Synchronizing Performance Toolkit on default
  App successfully synchronized
  Installing Performance Toolkit on default
  App successfully installed
  Publishing C:\ProgramData\BcContainerHelper\Extensions\bc11435074344\6ccdb58e-87c1-4876-966d-99c9e52c4db7\Microsoft_Performance Toolkit Samples_25.0.23364.25711.app
  Synchronizing Performance Toolkit Samples on tenant default
  Installing Performance Toolkit Samples on tenant default
  App Microsoft_Performance Toolkit Samples_25.0.23364.25711.app successfully published
  Publishing C:\ProgramData\BcContainerHelper\Extensions\bc11435074344\5eba2eca-06d2-47cc-b414-f6634eab722f\Microsoft_Performance Toolkit Tests_25.0.23364.25711.app
  Synchronizing Performance Toolkit Tests on tenant default
  Installing Performance Toolkit Tests on tenant default
  App Microsoft_Performance Toolkit Tests_25.0.23364.25711.app successfully published
  TestToolkit successfully imported
  
  Importing Test Toolkit took 59 seconds
Installing test apps
    _____           _        _ _ _               _            _
   |_   _|         | |      | | (_)             | |          | |
     | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |_ ___  ___| |_    __ _ _ __  _ __  ___
     | | | '_ \/ __| __/ _` | | | | '_ \ / _` | | __/ _ \/ __| __|  / _` | '_ \| '_ \/ __|
    _| |_| | | \__ \ || (_| | | | | | | | (_| | | ||  __/\__ \ |_  | (_| | |_) | |_) \__ \
   |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__\___||___/\__|  \__,_| .__/| .__/|___/
                                          __/ |                          | |   | |
                                         |___/                           |_|   |_|
  Installing test apps
  Publishing C:\ProgramData\BcContainerHelper\Extensions\bc11435074344\56251476-d2d4-46d8-8db0-5f0372936daa\Microsoft_Tests-ERM_.app
  Synchronizing Tests-ERM on tenant default
  Installing Tests-ERM on tenant default
  App Microsoft_Tests-ERM_.app successfully published
  
  Installing test apps took 72 seconds

See: https://github.com/freddydk/app1/actions/runs/11435074344/job/31809818428

@BennoVendrig
Copy link
Author

Hi Freddy,

Unfortunately this is not working. I've tried several settings but still a problem with the ERM file. Do you still have some suggestions?

Benno

@freddydk
Copy link
Contributor

:-)

Unfortunately, I don't know what's wrong in your code/repo - I have created a repo, which shows that it works as expected - not sure what more I can do.

My recommendation (for everybody) is to move to AL-Go for GitHub or another managed DevOps solution.

@freddydk
Copy link
Contributor

You could (if you want me to give any advice) create a public repository on GitHub, which contains the files needed to repro this (basically use github as a packaging mechanism) - including a script and some sample apps, which provokes this problem.

Then I can have a look and see what's wrong.

@BennoVendrig
Copy link
Author

Hi Freddy,

The problem is fixed. The issues was caused by the parameter useDevEndpoint which was set on True in the DevOps pipeline. Took al lot of time to figure this out. Thank you really much for your support.

Benno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants