Граф коммитов

143 Коммитов

Автор SHA1 Сообщение Дата
Freddy Kristiansen 140595c13d
Nuget fixes (#3670)
NuGet feeds didn't work when using Containers / FilesOnly Containers

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-09-18 07:18:44 +02:00
Freddy Kristiansen 0bd696ae86
Issue3623 (#3625)
Fixes #3623

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-08-30 12:49:38 +02:00
Chris Blank 4c9b21ad33
improve output to match build system (#3430)
github actions and azure pipelines use different environment variables
we could use to identify the running system.
we should use this possibility to output formatting commands for the
given system.

---------

Co-authored-by: Christoph Blank <christoph.blank@kumavision.com>
Co-authored-by: Freddy Kristiansen <freddy.kristiansen@microsoft.com>
2024-08-26 12:30:03 +02:00
Freddy Kristiansen 480254c917
Support compilerfolder and online environments (#3607)
When specifying BcAuthContext and Environment to Run-AlPipeline,
Run-AlPipeline would always create a filesonly container, disallowing
running on Linux.
This PR fixes this plus some bugs found as a result of this.

- Replace all occurrences of
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto with
[System.Runtime.InteropServices.Marshal]::PtrToStringBSTR as the Auto
function doesn't always do what's expected under Linux (We do not use
the Auto function in AL-Go)
- Ensure correct casing of Newtonsoft.Json.dll for Linux (also not a
problem in AL-Go)
- Always add extensionId (when specified) to Properties section in test
results xml
- Also added two new overrides (PipelineInitialize and PipelineFinalize)
requested by COSMO Consult.
- If environment is specified as a Web Client URL, and BcAuthContext
contains username/password in Run-AlPipeline, then tests will run
against this environment. PublishBcContainerApp and
ImportTestToolkitToBcContainer needs to be overridden for this to work
with full pipeline.
- Add parameter CompilerFolder to Run-TestsInBcContainer and
Import-TestToolkitToBcContainer for running tests using CompilerFolder
bits from the host
- Including caching of appinfos in CompilerFolder cache (to save time
when caching on GitHub Actions)

Running Build AND Test under Linux (using CompilerFolder), using an
online environment as "Service Tier" can be seen here:

https://github.com/BusinessCentralDemos/bingmaps.pte/actions/runs/10313615507

Build and test here takes approx. 3 minutes.

This functionality is needed by COSMO to enable using their Docker Swarm
for running tests in AL-Go.

COSMO is aware that AL-Go moves away from using BcContainerHelper and
will subsequently have to change their integration when this has
happened.

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-08-09 12:18:10 +02:00
Freddy Kristiansen b68af9f05f
issue #3525 (#3540)
Bump version number
Fixes #3525
Dumps free disk space on container exceptions
Increase download timeout on insider or no CDN

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-05-16 13:38:47 +02:00
Freddy Kristiansen 56b9b2c656
fix download timeout (#3514)
Downloading artifacts would hang forever some times.

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-26 07:22:46 +02:00
Freddy Kristiansen 83f0b87fbb
session bug + remove telemetry from low level functions (#3509)
Session caching didn't really work in the latest preview
+ telemetry in the low level functions can be measured in perf.

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-25 08:41:37 +02:00
Freddy Kristiansen a71489d9b3
remove usepwsh false and require 1.0.2.20 (#3497)
1.0.2.20 now has SqlServer PS module preinstalled on PS 7 + compatible
overrides

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-23 08:20:52 +02:00
Freddy Kristiansen 4b5caab4f5
Small bug fixes (#3480)
Bump version to 6.0.16
Fixes #3477
Fixes #3478

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-10 05:10:23 +02:00
Freddy Kristiansen 43c9155bb5
Use new CDN (#3459)
```
bcartifacts.azureedge.net -> bcartifacts-exdbf9fwegejdqak.b02.azurefd.net
bcinsider.azureedge.net -> bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net
bcpublicpreview.azureedge.net ->bcpublicpreview-f2ajahg0e2cudpgh.b02.azurefd.net
businesscentralapps.azureedge.net -> businesscentralapps-hkdrdkaeangzfydv.b02.azurefd.net
bcprivate.azureedge.net -> bcprivate-fmdwbsb3ekbkc0bt.b02.azurefd.net
```

Also: remove support for SAS Token

PR also contains a fix for building with symbols only .app files -
copying installApps to the packagesFolder as well as publishing to a
container. Reason is that you cannot download symbols from a container
if you publish a symbols only package to the container.

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-04 09:28:54 +02:00
Freddy Kristiansen a154476d07
Issue 3354 (#3457)
Fixes #3354

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-02 13:19:18 +02:00
Freddy Kristiansen b0fc84f650
Fix issue in CopyApps (#3436)
Fixes #3431
Fixes #3432
Fixes #3427
Fixes issues found by troubleshooting
https://github.com/microsoft/AL-Go/issues/969

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-03-26 08:28:15 +01:00
Freddy Kristiansen dd40727551
issue #3349 (#3356)
Fixes #3349

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-02-22 13:14:51 +01:00
Freddy Kristiansen caf3232372
Test failure (#3332)
Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-02-08 14:41:15 +01:00
Freddy Kristiansen d54defbac7
Problem in Next Major (#3331)
Include Microsoft_Business Foundation Test Libraries.app when importing
test libraries (and tests)
Include Microsoft_System Application Test.app and Microsoft_Business
Foundation Tests.app when importing tests
Bug when running Publish-BcContainerApp against a cloud container
($authContext not defined)
Remove the need for a Container when using Replace-DependenciesInAppFile
(containername parameter is now obsolete)

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-02-08 13:29:12 +01:00
Freddy Kristiansen 40f7c4a535
Fix Error message with GH and GIT (#3312)
Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-01-26 22:28:17 +01:00
Freddy Kristiansen 43027b9a83
Bugfix (#3295)
Move json conversion as not all altool commands return json

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-01-19 11:59:36 +01:00
Freddy Kristiansen 93ef672576
NuGet changes (#3289)
Expose Copy-AppFilesToFolder and Get-AppJsonFromAppFile to public
Make Sort-AppFilesByDependencies use Get-AppJsonFromAppFile instead of a
container
Fix bug in NormalizeVersionStr
New function Create-SymbolsFileFromAppFile

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-01-08 06:43:49 +01:00
Freddy Kristiansen 4e8cc51d34
Nuget (#3283)
Compare normalized version numbers when locating nuget packages (ADO
turns 4.4.3.0 into 4.4.3 when getting version numbers and a normal
compare between 4.4.3 and 4.4.3.0 is not equal)

Runtime packages can contain multiple localized versions of the runtime
package.
When installing or downloading nuget packages - grab the country
subfolder (if it exists), else revert to the original version

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-01-02 08:39:59 +01:00
Freddy Kristiansen e932669323
support for runtime packages on NuGet (#3281)
bugfix when exactly one matching package on Azure DevOps

Example of runtime packages here
https://dev.azure.com/freddydk/apps/_artifacts/feed/MyRuntimePackages

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-12-26 09:18:51 +01:00
Freddy Kristiansen c083763791
NuGet changes (#3264)
Rename appinfo cache from AppInfo.json to cache_AppInfo.json (in order
for it to be picked up by .gitignore)
Proof of concept functionality for NuGet feeds:
- Add trusted feeds to ContainerHelper settings.
- Search all trusted feeds for packages in Get-BcNuGetPackage
- Some refactoring of NuGet code
- Allow searching for Earliest, Latest, Any or Exact version of NuGet
package
- Support NuGet Versioning schema

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-12-17 13:04:52 +01:00
Freddy Kristiansen b6b4a67251
check for packaging dll (#3266)
Apparently the packaging DLL is not availbale in version 15 and earlier.

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-12-07 10:47:15 +01:00
Freddy Kristiansen 97af5cf480
Fix issues caused by vsix changes + publish timeout on publishing apps (#3258)
When using Publish-PerTenantExtensionApps with a set of apps, which
takes a very long time to publish, the AccessToken might expire and lead
to failure. AccessToken is now refreshed when needed.
Issue #3254 vsix no longer includes dotnet framework 4.8 compatible dlls
for version 24
Avoid using CDN when downloading from bcinsider as this frequently
changes and subsequently fails

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-12-01 09:46:19 +01:00
Freddy Kristiansen 54b03a1617
Use ForEach (#3236)
Select-Object -ExpandProperty doesn't work with HashTables
Use ForEach instead.

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-11-19 12:05:21 +01:00
Alexander Holstrup c4ca9476e0
Latest insider artifacts fail building in compilerfolder (#3213)
Latest insider artifacts fail building in compilerfolder

`AL-Go action ran: RunPipeline Telemetry Correlation Id:
5f39d8a8-e12d-4443-bbe1-9ffe5b053643
Error: Unexpected error when running action. Error Message: Exception
calling "Create" with "2" argument(s): "Could not load file or assembly
'System.IO.Packaging, Version=4.0.5.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system
cannot find the file specified.", StackTrace: at GetAppInfo,
C:\ProgramData\BcContainerHelper\6.0.1-preview1082\BcContainerHelper\HelperFunctions.ps1:
line 1154 <- at Compile-AppWithBcCompilerFolder,
C:\ProgramData\BcContainerHelper\6.0.1-preview1082\BcContainerHelper\CompilerFolderHandling\Compile-AppWithBcCompilerFolder.ps1:
line 178 `
2023-10-20 07:19:24 -07:00
Freddy Kristiansen b918ae1a80
Removal of Insider SAS Token (#3166)
Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-09-27 15:09:36 +02:00
Freddy Kristiansen 19df6a3ade
GetAppInfo performance (#3195)
Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-09-26 12:52:01 +02:00
Freddy Kristiansen eee23173b1
Do not use jobs for getting app info (#3193)
Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2023-09-26 10:30:00 +02:00
Freddy Kristiansen c0e4e784aa
Merge pull request #3138 from freddydk/master
Support wildcards in CopyAppFilesToFolder
2023-07-29 06:00:00 +02:00
freddydk 3de99faaf6 Support wildcards in CopyAppFilesToFolder 2023-07-29 05:56:58 +02:00
Freddy Kristiansen fd3a8df4a9
Merge pull request #3134 from freddydk/master
support for default, latest or preview as vsixFile
2023-07-27 10:04:49 +02:00
freddydk 56bc2331ab support for default,latest or preview as vsixFile 2023-07-27 10:03:59 +02:00
Freddy Kristiansen ed8fa92a04 Issue #3118 2023-07-18 17:21:11 +02:00
freddydk fed8b5b16a Issue #3116 2023-07-15 08:19:01 +01:00
freddydk 74231bd5fb warning 2023-07-04 07:15:57 +02:00
Loïc LEUILLIOT 89f7648c0c
refactor: apply pr feedbacks 2023-05-27 11:05:37 +02:00
Loïc LEUILLIOT 7731ac0374
style: format HelperFunctions 2023-05-24 22:16:42 +02:00
Loïc LEUILLIOT 34cd2da801
fix: ensure httpclient is able to bypass ssl check
HttpClient does not relay on global ServicePointManager to determine apply ssl policy
This change is extending the existing class used by WebClient and make it usable by HttpClient aswell

Introduce a new parameter switch on DownloadLowFile method allowing to disable ssl check

related to #3066
2023-05-24 21:56:46 +02:00
Loïc LEUILLIOT 41f31ad98f
fix: enhance http exception handler
HttpClient does not throw same exceptions type as WebClient

Catch HttpRequestException and return message
Catch AuthenticationException (ssl handshake) and return message

related to #3066
2023-05-24 21:53:38 +02:00
Loïc LEUILLIOT f41938a670
fix: enhance ps7 compatibility with ssl selfsigned
for some reason, it appears ssl validation bypass using
System.Net.ServicePointManager does not work with powershell 7

use built-in powershell method Invoke-WebRequest which provide same
capabilities

related to #3066
2023-05-23 12:03:56 +02:00
Freddy Kristiansen 54183c6c59 support other extensions when expand 2023-04-27 17:21:36 +02:00
freddydk 36cc3273da casing 2023-04-16 03:30:22 -04:00
freddydk c9695a8530 remove dumps 2023-04-16 03:26:31 -04:00
freddydk 033248fe87 casing 2023-04-16 03:07:09 -04:00
freddydk d2dc15b28f dump 2023-04-15 21:40:29 -04:00
freddydk 6087da9a20 stop 2023-04-15 21:29:08 -04:00
freddydk cf2a4906e2 dump 2023-04-15 21:06:48 -04:00
freddydk 044e427ffe getenum 2023-04-15 20:56:51 -04:00
freddydk 737af180b0 where 2023-04-15 20:45:39 -04:00
freddydk 2ce7698b48 dumps 2023-04-15 20:39:11 -04:00