From a4a158981d32ac37251fbd51824ae44a0ddcbc4c Mon Sep 17 00:00:00 2001 From: Chris Blank Date: Fri, 17 May 2024 14:24:19 +0200 Subject: [PATCH] Create AppInfo cache on creating a new compiler folder (#3434) the appinfo cache could be created right after the creation of the compiler folder. this improves build performance if the compile folder is created and cached without running a compile before caching. In our case we create a bunch of compile folders for different versions and localizations and then create an vm image which is used for build agents Co-authored-by: Freddy Kristiansen --- CompilerFolderHandling/New-BcCompilerFolder.ps1 | 6 ++++++ ReleaseNotes.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/CompilerFolderHandling/New-BcCompilerFolder.ps1 b/CompilerFolderHandling/New-BcCompilerFolder.ps1 index 6ab67c942..9091c8527 100644 --- a/CompilerFolderHandling/New-BcCompilerFolder.ps1 +++ b/CompilerFolderHandling/New-BcCompilerFolder.ps1 @@ -252,6 +252,12 @@ try { } } } + + $symbolsPath = Join-Path $compilerFolder 'symbols' + Write-Host "Enumerating Apps in CompilerFolder $symbolsPath" + $compilerFolderAppFiles = @(Get-ChildItem -Path (Join-Path $symbolsPath '*.app') | Select-Object -ExpandProperty FullName) + GetAppInfo -AppFiles $compilerFolderAppFiles -compilerFolder $compilerFolder -cacheAppinfoPath (Join-Path $symbolsPath 'cache_AppInfo.json') | Out-Null + $compilerFolder } catch { diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 773ffddc3..8f7a988b1 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,6 +1,7 @@ 6.0.18 Use altool from prerelease AL Language extension Display disk free inside container on error +Create AppInfo cache on creating a new compiler folder 6.0.17 Issue 3518 If WinRm is not running on the host, a container couldn't be created