From 9c52fb622b0628186052f128004a6873566b9cdc Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 28 Jun 2022 14:18:59 -0700 Subject: [PATCH] Fail if the emulator doesn't start (#18488) We had continueOnError set to true so if the emulator failed to start we would still try to run the tests which all fail but take a long time to run. The timeout for this step is about 10mins of trying so that should be enough time and so we also don't really need another retry step. Co-authored-by: Wes Haggard --- .../pipelines/templates/steps/cosmos-emulator.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/eng/common/pipelines/templates/steps/cosmos-emulator.yml b/eng/common/pipelines/templates/steps/cosmos-emulator.yml index cda0e8ac10e2..f1faae362f4e 100644 --- a/eng/common/pipelines/templates/steps/cosmos-emulator.yml +++ b/eng/common/pipelines/templates/steps/cosmos-emulator.yml @@ -22,15 +22,3 @@ steps: -Stage "Launch" pwsh: true displayName: Launch Public Cosmos DB Emulator - continueOnError: true - - - task: Powershell@2 - inputs: - filePath: $(Build.SourcesDirectory)/eng/common/scripts/Cosmos-Emulator.ps1 - arguments: > - -EmulatorMsiUrl "${{ parameters.EmulatorMsiUrl }}" - -StartParameters "${{ parameters.StartParameters }}" - -Stage "Launch" - pwsh: true - displayName: Retry Launch of Public Cosmos DB Emulator - condition: failed() \ No newline at end of file