Skip to content

[Feature] ALOpsAppCompiler: Please add automatic retry for AL Language VSIX download on 503 errors #911

@DanielGoehler

Description

@DanielGoehler

Is your feature request related to a problem? Please describe.
We run weekend test pipelines that validate all our projects against the upcoming NextMinor and NextMajor versions to detect breaking changes in our solutions and extensions. A small number of these runs fail with a 503 Service Unavailable error when attempting to fetch the AL Language Extension VSIX from the Marketplace. When we manually rerun the same step, it succeeds on the second attempt every time.

*** Fetching PRERELEASE VSIX from Marketplace
##[error]Response status code does not indicate success: 503 (Service Unavailable).

Describe the solution you'd like
It would be very helpful if ALOps could automatically retry downloading the VSIX after a short delay (for example, 30 seconds) when a transient error like HTTP 503 occurs. This would make the pipelines more robust against temporary rate limits or short outages and avoid unnecessary failed runs.

Describe alternatives you've considered
At the moment, we don’t have a good alternative. We are manually rerunning the affected pipeline runs, which is time-consuming and not scalable.

Additional context
Log:

##[section]Starting: Compile MainApp
==============================================================================
Task         : ALOps App Compiler
Description  : Compile AL Extension(s) for Business Central
Version      : 2.0.9825
Author       : Hodor
Help         : Compile Business Central extension(s) from AL code.
==============================================================================
*** Using Powershell 7
******************************************************************************
*** ALOps v2 - Preview                                                     ***
******************************************************************************
*** Importing required ALOps-Functions
*** Task Inputs:

�[32;1mname                                            �[0m�[32;1m value�[0m
�[32;1m----                                            �[0m �[32;1m-----�[0m
artifactversion                                  
artifacttype                                     Sandbox
artifactcountry                                  de
versionselect                                    NextMinor
updateruntime                                    
alternativeartifacturl                           https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/27.3.43689…
alternativevsixurl                               PRERELEASE
alsourcepath                                     C:\agent\_work\6025\s\MainApp
ruleset                                          
suppresswarnings                                 KEEP
appversiontemplate                               ?.?.*.0
updatebuildnumber                                True
appfilenametemplate                              %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC_C…
alcodeanalyzer                                   AppSourceCop,CodeCop,PerTenantExtensionCop,UICop,BusinessCentral.Lint…
ignorepragmas                                    
enable_external_rulesets                         False
showmycode                                       Keep
resourceexposurepolicy_allowdebugging            Keep
resourceexposurepolicy_allowdownloadingsource    Keep
resourceexposurepolicy_includesourceinsymbolfile Keep
internalsvisibleto                               Keep
preprocessorsymbols                              
generatereportlayouts                            False
applicationinsightskey                           
alcachepath                                      C:\agent\_work\6025\s
publishartifact                                  False
publishxlif                                      False
failonwarnings                                   False
failonany                                        False
storageaccount                                   
sastoken                                         
printappmanifest                                 True
outputalclogs                                    True
additionalprobingpaths                           
allowed_publisher_names                          
allowed_publisher_names_separator                ,
accept_insider_eula                              True
track_source_build_metadata                      True
alc_continuebuildonerror                         False
alc_errorlog                                     False
pwsh                                             True


True
*** For documentation, please visit   : https://www.alops.be/documentation

*** Importing required Task-Functions

*** Artifact Type   : [Sandbox]
*** Artifact Version: []
*** Artifact Country: [de]
*** AL Source Path  : [C:\agent\_work\6025\s\MainApp]
*** AL Cache Path   : [C:\agent\_work\6025\s]


*** Fetching PRERELEASE VSIX from Marketplace
##[error]Response status code does not indicate success: 503 (Service Unavailable).
*** PWSH Run Completed: 1
##[section]Finishing: Compile MainApp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions