From 2aea9bbcaae137fa3b98df976e9e74c7bec02ea0 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Sep 2019 10:41:54 -0700 Subject: [PATCH 01/14] add emulator to ci.yml --- .../templates/stages/cosmos-sdk-client.yml | 49 +++++++++++++++++++ sdk/cosmos/ci.yml | 7 +++ 2 files changed, 56 insertions(+) create mode 100644 eng/pipelines/templates/stages/cosmos-sdk-client.yml diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml new file mode 100644 index 000000000000..dc13ace15a57 --- /dev/null +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -0,0 +1,49 @@ +parameters: + Artifacts: [] + ServiceDirectory: not-specified + EmulatorMsiUrl: 'https://acpedaily1.blob.core.windows.net/emulator/azure-cosmos-emulator.msi' + EmulatorStartParameters: '' + +stages: + - stage: Build + jobs: + - template: ../jobs/archetype-sdk-client.yml + parameters: + ServiceDirectory: ${{ parameters.ServiceDirectory }} + # Skip emulator tests in this run + TestMarkArgument: not cosmosEmulator + + # TODO: Refactor into a template? + - job: Emulator + strategy: + matrix: + Windows_Python35: + OSVmImage: 'windows-2019' + OSName: Windows + PythonVersion: '3.5' + Windows_Python27: + OSVmImage: 'windows-2019' + OSName: Windows + PythonVersion: '2.7' + pool: + vmImage: $(OSVmImage) + + steps: + - template: eng/pipelines/templates/steps/cosmos-emulator.yml@azure-sdk-tools + parameters: + EmulatorMsiUrl: ${{ parameters.EmulatorMsiUrl }} + StartParameters: ${{ parameters.EmulatorStartParameters }} + + - template: ../steps/build-test.yml + parameters: + TestMarkArgument: not globaldb + EnvVars: + ACCOUNT_HOST: https://localhost:8081/ + ServiceDirectory: ${{ parameters.ServiceDirectory }} + PythonVersion: $(PythonVersion) + OSName: $(OSName) + ToxTestEnv: 'whl,sdist' + + + + diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index 2d6127966dc2..a276a9bf1115 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -1,6 +1,13 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. +resources: + repositories: + - repository: azure-sdk-tools + type: github + name: Azure/azure-sdk-tools + endpoint: azure + trigger: branches: include: From 1c6b7d7d2031742629d328feaefcff5605b11c50 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Sep 2019 11:04:52 -0700 Subject: [PATCH 02/14] use the right template --- sdk/cosmos/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index a276a9bf1115..5e82b426a04a 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -29,7 +29,7 @@ pr: - sdk/cosmos/ jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-client.yml +- template: ../../eng/pipelines/templates/stages/cosmos-sdk-client.yml parameters: ServiceDirectory: cosmos TestMarkArgument: not cosmosEmulator \ No newline at end of file From 4d2ac25f153a13b66e959c4a837f9139d1f1be96 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Sep 2019 11:05:50 -0700 Subject: [PATCH 03/14] stages --- sdk/cosmos/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index 5e82b426a04a..b68cf4d5d977 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -28,7 +28,7 @@ pr: include: - sdk/cosmos/ -jobs: +stages: - template: ../../eng/pipelines/templates/stages/cosmos-sdk-client.yml parameters: ServiceDirectory: cosmos From 45eea77d577c0ffdaa4d6d89954df6ec9972ff91 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Sep 2019 14:41:50 -0700 Subject: [PATCH 04/14] mark globaldb tests, try removing emulator from live tests --- .../templates/stages/cosmos-sdk-client.yml | 6 +-- sdk/cosmos/.azure-pipelines/cosmos.live.yml | 45 ------------------- .../azure-cosmos/test/globaldb_tests.py | 2 +- sdk/cosmos/ci.yml | 1 - 4 files changed, 2 insertions(+), 52 deletions(-) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index dc13ace15a57..ce6cef865a8f 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -10,7 +10,7 @@ stages: - template: ../jobs/archetype-sdk-client.yml parameters: ServiceDirectory: ${{ parameters.ServiceDirectory }} - # Skip emulator tests in this run + # Skip emulator tests in the CI run TestMarkArgument: not cosmosEmulator # TODO: Refactor into a template? @@ -43,7 +43,3 @@ stages: PythonVersion: $(PythonVersion) OSName: $(OSName) ToxTestEnv: 'whl,sdist' - - - - diff --git a/sdk/cosmos/.azure-pipelines/cosmos.live.yml b/sdk/cosmos/.azure-pipelines/cosmos.live.yml index d94f412f41a8..53c87acb65ea 100644 --- a/sdk/cosmos/.azure-pipelines/cosmos.live.yml +++ b/sdk/cosmos/.azure-pipelines/cosmos.live.yml @@ -31,51 +31,6 @@ jobs: vmImage: $(OSVmImage) steps: - - task: PowerShell@1 - displayName: 'Download Public Cosmos Emulator' - inputs: - scriptType: inlineScript - inlineScript: | - Write-Host "Downloading Cosmos Emulator - $(EmulatorMsiUrl)" - wget "$(EmulatorMsiUrl)" -outfile "$env:temp\azure-cosmosdb-emulator.msi" - Write-Host "Finished Downloading Cosmos Emulator - $env:temp\azure-cosmosdb-emulator.msi" - dir "$env:temp" - - - task: CmdLine@2 - displayName: 'Cleanup already installed Azure Cosmos DB Emulator' - inputs: - script: | - echo "Deleting Azure Cosmos DB Emulator directory" - dir "%ProgramFiles%\" - rmdir /Q /S "%ProgramFiles%\Azure Cosmos DB Emulator" - echo "Directory after deleting" - dir "%ProgramFiles%\" - - - task: CmdLine@2 - displayName: 'Install Public Cosmos DB Emulator' - inputs: - script: | - choco install lessmsi - choco upgrade lessmsi - echo "Checking directory" - dir "%ProgramFiles%" - mkdir "%TEMP%\Azure Cosmos DB Emulator" - lessmsi x "%TEMP%\azure-cosmosdb-emulator.msi" "%TEMP%\Azure Cosmos DB Emulator\" - dir "%TEMP%" - dir "%Temp%\Azure Cosmos DB Emulator\" - - - task: PowerShell@1 - displayName: 'Run Public Cosmos DB Emulator' - inputs: - scriptType: inlineScript - inlineScript: | - dir "$env:Temp\" - dir "$env:Temp\Azure Cosmos DB Emulator" - dir "$env:Temp\Azure Cosmos DB Emulator\SourceDir\" - dir "$env:Temp\Azure Cosmos DB Emulator\SourceDir\Azure Cosmos DB Emulator" - Write-Host "Starting Comsos DB Emulator" - Start-Process "$env:Temp\Azure Cosmos DB Emulator\SourceDir\Azure Cosmos DB Emulator\CosmosDB.Emulator.exe" "/NoExplorer /NoUI" -Verb RunAs - - task: UsePythonVersion@0 displayName: 'Use Python $(PythonVersion)' inputs: diff --git a/sdk/cosmos/azure-cosmos/test/globaldb_tests.py b/sdk/cosmos/azure-cosmos/test/globaldb_tests.py index fc9e5d194f38..00c29b334532 100644 --- a/sdk/cosmos/azure-cosmos/test/globaldb_tests.py +++ b/sdk/cosmos/azure-cosmos/test/globaldb_tests.py @@ -35,7 +35,7 @@ from azure.cosmos.http_constants import HttpHeaders, StatusCodes, SubStatusCodes import test_config -pytestmark = pytest.mark.cosmosEmulator +pytestmark = [pytest.mark.cosmosEmulator, pytest.mark.globaldb] #IMPORTANT NOTES: diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index b68cf4d5d977..aebb31536819 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -32,4 +32,3 @@ stages: - template: ../../eng/pipelines/templates/stages/cosmos-sdk-client.yml parameters: ServiceDirectory: cosmos - TestMarkArgument: not cosmosEmulator \ No newline at end of file From b4ed3b88b396976ea63ffc571805551e976bc6af Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Sep 2019 16:08:28 -0700 Subject: [PATCH 05/14] mark additional globaldb test --- sdk/cosmos/azure-cosmos/test/globaldb_mock_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cosmos/azure-cosmos/test/globaldb_mock_tests.py b/sdk/cosmos/azure-cosmos/test/globaldb_mock_tests.py index 886e842be63c..98e9e2e68bb7 100644 --- a/sdk/cosmos/azure-cosmos/test/globaldb_mock_tests.py +++ b/sdk/cosmos/azure-cosmos/test/globaldb_mock_tests.py @@ -32,7 +32,7 @@ from azure.cosmos import _retry_utility import test_config -pytestmark = pytest.mark.cosmosEmulator +pytestmark = [pytest.mark.cosmosEmulator, pytest.mark.globaldb] location_changed = False From bb64812bb650ad6a13be629c672da4bd5aa244d2 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Sep 2019 16:38:22 -0700 Subject: [PATCH 06/14] use the accepted gating cosmos emulator url --- eng/pipelines/templates/stages/cosmos-sdk-client.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index ce6cef865a8f..0d5dc89d915e 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -1,7 +1,8 @@ parameters: Artifacts: [] ServiceDirectory: not-specified - EmulatorMsiUrl: 'https://acpedaily1.blob.core.windows.net/emulator/azure-cosmos-emulator.msi' + EmulatorMsiUrl: 'https://aka.ms/cosmosdb-emulator' + # 'https://acpedaily1.blob.core.windows.net/emulator/azure-cosmos-emulator.msi' EmulatorStartParameters: '' stages: From 5ac0ccd277d8750b4b2ae7fbc528f7817e063d00 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 10 Sep 2019 09:34:51 -0700 Subject: [PATCH 07/14] live tests --- .../templates/jobs/archetype-sdk-tests.yml | 2 ++ sdk/cosmos/tests.yml | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 sdk/cosmos/tests.yml diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index ff12fe009baf..d34f921dae99 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -4,6 +4,7 @@ parameters: MaxParallel: 0 BeforeTestSteps: [] BuildTargetingString: 'azure-*' + TestMarkArgument: '' Matrix: Linux_Python35: OSName: 'Linux' @@ -43,3 +44,4 @@ jobs: PythonVersion: $(PythonVersion) OSName: $(OSName) ToxTestEnv: "whl" + TestMarkArgument: ${{ parameters.TestMarkArgument }} diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml new file mode 100644 index 000000000000..da7d0155910d --- /dev/null +++ b/sdk/cosmos/tests.yml @@ -0,0 +1,29 @@ +trigger: none + +jobs: + - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + MaxParallel: 1 + Matrix: + Linux_Python35: + OSName: 'Linux' + OSVmImage: 'ubuntu-16.04' + PythonVersion: '3.5' + MacOs_Python37: + OSName: 'MacOS' + OSVmImage: 'macOS-10.14' + PythonVersion: '3.7' + Windows_Python27: + OSName: 'Windows' + OSVmImage: 'windows-2019' + PythonVersion: '2.7' + Linux_Pypy3: + OSName: 'Linux' + OSVmImage: 'ubuntu-16.04' + PythonVersion: 'pypy3' + BuildTargetingString: $(BuildTargetingString) + ServiceDirectory: cosmos + TestMarkArgument: not globaldb + EnvVars: + ACCOUNT_KEY: $(python-cosmos-live-account-key) + ACCOUNT_HOST: $(python-cosmos-live-account-host) From 80bb8097bddfed35d3a39a8a3e30b7fb776b0d92 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 10 Sep 2019 09:37:18 -0700 Subject: [PATCH 08/14] full parallelism ahead --- sdk/cosmos/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index da7d0155910d..5bc948b1db81 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -3,7 +3,6 @@ trigger: none jobs: - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: - MaxParallel: 1 Matrix: Linux_Python35: OSName: 'Linux' From 3bded68fd1e323660ddaeded727696af02a464c6 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 11 Sep 2019 11:29:41 -0700 Subject: [PATCH 09/14] remove redundant BuildTargetingString --- sdk/cosmos/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index 5bc948b1db81..1cee4902db98 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -20,7 +20,6 @@ jobs: OSName: 'Linux' OSVmImage: 'ubuntu-16.04' PythonVersion: 'pypy3' - BuildTargetingString: $(BuildTargetingString) ServiceDirectory: cosmos TestMarkArgument: not globaldb EnvVars: From 13598d2d78af8a6a2fc296f1445c26a0fc78ca1b Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 11 Sep 2019 12:48:44 -0700 Subject: [PATCH 10/14] reset parallelism because of request rate limits --- sdk/cosmos/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index 1cee4902db98..0fa2551c7626 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -3,6 +3,7 @@ trigger: none jobs: - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: + MaxParallel: 1 Matrix: Linux_Python35: OSName: 'Linux' From 7dbb6898dd5918e426a5e2228537ecc16c30c43d Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 11 Sep 2019 13:26:56 -0700 Subject: [PATCH 11/14] make coverage arg into a variable because of build-test.yml's construction --- eng/pipelines/templates/jobs/archetype-sdk-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index d34f921dae99..9b0af542709a 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -23,6 +23,7 @@ jobs: - job: 'Test' variables: skipComponentGovernanceDetection: true + CoverageArg: --disablecov timeoutInMinutes: 120 strategy: @@ -38,7 +39,7 @@ jobs: parameters: BuildTargetingString: ${{ parameters.BuildTargetingString }} ServiceDirectory: ${{ parameters.ServiceDirectory }} - CoverageArg: '--disablecov' + CoverageArg: $(CoverageArg) EnvVars: ${{ parameters.EnvVars }} BeforeTestSteps: ${{ parameters.BeforeTestSteps }} PythonVersion: $(PythonVersion) From 7a20ee300bd89dbdd32eb4a72afd0114dd6e0d0d Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 11 Sep 2019 16:17:41 -0700 Subject: [PATCH 12/14] remove extra comment, extra templates don't add value here given that this file is cosmos-specific already --- eng/pipelines/templates/stages/cosmos-sdk-client.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 0d5dc89d915e..97e8b36108ee 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -14,7 +14,6 @@ stages: # Skip emulator tests in the CI run TestMarkArgument: not cosmosEmulator - # TODO: Refactor into a template? - job: Emulator strategy: matrix: From 4c9ae5e08bf5c0e0ef56c198eace23cd14ec2204 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 11 Sep 2019 16:30:48 -0700 Subject: [PATCH 13/14] remove old cosmos pipelines --- sdk/cosmos/.azure-pipelines/cosmos.live.yml | 60 ------------ sdk/cosmos/.azure-pipelines/cosmos.test.yml | 103 -------------------- 2 files changed, 163 deletions(-) delete mode 100644 sdk/cosmos/.azure-pipelines/cosmos.live.yml delete mode 100644 sdk/cosmos/.azure-pipelines/cosmos.test.yml diff --git a/sdk/cosmos/.azure-pipelines/cosmos.live.yml b/sdk/cosmos/.azure-pipelines/cosmos.live.yml deleted file mode 100644 index 53c87acb65ea..000000000000 --- a/sdk/cosmos/.azure-pipelines/cosmos.live.yml +++ /dev/null @@ -1,60 +0,0 @@ -trigger: none - -pr: - branches: - include: - - master - - feature/* - - hotfix/* - - release/* - - restapi* - paths: - include: - - sdk/cosmos - -jobs: - - job: 'Emulator' - - timeoutInMinutes: 120 - continueOnError: false - strategy: - maxParallel: 1 - matrix: - Windows_Python35: - OSVmImage: 'windows-2019' - PythonVersion: '3.5' - Windows_Python27: - OSVmImage: 'windows-2019' - PythonVersion: '2.7' - - pool: - vmImage: $(OSVmImage) - - steps: - - task: UsePythonVersion@0 - displayName: 'Use Python $(PythonVersion)' - inputs: - versionSpec: $(PythonVersion) - - - script: | - python -m pip install --upgrade pip - pip install setuptools --upgrade - python scripts/dev_setup.py --packageList azure-cosmos - displayName: 'Set up Environment' - - - task: PowerShell@1 - displayName: 'Run Python Tests' - inputs: - scriptType: inlineScript - inlineScript: | - pytest --junitxml=sdk/cosmos/azure-cosmos/Test-junit.xml --verbose sdk/cosmos/azure-cosmos/test -k "not globaldb" - env: - ACCOUNT_KEY: $(python-cosmos-live-account-key) - ACCOUNT_HOST: $(python-cosmos-live-account-host) - condition: succeededOrFailed() - - - task: PublishTestResults@2 - displayName: 'Publish Python Test Results' - inputs: - testResultsFiles: '**\TEST-*.xml' - testRunTitle: 'Cosmos $(OSName) Node $(PythonVersion) - Python' diff --git a/sdk/cosmos/.azure-pipelines/cosmos.test.yml b/sdk/cosmos/.azure-pipelines/cosmos.test.yml deleted file mode 100644 index 322faa0baa6c..000000000000 --- a/sdk/cosmos/.azure-pipelines/cosmos.test.yml +++ /dev/null @@ -1,103 +0,0 @@ -trigger: none - -pr: - branches: - include: - - master - - feature/* - - hotfix/* - - release/* - - restapi* - paths: - include: - - sdk/cosmos - -jobs: - - job: 'Emulator' - - timeoutInMinutes: 120 - continueOnError: false - strategy: - matrix: - Windows_Python35: - OSVmImage: 'windows-2019' - PythonVersion: '3.5' - Windows_Python27: - OSVmImage: 'windows-2019' - PythonVersion: '2.7' - - pool: - vmImage: $(OSVmImage) - - steps: - - task: PowerShell@1 - displayName: 'Download Public Cosmos Emulator' - inputs: - scriptType: inlineScript - inlineScript: | - Write-Host "Downloading Cosmos Emulator - $(EmulatorMsiUrl)" - wget "$(EmulatorMsiUrl)" -outfile "$env:temp\azure-cosmosdb-emulator.msi" - Write-Host "Finished Downloading Cosmos Emulator - $env:temp\azure-cosmosdb-emulator.msi" - dir "$env:temp" - - - task: CmdLine@2 - displayName: 'Cleanup already installed Azure Cosmos DB Emulator' - inputs: - script: | - echo "Deleting Azure Cosmos DB Emulator directory" - dir "%ProgramFiles%\" - rmdir /Q /S "%ProgramFiles%\Azure Cosmos DB Emulator" - echo "Directory after deleting" - dir "%ProgramFiles%\" - - - task: CmdLine@2 - displayName: 'Install Public Cosmos DB Emulator' - inputs: - script: | - choco install lessmsi - choco upgrade lessmsi - echo "Checking directory" - dir "%ProgramFiles%" - mkdir "%TEMP%\Azure Cosmos DB Emulator" - lessmsi x "%TEMP%\azure-cosmosdb-emulator.msi" "%TEMP%\Azure Cosmos DB Emulator\" - dir "%TEMP%" - dir "%Temp%\Azure Cosmos DB Emulator\" - - - task: PowerShell@1 - displayName: 'Run Public Cosmos DB Emulator' - inputs: - scriptType: inlineScript - inlineScript: | - dir "$env:Temp\" - dir "$env:Temp\Azure Cosmos DB Emulator" - dir "$env:Temp\Azure Cosmos DB Emulator\SourceDir\" - dir "$env:Temp\Azure Cosmos DB Emulator\SourceDir\Azure Cosmos DB Emulator" - Write-Host "Starting Comsos DB Emulator" - Start-Process "$env:Temp\Azure Cosmos DB Emulator\SourceDir\Azure Cosmos DB Emulator\CosmosDB.Emulator.exe" "/NoExplorer /NoUI" -Verb RunAs - - - task: UsePythonVersion@0 - displayName: 'Use Python $(PythonVersion)' - inputs: - versionSpec: $(PythonVersion) - - - script: | - python -m pip install --upgrade pip - pip install setuptools --upgrade - python scripts/dev_setup.py --packageList azure-cosmos - displayName: 'Set up Environment' - - - task: PowerShell@1 - displayName: 'Run Python Tests' - inputs: - scriptType: inlineScript - inlineScript: | - $env:ACCOUNT_HOST="https://localhost:8081/" - cmd /c 'pytest --junitxml=sdk/cosmos/azure-cosmos/Test-junit.xml --verbose sdk/cosmos/azure-cosmos/test -k "not globaldb"' - - condition: succeededOrFailed() - - - task: PublishTestResults@2 - displayName: 'Publish Python Test Results' - inputs: - testResultsFiles: '**\TEST-*.xml' - testRunTitle: 'Cosmos $(OSName) Node $(PythonVersion) - Python' From 2db1995458f665aba9c2c29c97aca5e3fead239c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 12 Sep 2019 14:51:49 -0700 Subject: [PATCH 14/14] remove extra comment --- eng/pipelines/templates/stages/cosmos-sdk-client.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 97e8b36108ee..9019431fad73 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -2,7 +2,6 @@ parameters: Artifacts: [] ServiceDirectory: not-specified EmulatorMsiUrl: 'https://aka.ms/cosmosdb-emulator' - # 'https://acpedaily1.blob.core.windows.net/emulator/azure-cosmos-emulator.msi' EmulatorStartParameters: '' stages: