Open Matteo406 opened 1 month ago
I have heard about this problem before. How often does this happen? (1% of the times, 10% or 50%) I have tried to get a repro of this problem for quite some time. If you can provide me a .zip file with your apps (freddyk at microsoft dot com), then I can try publishing this to an environment until it fails and maybe find a solution on where to add resiliency to the process in order to not fail.
The problem occurs in about 50% of our pipeline runs. We have not been able to find the difference in environment or code between successful and failed runs. I will send you the zip file with all the app as soon as possible. Thanks in advance
I hope that you have received my email and that there was enough information in there to reproduce the bug.
Here is a recent scenario we had in more detail:
While inspecting the result of the failed pipeline run, we noticed that the application that caused the unknown error was still listed as installed with the correct version, as you can see in the second image. The list in the last image shows the same application listed again with the state "unknown" and the correct version.
The next pipeline run was successfully completed without any changes. I hope this gives a bit more context
error message app is listed as installed app has to correct version and state "unknown"
Description
The
Publish-PerTenantExtensionApps
function occasionally times out at a random app from the list of apps being published. This issue occurs intermittently and does not seem to be tied to any specific app or environment configuration. Additionally, it does not return a proper error message, just0000
as shown in the image below.Script Snippet
Here is the relevant part of the script where the issue occurs:
Environment Variables
Apps
Publish-PerTenantExtensionApps
Steps to Reproduce
Run the script in a DevOps pipeline after committing to the development branch. The script collects all .app files and attempts to publish them using the Publish-PerTenantExtensionApps function. Observe that the function occasionally times out at a random app.
Expected Behavior
The Publish-PerTenantExtensionApps function should publish all apps without timing out.
Actual Behavior
The function times out at a random app from the list, causing the script to fail intermittently.
Additional Information
Script
Request
Could you please investigate this issue and provide guidance on how to prevent the Publish-PerTenantExtensionApps function from timing out? If additional information is needed, please let me know.
Thank you!