From 2093f4ef815c91ab93c992d895e2ad9ff84e5a83 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:57 -0700 Subject: [PATCH] Fail if the emulator doesn't start (#3777) 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 cda0e8ac1..f1faae362 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