From b9837ac77ccddef66ed37bbf9827167e0b88aad2 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Fri, 29 Nov 2024 12:20:19 +0100 Subject: [PATCH] Optimize Azure pipeline (#17674) * Only fetch single commit * Hopefully fixes Nerdbank.GitVersioning.GitException: Shallow clone lacks the objects required to calculate version height. Use full clones or clones with a history at least as deep as the last version height resetting change. * Do not checkout again * More test pipeline * Another attempt * yet another attempt * more attempts * Revert "more attempts" This reverts commit 5694d97ba620e90fdeea287936f58002f2a5ddba. * Test without building backoffice and login explicitly * Fix mem leak in integration tests * Fixes sqlserver lock test # Conflicts: # build/azure-pipelines.yml --- build/azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index d5b02db6f2..8d3f9edc0f 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -73,6 +73,10 @@ stages: pool: vmImage: 'ubuntu-latest' steps: + - checkout: self + submodules: false + lfs: false, + fetchDepth: 500 - task: NodeTool@0 displayName: Use Node.js $(nodeVersion) retryCountOnTaskFailure: 3 @@ -198,6 +202,11 @@ stages: pool: vmImage: 'ubuntu-latest' steps: + - checkout: self + submodules: false + lfs: false, + fetchDepth: 1 + fetchFilter: tree:0 - task: NodeTool@0 displayName: Use Node.js 10.15.x retryCountOnTaskFailure: 3 @@ -249,6 +258,11 @@ stages: pool: vmImage: $(vmImage) steps: + - checkout: self + submodules: false + lfs: false, + fetchDepth: 1 + fetchFilter: tree:0 - task: DownloadPipelineArtifact@2 displayName: Download build artifacts inputs: @@ -288,6 +302,11 @@ stages: variables: Tests__Database__DatabaseType: 'Sqlite' steps: + - checkout: self + submodules: false + lfs: false, + fetchDepth: 1 + fetchFilter: tree:0 # Setup test environment - task: DownloadPipelineArtifact@2 displayName: Download build artifacts