Skip to content

Commit cb24a79

Browse files
mbhaskarCopilot
andauthored
Add vnext emulator stages back to public CI pipeline (#48737)
* Add vnext emulator stages back to public CI pipeline Remove the internal-only guard ({{ if eq(variables['System.TeamProject'], 'internal') }}) from the VNext emulator test stages in cosmos-sdk-client.yml so they run on both public and internal CI pipelines. The Skip.VnextEmulator variable condition is preserved for opt-out. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Adding dummy change to trigger CI --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c4bc6bb commit cb24a79

2 files changed

Lines changed: 38 additions & 38 deletions

File tree

eng/pipelines/templates/stages/cosmos-sdk-client.yml

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -157,44 +157,43 @@ extends:
157157
displayName: "Print ScalaTest report files"
158158
errorActionPreference: continue
159159
condition: always()
160-
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
161-
- ${{ each mode in parameters.VnextEmulatorModes }}:
162-
- stage:
163-
displayName: Test VNext Emulator with ${{ mode }}
164-
dependsOn: [ ]
165-
condition: and(succeeded(), ne(variables['Skip.VnextEmulator'], 'true'))
166-
variables:
167-
- template: /eng/pipelines/templates/variables/globals.yml
168-
- template: /eng/pipelines/templates/variables/image.yml
169-
- name: ArtifactsJson
170-
value: '${{ convertToJson(parameters.Artifacts) }}'
171-
- name: AdditionalModulesJson
172-
value: '${{ convertToJson(parameters.AdditionalModules) }}'
173-
jobs:
174-
- template: /eng/common/pipelines/templates/jobs/generate-job-matrix.yml
175-
parameters:
176-
JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml
177-
MatrixConfigs:
178-
- Name: Cosmos_vnext_emulator_http_integration
179-
Path: eng/pipelines/templates/stages/cosmos-emulator-vnext-matrix.json
180-
Selection: all
181-
GenerateVMJobs: true
182-
MatrixFilters:
183-
- ${{ parameters.LanguageFilter }}
184-
- ${{ parameters.MatrixFilters }}
185-
AdditionalParameters:
186-
BuildParallelization: 2
187-
DisableAzureResourceCreation: true
188-
ServiceDirectory: cosmos
189-
TimeoutInMinutes: 120
190-
${{ if eq(mode, 'Https') }}:
191-
TestOptions: '$(ProfileFlag) $(AdditionalArgs) -DACCOUNT_HOST=https://localhost:8081/ -DCOSMOS.EMULATOR_SERVER_CERTIFICATE_VALIDATION_DISABLED=true'
192-
${{ else }}:
193-
TestOptions: '$(ProfileFlag) $(AdditionalArgs) -DACCOUNT_HOST=http://localhost:8081/ -DCOSMOS.HTTP_CONNECTION_WITHOUT_TLS_ALLOWED=true'
194-
PreSteps:
195-
- template: /eng/pipelines/templates/steps/cosmos-vnext-emulator.yml
196-
parameters:
197-
Https: ${{ eq(mode, 'Https') }}
160+
- ${{ each mode in parameters.VnextEmulatorModes }}:
161+
- stage:
162+
displayName: Test VNext Emulator with ${{ mode }}
163+
dependsOn: [ ]
164+
condition: and(succeeded(), ne(variables['Skip.VnextEmulator'], 'true'))
165+
variables:
166+
- template: /eng/pipelines/templates/variables/globals.yml
167+
- template: /eng/pipelines/templates/variables/image.yml
168+
- name: ArtifactsJson
169+
value: '${{ convertToJson(parameters.Artifacts) }}'
170+
- name: AdditionalModulesJson
171+
value: '${{ convertToJson(parameters.AdditionalModules) }}'
172+
jobs:
173+
- template: /eng/common/pipelines/templates/jobs/generate-job-matrix.yml
174+
parameters:
175+
JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml
176+
MatrixConfigs:
177+
- Name: Cosmos_vnext_emulator_http_integration
178+
Path: eng/pipelines/templates/stages/cosmos-emulator-vnext-matrix.json
179+
Selection: all
180+
GenerateVMJobs: true
181+
MatrixFilters:
182+
- ${{ parameters.LanguageFilter }}
183+
- ${{ parameters.MatrixFilters }}
184+
AdditionalParameters:
185+
BuildParallelization: 2
186+
DisableAzureResourceCreation: true
187+
ServiceDirectory: cosmos
188+
TimeoutInMinutes: 120
189+
${{ if eq(mode, 'Https') }}:
190+
TestOptions: '$(ProfileFlag) $(AdditionalArgs) -DACCOUNT_HOST=https://localhost:8081/ -DCOSMOS.EMULATOR_SERVER_CERTIFICATE_VALIDATION_DISABLED=true'
191+
${{ else }}:
192+
TestOptions: '$(ProfileFlag) $(AdditionalArgs) -DACCOUNT_HOST=http://localhost:8081/ -DCOSMOS.HTTP_CONNECTION_WITHOUT_TLS_ALLOWED=true'
193+
PreSteps:
194+
- template: /eng/pipelines/templates/steps/cosmos-vnext-emulator.yml
195+
parameters:
196+
Https: ${{ eq(mode, 'Https') }}
198197

199198
# The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch.
200199
- ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}:

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/ConflictTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ public void createCustomPolicyWithSproc() {
9898
assertThat(ex.getMessage()).isEqualTo("sprocName cannot be null");
9999
}
100100
}
101+
101102
}

0 commit comments

Comments
 (0)