HodorNV / ALOps

ALOps
56 stars 24 forks source link

NextMajor Pipelines for BC25 failing - Install AL TestTool - Codeunit 'Library - No. Series' is missing #780

Open pri-kise opened 1 month ago

pri-kise commented 1 month ago

Describe the bug Since this weekend all of our NextMajor Pipelines are failing. Could you please provide some help to fix this?

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

  - task: ALOpsAppPublish@1
    displayName: 'Install AL TestTool'
    inputs:
      usedocker: true
      installaltesttool: true
      install_al_app_names: |
        System Application Test Library  
        Library Variable Storage  
        Permissions Mock  
        Library Assert  
        Any  
        Test Runner  
        Tests-TestLibraries
      strictappnames: true

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2024-08-04T14:11:10.8754537Z *** Get App Info: C:\Extensions\Microsoft_Library Assert_25.0.22589.0.app
2024-08-04T14:11:11.7352214Z *** Get App Tenant Info
2024-08-04T14:11:13.0604283Z *** Sync App: [Microsoft / Library Assert]
2024-08-04T14:11:14.7806550Z *** Install App: [Microsoft / Library Assert]
2024-08-04T14:11:16.4710957Z ***
2024-08-04T14:11:16.5472255Z *** Get App Info: C:\Extensions\Microsoft_Any_25.0.22589.0.app
2024-08-04T14:11:17.2782717Z *** Get App Tenant Info
2024-08-04T14:11:18.5561161Z *** Sync App: [Microsoft / Any]
2024-08-04T14:11:19.7752711Z *** Install App: [Microsoft / Any]
2024-08-04T14:11:21.2282478Z ***
2024-08-04T14:11:21.2292534Z *** Get App Info: C:\Extensions\Microsoft_Library Variable Storage_25.0.22589.0.app
2024-08-04T14:11:22.0593748Z *** Get App Tenant Info
2024-08-04T14:11:23.3475881Z *** Sync App: [Microsoft / Library Variable Storage]
2024-08-04T14:11:24.6355881Z *** Install App: [Microsoft / Library Variable Storage]
2024-08-04T14:11:26.1837941Z ***
2024-08-04T14:11:26.1842385Z *** Get App Info: C:\Applications\System Application\Test\Microsoft_System Application Test Library.app
2024-08-04T14:11:27.0219519Z *** Get App Tenant Info
2024-08-04T14:11:28.2969184Z *** Publish App: [Microsoft / System Application Test Library]
2024-08-04T14:11:40.4828296Z *** Sync App: [Microsoft / System Application Test Library]
2024-08-04T14:11:44.8446092Z *** Install App: [Microsoft / System Application Test Library]
2024-08-04T14:11:48.6378850Z ***
2024-08-04T14:11:48.7072965Z *** Get App Info: C:\Extensions\Microsoft_Permissions Mock_25.0.22589.0.app
2024-08-04T14:11:49.4204573Z *** Get App Tenant Info
2024-08-04T14:11:50.6678052Z *** Sync App: [Microsoft / Permissions Mock]
2024-08-04T14:11:51.8675546Z *** Install App: [Microsoft / Permissions Mock]
2024-08-04T14:11:53.9741078Z ***
2024-08-04T14:11:53.9750293Z *** Get App Info: C:\Applications\BaseApp\Test\Microsoft_Tests-TestLibraries.app
2024-08-04T14:11:54.7945350Z *** Get App Tenant Info
2024-08-04T14:11:56.3815023Z *** Publish App: [Microsoft / Tests-TestLibraries]
2024-08-04T14:11:58.2837886Z ##[error]AL-TestTool installation failed: Publish-NAVApp:
error AL1024: A package with publisher 'Microsoft', name 'Business Foundation Test Libraries', and a version compatible with '25.0.0.0' could not be loaded. Symbols for the requested app Business Foundation Test Libraries by Microsoft 25.0.0.0 could not be found in the database.
LibraryUtility.Codeunit.al(19,26): error AL0185: Codeunit 'Library - No. Series' is missing

Expected behavior It should work as before.

Additional context Maybe we have to add something to install_al_app_names, but I don't know what. What's even more strang is that the NextMajor Pipelines did work for three months..

pri-kise commented 1 month ago

I solved it by adding the following line Business Foundation Test Libraries to my "Install AL Test Tool" step.

  # TestApp
  - task: ALOpsAppPublish@1
    displayName: 'Install AL TestTool'
    inputs:
      usedocker: true
      installaltesttool: true
      install_al_app_names: |
        System Application Test Library  
        Library Variable Storage  
        Permissions Mock  
        Library Assert  
        Any  
        Test Runner
        Business Foundation Test Libraries
        Tests-TestLibraries
      strictappnames: true
waldo1001 commented 3 weeks ago

Thanks! I'll add in in my todo's to update templates 🙈.