Skip to content

[Bug]: Dependencies download for test apps ignores installed apps #2322

Description

BCContainerhelper version

6.1.15

Describe the issue

The step "Installing test app dependencies" directly before the step "Compiling test apps" of script "Run-AlPipeline.ps1" does not pass the installed apps to the scriptblock $InstallMissingDependencies (see step "Installing app dependencies").

This results in AL-Go downloading the missing test app dependencies without restriction to the platform version of the current bc artifact.

Command or script used to produce the issue

Repro steps:

  • Create new repository from "AL-Go-PTE" template
  • Extend AL-Go project settings with:
    "artifact": "//25//latest",
    "trustMicrosoftNuGetFeeds": true,
    "doNotPublishApps": true,
    "skipUpgrade": true,
    "useCompilerFolder": true
    
  • Add test app with additional dependency:
    {
      "id": "86a7fe06-b61b-4649-9c4f-12704e8282c5",
      "name": "COSMO Graphical Extension",
      "publisher": "Cosmo Consult",
      "version": "1.0.0.0"
    }
    
  • Run CI/CD workflow

Expected:

  • Build job downloads version 7.3.314637.0 of package CosmoConsult.COSMOGraphicalExtension.86a7fe06-b61b-4649-9c4f-12704e8282c5 (dependent on Application and Platform version 25.0.0)

Actual:

  • Build job downloads version 8.2.341615 of package CosmoConsult.COSMOGraphicalExtension.86a7fe06-b61b-4649-9c4f-12704e8282c5 (dependent on Application and Platform version 26.0.0)

Output of the workflow

...
Installing test app dependencies
    _____           _        _ _ _               _            _                             _                           _                 _
   |_   _|         | |      | | (_)             | |          | |                           | |                         | |               (_)
     | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |_ ___  ___| |_    __ _ _ __  _ __     __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _  ___  ___
     | | | '_ \/ __| __/ _` | | | | '_ \ / _` | | __/ _ \/ __| __|  / _` | '_ \| '_ \   / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \/ __|
    _| |_| | | \__ \ || (_| | | | | | | | (_| | | ||  __/\__ \ |_  | (_| | |_) | |_) | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |  __/\__ \
   |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__\___||___/\__|  \__,_| .__/| .__/   \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___||___/
                                          __/ |                          | |   | |                | |
                                         |___/                           |_|   |_|                |_|
  Missing TestApp dependencies
  - 86a7fe06-b61b-4649-9c4f-12704e8282c5
  Looking for NuGet package 86a7fe06-b61b-4649-9c4f-12704e8282c5 version 1.0.0.0 (LatestMatching match)
  Search NuGetFeed https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/AppSourceSymbols/nuget/v3/index.json
  Search package using https://dynamicssmb2.pkgs.visualstudio.com/571e802d-b44b-45fc-bd41-4cfddec73b44/_packaging/3f253fc9-be40-4eb5-b0e5-1a277ee0ed60/nuget/v3/query2/?q=86a7fe06-b61b-4649-9c4f-12704e8282c5&take=50&prerelease=true
  1 matching packages found
  - CosmoConsult.COSMOGraphicalExtension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5
  PackageId: CosmoConsult.COSMOGraphicalExtension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5
  15 versions found
  First version is 8.2.341615
  Last version is 5.1.237374
  Include 8.2.341615
  Include 8.1.326567
  Include 8.0.320511
  Include 8.0.316583
  Include 7.3.314637
  Include 7.3.301069
  Include 7.2.295286
  Include 7.1.280090
  Include 7.1.279164
  Include 7.0.272947
  Include 6.1.266344
  Include 6.1.261123
  Include 6.0.258307
  Include 6.0.254041
  Include 5.1.237374
  Best match for package name 86a7fe06-b61b-4649-9c4f-12704e8282c5 Version 1.0.0.0: CosmoConsult.COSMOGraphicalExtension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5 Version 8.2.341615 from https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/AppSourceSymbols/nuget/v3/index.json
  Download nuspec using https://dynamicssmb2.pkgs.visualstudio.com/571e802d-b44b-45fc-bd41-4cfddec73b44/_packaging/3f253fc9-be40-4eb5-b0e5-1a277ee0ed60/nuget/v3/flat2/cosmoconsult.cosmographicalextension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5/8.2.341615/cosmoconsult.cosmographicalextension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5.nuspec
  Download package using https://dynamicssmb2.pkgs.visualstudio.com/571e802d-b44b-45fc-bd41-4cfddec73b44/_packaging/3f253fc9-be40-4eb5-b0e5-1a277ee0ed60/nuget/v3/flat2/cosmoconsult.cosmographicalextension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5/8.2.341615/cosmoconsult.cosmographicalextension.symbols.86a7fe06-b61b-4649-9c4f-12704e8282c5.8.2.341615.nupkg
  Package successfully downloaded
  Downloading dependency 551d85cb-2152-4144-9464-a16791aff492 version 2.7.0
  Looking for NuGet package 551d85cb-2152-4144-9464-a16791aff492 version 2.7.0 (LatestMatching match)
  Search NuGetFeed https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/AppSourceSymbols/nuget/v3/index.json
  Search package using https://dynamicssmb2.pkgs.visualstudio.com/571e802d-b44b-45fc-bd41-4cfddec73b44/_packaging/3f253fc9-be40-4eb5-b0e5-1a277ee0ed60/nuget/v3/query2/?q=551d85cb-2152-4144-9464-a16791aff492&take=50&prerelease=true
  1 matching packages found
  - CosmoConsult.COSMOLicensing.symbols.551d85cb-2152-4144-9464-a16791aff492
  PackageId: CosmoConsult.COSMOLicensing.symbols.551d85cb-2152-4144-9464-a16791aff492
  1 versions found
  First version is 2.7.237980
  Last version is 2.7.237980
  Include 2.7.237980
  Best match for package name 551d85cb-2152-4144-9464-a16791aff492 Version 2.7.0: CosmoConsult.COSMOLicensing.symbols.551d85cb-2152-4144-9464-a16791aff492 Version 2.7.237980 from https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/AppSourceSymbols/nuget/v3/index.json
  Download nuspec using https://dynamicssmb2.pkgs.visualstudio.com/571e802d-b44b-45fc-bd41-4cfddec73b44/_packaging/3f253fc9-be40-4eb5-b0e5-1a277ee0ed60/nuget/v3/flat2/cosmoconsult.cosmolicensing.symbols.551d85cb-2152-4144-9464-a16791aff492/2.7.237980/cosmoconsult.cosmolicensing.symbols.551d85cb-2152-4144-9464-a16791aff492.nuspec
  Download package using https://dynamicssmb2.pkgs.visualstudio.com/571e802d-b44b-45fc-bd41-4cfddec73b44/_packaging/3f253fc9-be40-4eb5-b0e5-1a277ee0ed60/nuget/v3/flat2/cosmoconsult.cosmolicensing.symbols.551d85cb-2152-4144-9464-a16791aff492/2.7.237980/cosmoconsult.cosmolicensing.symbols.551d85cb-2152-4144-9464-a16791aff492.2.7.237980.nupkg
  Package successfully downloaded
  Downloading AL Language Extension to C:\ProgramData\BcContainerHelper\alLanguageExtension\17.0.2273547.zip
  using 7zip
  Found app file for package COSMO Licensing
  Copying Cosmo Consult_COSMO Licensing_2.7.237980.0 to C:\Users\runneradmin\AppData\Local\Temp\bfe6ba67-b019-462c-ae56-121a87e1d93e
  Found app file for package COSMO Licensing
  Copying Cosmo Consult_COSMO Licensing_2.7.237980.0 to D:\a\AL-Go-wrong-test-dependencies\AL-Go-wrong-test-dependencies\.packages
  Found app file for package COSMO Graphical Extension
  Copying Cosmo Consult_COSMO Graphical Extension_8.2.341615.0 to D:\a\AL-Go-wrong-test-dependencies\AL-Go-wrong-test-dependencies\.packages
  
  Installing testapp dependencies took 29 seconds
...

Additional information

No response

Does this happen every time?

Yes

Did this used to work?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions