Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Internal] Pipelines: Adds rolling pipeline #4460

Merged
merged 3 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions azure-pipelines-rolling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# A pipeline with no CI trigger
trigger: none

pr: none

schedules:
- cron: "0 7,13,0,5 * * *" # cron syntax https://learn.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers?view=azure-devops&tabs=yaml#cron-syntax
ealsur marked this conversation as resolved.
Show resolved Hide resolved
displayName: Cosmos Rolling
branches:
include:
- master
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false

variables:
ReleaseArguments: ' --filter "TestCategory!=Quarantine & TestCategory!=Functional" --verbosity normal '
VmImage: windows-latest # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops

jobs:
- template: templates/build-test.yml
parameters:
BuildConfiguration: Release
Arguments: $(ReleaseArguments)
VmImage: $(VmImage)
MultiRegionConnectionString: $(COSMOSDB_MULTI_REGION)
IncludeEncryption: true
IncludePerformance: false
7 changes: 5 additions & 2 deletions templates/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ parameters:
EmulatorPipeline2CategoryListName: ' Others '
EmulatorPipeline3CategoryListName: ' MultiRegion '
MultiRegionConnectionString : ''
IncludeEncryption: true
IncludePerformance: true

jobs:
- job:
Expand Down Expand Up @@ -53,6 +55,7 @@ jobs:

- job:
displayName: PerformanceTests ${{ parameters.BuildConfiguration }}
condition: and(succeeded(), eq(${{ parameters.IncludePerformance }}, true))
pool:
vmImage: ${{ parameters.VmImage }}

Expand Down Expand Up @@ -150,7 +153,7 @@ jobs:
- job:
displayName: Encryption EmulatorTests ${{ parameters.BuildConfiguration }}
timeoutInMinutes: 90
condition: and(succeeded(), eq('${{ parameters.OS }}', 'Windows'))
condition: and(eq(${{ parameters.IncludeEncryption }}, true), and(succeeded(), eq('${{ parameters.OS }}', 'Windows')))
pool:
vmImage: ${{ parameters.VmImage }}

Expand Down Expand Up @@ -181,7 +184,7 @@ jobs:
- job:
displayName: Encryption.Custom EmulatorTests ${{ parameters.BuildConfiguration }}
timeoutInMinutes: 90
condition: and(succeeded(), eq('${{ parameters.OS }}', 'Windows'))
condition: and(eq(${{ parameters.IncludeEncryption }}, true), and(succeeded(), eq('${{ parameters.OS }}', 'Windows')))
pool:
vmImage: ${{ parameters.VmImage }}

Expand Down