AL-Go icon indicating copy to clipboard operation
AL-Go copied to clipboard

Dependency App is not being installed into container

Open gntpet opened this issue 1 year ago • 0 comments

Hey @freddydk , I'm trying to setup cron jobs to run "Test Current", but running into the strange issues with dependency app. It does not get installed into the container, but rather just copied to the symbols folder. Therefore, when ALGO tries to publish built app, it runs into the dependency is missing error.

image

image

See my settings:

.github\AL-Go-Settings.json here we don't run any tests cases, and use compilerFolder to gain build speed.

{
  "type": "PTE",
  "templateUrl": "https://github.com/microsoft/AL-Go-PTE@main",
  "treatTestFailuresAsWarnings": true,
  "doNotRunBcptTests": true,
  "enableCodeCop": true,
  "rulesetFile": "../cicd.ruleset.json",
  "companyName": "TNM Automated Test",
  "runs-on": "srs-eid",
  "githubRunner": "srs-eid",
  "skipUpgrade": true,
  "environments": [
    "QA"
  ],
  "CICDPushBranches": [
    "main",
    "release/*"
  ],
  "CICDPullRequestBranches": [
    "main",
    "release/*",
    "features/*",
    "bug/*"
  ],
  "DeliverToStorage": {
    "Branches": [
      "main",
      "release/*"
    ]
  },
  "DeployToQA": {
    "EnvironmentType": "SaaS",
    "EnvironmentName": "QA",
    "Projects": "SRS.nl",
    "Branches": [
      "main"
    ],
    "ContinuousDeployment": true,
    "runs-on": "srs-eid"
  },
  "DeployToUAT": {
    "EnvironmentType": "SaaS",
    "EnvironmentName": "UAT",
    "Projects": "SRS.nl",
    "Branches": [
      "release/*"
    ],
    "ContinuousDeployment": false,
    "runs-on": "srs-eid"
  },
  "DeployToPROD": {
    "EnvironmentType": "SaaS",
    "EnvironmentName": "PROD",
    "Projects": "SRS.nl",
    "Branches": [
      "release/*"
    ],
    "ContinuousDeployment": false,
    "runs-on": "srs-eid"
  },
  "EnableTaskScheduler": true,
  "doNotRunTests": true,
  "useCompilerFolder": true,
  "doNotPublishApps": true,
  "alwaysBuildAllProjects": true,
  "PullRequestTrigger": "pull_request",
  "templateSha": "408a7ecc990db8dcd9ed2a3f32f7922669f05dba",
  "CurrentSchedule": "0 2 * * *",
  "NextMinorSchedule": "0 2 * * 6",
  "NextMajorSchedule": "0 2 * * 0"
}

..\SRS.base.AL-Go\settings.json

{
    "country": "base",
    "artifact": "bcartifacts/sandbox/23/base/latest",
    "appFolders": [
	"App"
	],
    "testFolders": [
	"Test"
	],
    "installApps": [
        "https://verySecretURL"
    ]
}

.github\Test Current.settings.json here, we want to use containers and run automated tests

{
    "artifact": "////latest",
    "cacheImageName": "",
    "versioningStrategy": 15,
    "doNotRunTests": false,
    "useCompilerFolder": false,
    "doNotPublishApps": false,
    "treatTestFailuresAsWarnings": false
}

If i check source code, it seems that for some processes it still thinks that it is using CompilerFolder https://github.com/microsoft/navcontainerhelper/blob/db40110acc52b648c78c41593ea7e2141f7af755/AppHandling/Run-AlPipeline.ps1#L1210

image

Best Regards, Gintautas

gntpet avatar May 03 '24 15:05 gntpet