Skip to content

Commit

Permalink
Create AppInfo cache on creating a new compiler folder (#3434)
Browse files Browse the repository at this point in the history
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 <freddy.kristiansen@microsoft.com>
  • Loading branch information
ChrisBlankDe and freddydk committed May 17, 2024
1 parent a4e34ae commit a4a1589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CompilerFolderHandling/New-BcCompilerFolder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a4a1589

Please sign in to comment.