Skip to content

Commit

Permalink
[Internal] Pipelines: Adds yml Files for New Multi-region CI Pipelines (
Browse files Browse the repository at this point in the history
#4301)

* added yml files

* added TestCategory param

* fixed pipeline yml files

* Update templates/build-test.yml

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* suggested changes

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
  • Loading branch information
NaluTripician and ealsur authored Mar 20, 2024
1 parent 652b99d commit ab80170
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions templates/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ parameters:
OS: 'Windows'
EmulatorPipeline1Arguments: ' --filter "TestCategory!=Quarantine & TestCategory!=Functional & TestCategory!=ClientTelemetryRelease & TestCategory!=LongRunning & (TestCategory=ClientTelemetryEmulator|TestCategory=Query|TestCategory=ReadFeed|TestCategory=Batch|TestCategory=ChangeFeed)" --verbosity normal '
EmulatorPipeline2Arguments: ' --filter "TestCategory!=Quarantine & TestCategory!=Functional & TestCategory!=ClientTelemetryRelease & TestCategory!=ClientTelemetryEmulator & TestCategory!=Query & TestCategory!=ReadFeed & TestCategory!=Batch & TestCategory!=ChangeFeed & TestCategory!=LongRunning" --verbosity normal '
EmulatorPipeline3Arguments: ' --filter "TestCategory=MultiRegion" --verbosity normal '
EmulatorPipeline1CategoryListName: ' Client Telemetry, Query, ChangeFeed, ReadFeed, Batch ' # Divided in 2 categories to run them in parallel and reduce the PR feedback time
EmulatorPipeline2CategoryListName: ' Others '
EmulatorPipeline3CategoryListName: ' MultiRegion '

jobs:
- job:
Expand Down Expand Up @@ -205,3 +207,32 @@ jobs:
nugetConfigPath: NuGet.config
publishTestResults: true
testRunTitle: Microsoft.Azure.Cosmos.Encryption.Custom.EmulatorTests

- job:
displayName: EmulatorTests ${{ parameters.BuildConfiguration }} - ${{ parameters.EmulatorPipeline3CategoryListName }}
timeoutInMinutes: 120
condition: and(succeeded(), eq('${{ parameters.OS }}', 'Windows'))
pool:
vmImage: ${{ parameters.VmImage }}

steps:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'sdk'
version: '6.x'

- task: DotNetCoreCLI@2
displayName: Microsoft.Azure.Cosmos.EmulatorTests
condition: succeeded()
inputs:
command: test
projects: 'Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/*.csproj'
arguments: ${{ parameters.EmulatorPipeline3Arguments }} --configuration ${{ parameters.BuildConfiguration }} /p:OS=${{ parameters.OS }}
nugetConfigPath: NuGet.config
publishTestResults: true
testRunTitle: Microsoft.Azure.Cosmos.EmulatorTests

0 comments on commit ab80170

Please sign in to comment.