microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
303 stars 125 forks source link

Issue while Publishing extension to an Enviroment #664

Open faranmahboob opened 1 year ago

faranmahboob commented 1 year ago

Hi, I am playing with AL-go for Git hub to know how it works and currently doing Step 3 "Register a customer sandbox environment for Continuous Deployment using S2S" but I am getting an issue while publishing an App to a Environment. I have followed the steps but it gave the follwoing error; Any input will be great, All previous steps till AuthContext ran successfully, it gives error on the deploy action.

Error:

Run microsoft/AL-Go-Actions/Deploy@v3.1 Run try { D:\a_actions\microsoft\AL-Go-Actions\v3.1\Deploy/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:type } catch { Write-Host "::Error::Unexpected error when running action ($($.Exception.Message.Replace("r",'').Replace("n",' ')))"; exit 1 } Downloading BcContainerHelper latest version from CDN BcContainerHelper version 5.0.5 BC.HelperFunctions emits usage statistics telemetry to Microsoft project '' Error: Deploy action failed. Error: There is no artifacts present in D:\a\FM-ALGO\FM-ALGO.artifacts matching -main-Apps-. Stacktrace: at , D:\a_actions\microsoft\AL-Go-Actions\v3.1\Deploy\Deploy.ps1: line 58 at , D:\a_actions\microsoft\AL-Go-Actions\v3.1\Deploy\Deploy.ps1: line 52 at , D:\a_temp\ba939b44-1b6a-4933-a72e-1cbf2ffcf9e9.ps1: line 2 at , : line 1 AL-Go action ran: Deploy Telemetry Correlation Id: 60e135e0-025b-4f59-b238-29e84a457bcb Removing BcContainerHelper Error: Process completed with exit code 1.

freddydk commented 1 year ago

Could you attach the full log?

faranmahboob commented 1 year ago

Yes sure, the issue is that .app artifact file is not getting uploaded although test App is.

Full Log:


Current runner version: '2.307.1' Operating System Runner Image Runner Image Provisioner GITHUB_TOKEN Permissions Secret source: Actions Prepare workflow directory Prepare all required actions Getting action download info Download action repository 'actions/checkout@v3' (SHA:c85c95e3d7251135ab7dc9ce3241c5835cc595a9) Download action repository 'actions/download-artifact@v3' (SHA:9bc31d5ccc31df68ecc42ccf4149144866c47d8a) Download action repository 'microsoft/AL-Go-Actions@v3.1' (SHA:73be67b4c349ca02aeaf5f52523d381824970b6e) Complete job name: Deploy to DKSandbox 6s Run actions/checkout@v3 Syncing repository: faranmahboob/FM-ALGO Getting Git version info Temporarily overriding HOME='D:\a_temp\17ceafff-fed7-4031-8901-532dee07abb5' before making global git config changes Adding repository directory to the temporary git global config as a safe directory "C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\FM-ALGO\FM-ALGO Deleting the contents of 'D:\a\FM-ALGO\FM-ALGO' Initializing the repository Disabling automatic garbage collection Setting up auth Fetching the repository Determining the checkout info Checking out the ref "C:\Program Files\Git\bin\git.exe" log -1 --format='%H' 'ebc0a7ca0cb574caaf1617a3e604954713505c62' 2s Run actions/download-artifact@v3 No artifact name specified, downloading all artifacts Creating an extra directory for each artifact that is being downloaded starting download of artifact FM-ALGO-main-BuildOutput-1.0.13.0 : 1/3 Total number of files that will be downloaded: 1 starting download of artifact FM-ALGO-main-TestApps-1.0.13.0 : 2/3 Total number of files that will be downloaded: 1 starting download of artifact FM-ALGO-main-TestResults-1.0.13.0 : 3/3 Total number of files that will be downloaded: 1 There were 3 artifacts downloaded Artifact FM-ALGO-main-BuildOutput-1.0.13.0 was downloaded to D:\a\FM-ALGO\FM-ALGO.artifacts\FM-ALGO-main-BuildOutput-1.0.13.0 Artifact FM-ALGO-main-TestApps-1.0.13.0 was downloaded to D:\a\FM-ALGO\FM-ALGO.artifacts\FM-ALGO-main-TestApps-1.0.13.0 Artifact FM-ALGO-main-TestResults-1.0.13.0 was downloaded to D:\a\FM-ALGO\FM-ALGO.artifacts\FM-ALGO-main-TestResults-1.0.13.0 Artifact download has finished successfully 0s Run $ErrorActionPreference = "STOP" 9s Run microsoft/AL-Go-Actions/ReadSettings@v3.1 Run try { D:\a_actions\microsoft\AL-Go-Actions\v3.1\ReadSettings/ReadSettings.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -project $ENV:_project -getenvironments $ENV:_getenvironments -includeProduction ($ENV:_includeProduction -eq 'Y') -release ($ENV:_release -eq 'Y') -get $ENV:get } catch { Write-Host "::Error::Unexpected error when running action ($($.Exception.Message.Replace("r",'').Replace("n",' ')))"; exit 1 } Downloading BcContainerHelper latest version from CDN BcContainerHelper version 5.0.5 BC.HelperFunctions emits usage statistics telemetry to Microsoft Applying settings from D:\a\FM-ALGO\FM-ALGO.github\AL-Go-Settings.json Applying settings from D:\a\FM-ALGO\FM-ALGO.AL-Go\settings.json SettingsJson={"keyVaultCertificateUrlSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","type":"PTE","sendExtendedTelemetryToMicrosoft":false,"appBuild":13,"installTestApps":[],"versioningStrategy":0,"installApps":[],"installTestLibraries":false,"runNumberOffset":0,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","vsixFile":"","country":"us","partnerTelemetryConnectionString":"","insiderSasTokenSecretName":"insiderSasToken","doNotRunTests":false,"runs-on":"windows-latest","generateDependencyArtifact":false,"templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","keyVaultCertificatePasswordSecretName":"","rulesetFile":"","shell":"powershell","memoryLimit":"","keyVaultClientIdSecretName":"","testFolders":[],"githubRunner":"windows-latest","doNotBuildTests":false,"environments":[],"companyName":"","assignPremiumPlan":false,"artifact":"","ghTokenWorkflowSecretName":"ghTokenWorkflow","enableTaskScheduler":false,"enableCodeCop":false,"repoVersion":"1.0","doNotPublishApps":false,"unusedALGoSystemFiles":[],"githubRunnerShell":"powershell","appFolders":[],"cacheKeepDays":3,"bcptTestFolders":[],"updateDependencies":false,"cacheImageName":"my","treatTestFailuresAsWarnings":false,"additionalCountries":[],"licenseFileUrlSecretName":"licenseFileUrl","enableUICop":false,"customCodeCops":[],"appDependencies":[],"doNotRunBcptTests":false,"appDependencyProbingPaths":[],"useCompilerFolder":false,"installTestFramework":false,"keyVaultName":"","installOnlyReferencedApps":true,"obsoleteTagMinAllowedMajorMinor":"","applicationDependency":"[18](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899337242#step:1:22).0.0.0","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","failOn":"error","projects":[],"testDependencies":[],"appRevision":0,"codeSignCertificateUrlSecretName":"codeSignCertificateUrl","configPackages":[],"useProjectDependencies":false,"appSourceCopMandatoryAffixes":[],"buildModes":[],"templateBranch":"","installPerformanceToolkit":false,"doNotSignApps":false,"repoName":"FM-ALGO","alwaysBuildAllProjects":false,"skipUpgrade":false,"installTestRunner":false,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials"} GitHubRunnerJson="windows-latest" GitHubRunnerShell=powershell Removing BcContainerHelper 6s Run microsoft/AL-Go-Actions/ReadSecrets@v3.1 Run try { D:\a_actions\microsoft\AL-Go-Actions\v3.1\ReadSecrets/ReadSecrets.ps1 -settingsJson $ENV:_settingsJson -secrets $ENV:_secrets -parentTelemetryScopeJson $ENV:parentTelemetryScopeJson } catch { Write-Host "::Error::Unexpected error when running action ($($.Exception.Message.Replace("r",'').Replace("n",' ')))"; exit 1 } Downloading BcContainerHelper latest version from CDN BcContainerHelper version 5.0.5 BC.HelperFunctions emits usage statistics telemetry to Microsoft Trying to get the secret(DKSandbox-AuthContext) from the github environment. Could not find secret DKSandbox-AuthContext in Github secrets or Azure Key Vault. Trying to get the secret(DKSandbox_AuthContext) from the github environment. Could not find secret DKSandbox_AuthContext in Github secrets or Azure Key Vault. Trying to get the secret(AuthContext) from the github environment. Masking value for AuthContext Secret(AuthContext) was retrieved from the github environment. Masking value for AuthContext.ClientID Masking value for AuthContext.ClientSecret AuthContext successfully read from secret AuthContext Trying to get the secret(DKSandbox-EnvironmentName) from the github environment. Could not find secret DKSandbox-EnvironmentName in Github secrets or Azure Key Vault. Trying to get the secret(DKSandbox_EnvironmentName) from the github environment. Could not find secret DKSandbox_EnvironmentName in Github secrets or Azure Key Vault. Trying to get the secret(EnvironmentName) from the github environment. Could not find secret EnvironmentName in Github secrets or Azure Key Vault. Trying to get the secret(projects) from the github environment. Could not find secret projects in Github secrets or Azure Key Vault. The following secrets was not found: DKSandbox-AuthContext, DKSandbox_AuthContext, DKSandbox-EnvironmentName, DKSandbox_EnvironmentName, EnvironmentName, projects Removing BcContainerHelper 0s 5s Run microsoft/AL-Go-Actions/Deploy@v3.1 Run try { D:\a_actions\microsoft\AL-Go-Actions\v3.1\Deploy/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:type } catch { Write-Host "::Error::Unexpected error when running action ($($.Exception.Message.Replace("r",'').Replace("n",' ')))"; exit 1 } Downloading BcContainerHelper latest version from CDN BcContainerHelper version 5.0.5 BC.HelperFunctions emits usage statistics telemetry to Microsoft project '' Error: Deploy action failed. Error: There is no artifacts present in D:\a\FM-ALGO\FM-ALGO.artifacts matching -main-Apps-. Stacktrace: at , D:\a_actions\microsoft\AL-Go-Actions\v3.1\Deploy\Deploy.ps1: line 58 at , D:\a_actions\microsoft\AL-Go-Actions\v3.1\Deploy\Deploy.ps1: line 52 at , D:\a_temp\ba939b44-1b6a-4933-a72e-1cbf2ffcf9e9.ps1: line 2 at , : line 1 AL-Go action ran: Deploy Telemetry Correlation Id: 60e135e0-025b-4f59-b238-29e84a457bcb Removing BcContainerHelper Error: Process completed with exit code 1.

freddydk commented 1 year ago

The full log should include the part where it builds the apps.

faranmahboob commented 1 year ago

Sorry, actually im not sure from where to copy the full log. this is the log from build part.

Current runner version: '[2](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:2).[3](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:3)07.1'
Operating System
  Microsoft Windows Server 2022
  10.0.203[4](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:4)8
  Datacenter
Runner Image
Runner Image Provisioner
GITHUB_TOKEN Permissions
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v3' (SHA:c8[5](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:5)c95e3d7251135ab7dc9ce3241c5835cc595a9)
Download action repository 'actions/download-artifact@v3' (SHA:9bc31d5ccc31df[6](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:7)8ecc42ccf4149144866c47d8a)
Download action repository 'microsoft/AL-Go-Actions@v3.1' (SHA:73be67b4c349ca02aeaf5f52523d381824970b6e)
Download action repository 'actions/cache@v3' (SHA:88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8)
Download action repository 'actions/upload-artifact@v3' (SHA:0b7f8abb1508181956e8e162db84b466c27e18ce)
Complete job name: Build . - Default
28s
Run actions/checkout@v3
Syncing repository: faranmahboob/FM-ALGO
Getting Git version info
Temporarily overriding HOME='D:\a\_temp\9a3563f4-4f34-4907-bd76-9397c22729a0' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\FM-ALGO\FM-ALGO
Deleting the contents of 'D:\a\FM-ALGO\FM-ALGO'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
"C:\Program Files\Git\bin\git.exe" lfs install --local
Updated Git hooks.
Git LFS initialized.
Fetching the repository
Determining the checkout info
Fetching LFS objects
Checking out the ref
"C:\Program Files\Git\bin\git.exe" log -1 --format='%H'
'ebc0a7ca0cb574caaf1617a3e604954713505c62'
0s
52s
Run microsoft/AL-Go-Actions/ReadSettings@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\ReadSettings/ReadSettings.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -project $ENV:_project -getenvironments $ENV:_getenvironments -includeProduction ($ENV:_includeProduction -eq 'Y') -release ($ENV:_release -eq 'Y') -get $ENV:_get } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
Downloading BcContainerHelper latest version from CDN
BcContainerHelper version 5.0.5
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Applying settings from D:\a\FM-ALGO\FM-ALGO\.github\AL-Go-Settings.json
Applying settings from D:\a\FM-ALGO\FM-ALGO\.AL-Go\settings.json
SettingsJson={"keyVaultCertificateUrlSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","type":"PTE","sendExtendedTelemetryToMicrosoft":false,"appBuild":13,"installTestApps":[],"versioningStrategy":0,"installApps":[],"installTestLibraries":false,"runNumberOffset":0,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","vsixFile":"","country":"us","partnerTelemetryConnectionString":"","insiderSasTokenSecretName":"insiderSasToken","doNotRunTests":false,"runs-on":"windows-latest","generateDependencyArtifact":false,"templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","keyVaultCertificatePasswordSecretName":"","rulesetFile":"","shell":"powershell","memoryLimit":"","keyVaultClientIdSecretName":"","testFolders":[],"githubRunner":"windows-latest","doNotBuildTests":false,"environments":[],"companyName":"","assignPremiumPlan":false,"artifact":"","ghTokenWorkflowSecretName":"ghTokenWorkflow","enableTaskScheduler":false,"enableCodeCop":false,"repoVersion":"1.0","doNotPublishApps":false,"unusedALGoSystemFiles":[],"githubRunnerShell":"powershell","appFolders":[],"cacheKeepDays":3,"bcptTestFolders":[],"updateDependencies":false,"cacheImageName":"my","treatTestFailuresAsWarnings":false,"additionalCountries":[],"licenseFileUrlSecretName":"licenseFileUrl","enableUICop":false,"customCodeCops":[],"appDependencies":[],"doNotRunBcptTests":false,"appDependencyProbingPaths":[],"useCompilerFolder":false,"installTestFramework":false,"keyVaultName":"","installOnlyReferencedApps":true,"obsoleteTagMinAllowedMajorMinor":"","applicationDependency":"18.0.0.0","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","failOn":"error","projects":[],"testDependencies":[],"appRevision":0,"codeSignCertificateUrlSecretName":"codeSignCertificateUrl","configPackages":[],"useProjectDependencies":false,"appSourceCopMandatoryAffixes":[],"buildModes":[],"templateBranch":"","installPerformanceToolkit":false,"doNotSignApps":false,"repoName":"FM-ALGO","alwaysBuildAllProjects":false,"skipUpgrade":false,"installTestRunner":false,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials"}
GitHubRunnerJson="windows-latest"
GitHubRunnerShell=powershell
Removing BcContainerHelper
15s
Run microsoft/AL-Go-Actions/ReadSecrets@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\ReadSecrets/ReadSecrets.ps1 -settingsJson $ENV:_settingsJson -secrets $ENV:_secrets -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
Downloading BcContainerHelper latest version from CDN
BcContainerHelper version 5.0.5
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Trying to get the secret(licenseFileUrl) from the github environment.
Could not find secret licenseFileUrl in Github secrets or Azure Key Vault.
Trying to get the secret(insiderSasToken) from the github environment.
Could not find secret insiderSasToken in Github secrets or Azure Key Vault.
Trying to get the secret(codeSignCertificateUrl) from the github environment.
Could not find secret codeSignCertificateUrl in Github secrets or Azure Key Vault.
Trying to get the secret(codeSignCertificatePassword) from the github environment.
Could not find secret codeSignCertificatePassword in Github secrets or Azure Key Vault.
Trying to get the secret(storageContext) from the github environment.
Could not find secret storageContext in Github secrets or Azure Key Vault.
Trying to get the secret(gitHubPackagesContext) from the github environment.
Could not find secret gitHubPackagesContext in Github secrets or Azure Key Vault.
The following secrets was not found: licenseFileUrl (Secret licenseFileUrl), insiderSasToken (Secret insiderSasToken), codeSignCertificateUrl (Secret codeSignCertificateUrl), codeSignCertificatePassword (Secret codeSignCertificatePassword), keyVaultCertificateUrl (Secret ), keyVaultCertificatePassword (Secret ), keyVaultClientId (Secret ), storageContext, gitHubPackagesContext
Removing BcContainerHelper
50s
Run microsoft/AL-Go-Actions/DetermineArtifactUrl@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\DetermineArtifactUrl/DetermineArtifactUrl.Action.ps1 -parentTelemetryScopeJson $env:_parentTelemetryScopeJson  -project $ENV:_project -settingsJson $ENV:_settingsJson -secretsJson $ENV:_secretsJson } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
Downloading BcContainerHelper latest version from CDN
BcContainerHelper version 5.0.5
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Analyzing repository
Checking project dependencies
Checking appDependencyProbingPaths
Checking artifact setting for project
ArtifactUrl=https://bcartifacts.azureedge.net/sandbox/22.4.59[11](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:13)4.59697/us
SettingsJson={"keyVaultCertificateUrlSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","type":"PTE","sendExtendedTelemetryToMicrosoft":false,"appBuild":[13](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:16),"installTestApps":[],"versioningStrategy":0,"installApps":[],"installTestLibraries":false,"runNumberOffset":0,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","country":"us","partnerTelemetryConnectionString":"","insiderSasTokenSecretName":"insiderSasToken","doNotRunTests":false,"runs-on":"windows-latest","configPackages":[],"generateDependencyArtifact":false,"templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","keyVaultCertificatePasswordSecretName":"","rulesetFile":"","licenseFileUrlSecretName":"licenseFileUrl","memoryLimit":"","keyVaultClientIdSecretName":"","testFolders":[".\\App1.Test"],"githubRunner":"windows-latest","doNotBuildTests":false,"environments":[],"companyName":"","assignPremiumPlan":false,"artifact":"https://bcartifacts.azureedge.net/sandbox/22.4.59114.59697/us","ghTokenWorkflowSecretName":"ghTokenWorkflow","enableTaskScheduler":false,"enableCodeCop":false,"repoVersion":"1.0","doNotPublishApps":false,"doNotSignApps":false,"githubRunnerShell":"powershell","cacheKeepDays":3,"bcptTestFolders":[],"updateDependencies":false,"cacheImageName":"my","treatTestFailuresAsWarnings":false,"additionalCountries":[],"enableUICop":false,"customCodeCops":[],"appDependencies":[],"doNotRunBcptTests":true,"enableAppSourceCop":false,"skipUpgrade":false,"enablePerTenantExtensionCop":true,"appDependencyProbingPaths":[],"useCompilerFolder":false,"installTestFramework":true,"keyVaultName":"","obsoleteTagMinAllowedMajorMinor":"","applicationDependency":"22.0.0.0","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","shell":"powershell","failOn":"error","projects":[],"appSourceCopMandatoryAffixes":[],"testDependencies":[{"id":"dd0be2ea-f733-4d65-bb34-a28f4624fb14","version":"22.0.0.0"},{"id":"e7320ebb-08b3-4406-b1ec-b4927d3e280b","version":"22.0.0.0"}],"appRevision":0,"codeSignCertificateUrlSecretName":"codeSignCertificateUrl","vsixFile":"","useProjectDependencies":false,"unusedALGoSystemFiles":[],"buildModes":[],"templateBranch":"","installPerformanceToolkit":false,"appFolders":[],"repoName":"FM-ALGO","alwaysBuildAllProjects":false,"installOnlyReferencedApps":true,"installTestRunner":true,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials"}
Artifact=https://bcartifacts.azureedge.net/sandbox/22.4.59114.59697/us
Removing BcContainerHelper
0s
16m 15s
Run microsoft/AL-Go-Actions/RunPipeline@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\RunPipeline/RunPipeline.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -project $ENV:_project -projectDependenciesJson $ENV:_projectDependenciesJson -settingsJson $ENV:_settingsJson -secretsJson $ENV:_secretsJson -buildMode $ENV:_buildMode } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
Downloading BcContainerHelper latest version from CDN
BcContainerHelper version 5.0.5
BC.HelperFunctions emits usage statistics telemetry to Microsoft
use settings and secrets
Analyzing repository
Checking project dependencies
Checking appDependencyProbingPaths
Warning: No apps found in appFolders in .AL-Go\settings.json
Project: 
Locating previous release
Invoke Run-AlPipeline with buildmode Default
WARNING: No app folders found
Parameters
Pulling generic image
Creating container
Resolving dependencies
Compiling apps
Importing test toolkit
Compiling test apps
Publishing apps
Running tests
Copy to build artifacts
Removing container

AL Pipeline finished in 626 seconds
Removing BcContainerHelper
1s
Run microsoft/AL-Go-Actions/CalculateArtifactNames@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\CalculateArtifactNames/CalculateArtifactNames.ps1 -settingsJson $ENV:_settingsJson -project $ENV:_project -buildMode $ENV:_buildMode -branchName $ENV:_branchName -suffix $ENV:_suffix } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("*",'').Replace("*",' ')))"; exit 1 }
{"keyVaultCertificateUrlSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","type":"PTE","sendExtendedTelemetryToMicrosoft":false,"appBuild":13,"installTestApps":[],"versioningStrategy":0,"installApps":[],"installTestLibraries":false,"runNumberOffset":0,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","country":"us","partnerTelemetryConnectionString":"","insiderSasTokenSecretName":"insiderSasToken","doNotRunTests":false,"runs-on":"windows-latest","configPackages":[],"generateDependencyArtifact":false,"templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","keyVaultCertificatePasswordSecretName":"","rulesetFile":"","licenseFileUrlSecretName":"licenseFileUrl","memoryLimit":"","keyVaultClientIdSecretName":"","testFolders":[".\\App1.Test"],"githubRunner":"windows-latest","doNotBuildTests":false,"environments":[],"companyName":"","assignPremiumPlan":false,"artifact":"https://bcartifacts.azureedge.net/sandbox/22.4.59114.59697/us","ghTokenWorkflowSecretName":"ghTokenWorkflow","enableTaskScheduler":false,"enableCodeCop":false,"repoVersion":"1.0","doNotPublishApps":false,"doNotSignApps":false,"githubRunnerShell":"powershell","cacheKeepDays":3,"bcptTestFolders":[],"updateDependencies":false,"cacheImageName":"my","treatTestFailuresAsWarnings":false,"additionalCountries":[],"enableUICop":false,"customCodeCops":[],"appDependencies":[],"doNotRunBcptTests":true,"enableAppSourceCop":false,"skipUpgrade":false,"enablePerTenantExtensionCop":true,"appDependencyProbingPaths":[],"useCompilerFolder":false,"installTestFramework":true,"keyVaultName":"","obsoleteTagMinAllowedMajorMinor":"","applicationDependency":"22.0.0.0","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","shell":"powershell","failOn":"error","projects":[],"appSourceCopMandatoryAffixes":[],"testDependencies":[{"id":"dd0be2ea-f733-4d65-bb34-a28f4624fb14","version":"22.0.0.0"},{"id":"e7320ebb-08b3-4406-b1ec-b4927d3e280b","version":"22.0.0.0"}],"appRevision":0,"codeSignCertificateUrlSecretName":"codeSignCertificateUrl","vsixFile":"","useProjectDependencies":false,"unusedALGoSystemFiles":[],"buildModes":[],"templateBranch":"","installPerformanceToolkit":false,"appFolders":[],"repoName":"FM-ALGO","alwaysBuildAllProjects":false,"installOnlyReferencedApps":true,"installTestRunner":true,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials"}
Assigning  to BuildMode
Assigning FM-ALGO-main-Apps-1.0.13.0 to AppsArtifactsName
Assigning FM-ALGO-main-Dependencies-1.0.13.0 to DependenciesArtifactsName
Assigning FM-ALGO-main-TestApps-1.0.13.0 to TestAppsArtifactsName
Assigning FM-ALGO-main-TestResults-1.0.13.0 to TestResultsArtifactsName
Assigning FM-ALGO-main-BcptTestResults-1.0.13.0 to BcptTestResultsArtifactsName
Assigning FM-ALGO-main-BuildOutput-1.0.13.0 to BuildOutputArtifactsName
Assigning FM-ALGO-main-ContainerEventLog-1.0.13.0 to ContainerEventLogArtifactsName
Assigning thisbuild-FM-ALGO-Apps to ThisBuildAppsArtifactsName
Assigning thisbuild-FM-ALGO-TestApps to ThisBuildTestAppsArtifactsName
0s
0s
1s
Run actions/upload-artifact@v3
No files were found with the provided path: ./.buildartifacts/Apps/. No artifacts will be uploaded.
0s
Run actions/upload-artifact@v3
No files were found with the provided path: ./.buildartifacts/Dependencies/. No artifacts will be uploaded.
1s
Run actions/upload-artifact@v3
With the provided path, there will be 1 file uploaded
Starting artifact upload
For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
Artifact name is valid!
Container for artifact "FM-ALGO-main-TestApps-1.0.13.0" successfully created. Starting upload of file(s)
Total size of all the files uploaded is 2566 bytes
File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded!

The raw size of all the files that were specified for upload is 2988 bytes
The size of all the files that were uploaded is 2566 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 

Artifact FM-ALGO-main-TestApps-1.0.13.0 has been successfully uploaded!
1s
Run actions/upload-artifact@v3
With the provided path, there will be 1 file uploaded
Starting artifact upload
For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
Artifact name is valid!
Container for artifact "FM-ALGO-main-BuildOutput-1.0.13.0" successfully created. Starting upload of file(s)
Total size of all the files uploaded is 194 bytes
File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded!

The raw size of all the files that were specified for upload is 241 bytes
The size of all the files that were uploaded is 194 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 

Artifact FM-ALGO-main-BuildOutput-1.0.13.0 has been successfully uploaded!
0s
1s
Run actions/upload-artifact@v3
With the provided path, there will be 1 file uploaded
Starting artifact upload
For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
Artifact name is valid!
Container for artifact "FM-ALGO-main-TestResults-1.0.13.0" successfully created. Starting upload of file(s)
Total size of all the files uploaded is [17](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:21)69 bytes
File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded!

The raw size of all the files that were specified for upload is [19](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:1:23)603 bytes
The size of all the files that were uploaded is [1](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:2:1)769 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 

Artifact FM-ALGO-main-TestResults-1.0.13.0 has been successfully uploaded!
0s
9s
Run microsoft/AL-Go-Actions/AnalyzeTests@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\AnalyzeTests/AnalyzeTests.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -project $ENV:_project } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
Downloading BcContainerHelper latest version from CDN
BcContainerHelper version 5.0.5
BC.HelperFunctions emits usage statistics telemetry to Microsoft
1 TestApps, 1 tests, 0 failed, 0 skipped, 4.307 seconds
- App1.Test, 1 tests, 1 passed, 0 failed, 0 skipped, 4.307 seconds
TestResultMD=|Test app|Tests|Passed|Failed|Skipped|Time|\n|:---|---:|---:|---:|---:|---:|\n|App1.Test|1|1:white_check_mark:|||4.307s|\n\n\n<i>No test failures</i>
Removing BcContainerHelper
6s
Run microsoft/AL-Go-Actions/PipelineCleanup@v3.1
Run try { D:\a\_actions\microsoft\AL-Go-Actions\v3.1\PipelineCleanup/PipelineCleanup.ps1 -project $ENV:_project -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
Downloading BcContainerHelper latest version from CDN
BcContainerHelper version 5.0.5
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Removing Desktop shortcuts
Removing BcContainerHelper
4s
Post job cleanup.
"C:\Program Files\Git\bin\git.exe" version
git version 2.[41](https://github.com/faranmahboob/FM-ALGO/actions/runs/5864249240/job/15899014265#step:2:46).0.windows.3
Temporarily overriding HOME='D:\a\_temp\b4813145-8f13-456a-9dce-eff6a584eb4d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\FM-ALGO\FM-ALGO
"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\""
"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\""
0s
Evaluate and set job outputs
Cleaning up orphan processes
freddydk commented 1 year ago

You can download raw logs from the entire process, which includes all. But it looks like there are no apps in this project - only test apps. image

Maybe your app has a dependency on some of the test framework apps - then it automatically gets categorized as a test app. You can override this by manually putting the app folder into the appFolders in the .AL-Go/settings.json file.

faranmahboob commented 1 year ago

Hi Freddy, there is .app file at the root of the project. Also when we create a new app why does it create two .vscode folder one within app folder and one at the root ? which one to use ? In my case I used the one at root folder and created app.jason file there but it is not identifying the .app from there. thanks

thanks

freddydk commented 1 year ago

I think you mistake projects for apps. AL-Go for GitHub can be a single-project or a multi-project repo. A project can have multiple apps and testapps If a .AL-Go folder exists in the root folder - it is a single project repo and all apps must be a subfolder. A multi-project repo consists of X folders (with .AL-Go folders inside) and each with any number of subfolders for apps and test apps. Every project has a .vscode folder. All apps inside a project are built together and deployed together.

faranmahboob commented 1 year ago

hi Freddy, thanks for your answers, I still have a confusion when we create a new App (Single-project), and try to download symbols it says : No Server ha been choosen in the launch.json that is on the root folder not within the App. Isn't symbols should be download from the App folder ? My issue is where to place the .app files so that they can be uploded and can be deployed to a sandbox from the pipleline ?

freddydk commented 1 year ago

Is your repository public or can you invite me, then I can see what you did? Else, if you follow this workshop: https://aka.ms/algoworkshop - you get a walkthrough of how to do things correctly.