Skip to content

Commit

Permalink
* update ci.yml for azcosmos to _pass_ the injected stage rather than…
Browse files Browse the repository at this point in the history
… calling it directly

* touch every ci.yml to swap them from stages to extends. ***NO_CI***
  • Loading branch information
scbedd committed Mar 15, 2024
1 parent 6289abf commit 88d8a7e
Show file tree
Hide file tree
Showing 261 changed files with 563 additions and 567 deletions.
4 changes: 2 additions & 2 deletions profile/p20200901/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- profile/p20200901/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: '../profile/p20200901'
4 changes: 2 additions & 2 deletions sdk/ai/azopenai/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
include:
- sdk/ai/azopenai

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
# We need to allow for longer retry times with tests that run against the public endpoint
# which throttles under load. Note, I left a little wiggle room since the TimeoutInMinutes
Expand Down
4 changes: 2 additions & 2 deletions sdk/ai/azopenaiassistants/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
include:
- sdk/ai/azopenaiassistants

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
# We need to allow for longer retry times with tests that run against the public endpoint
# which throttles under load. Note, I left a little wiggle room since the TimeoutInMinutes
Expand Down
4 changes: 2 additions & 2 deletions sdk/azidentity/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/azidentity/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
CloudConfig:
Public:
Expand Down
4 changes: 2 additions & 2 deletions sdk/containers/azcontainerregistry/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/containers/azcontainerregistry

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'containers/azcontainerregistry'
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/data/azappconfig/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/data/azappconfig

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'data/azappconfig'
RunLiveTests: true
Expand Down
90 changes: 43 additions & 47 deletions sdk/data/azcosmos/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,58 +20,54 @@ pr:
include:
- sdk/data/azcosmos/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'data/azcosmos'
UsePipelineProxy: false
ExcludeGoNMinus2: true
- stage: Emulator
displayName: 'Cosmos Emulator'
variables:
- template: /eng/pipelines/templates/variables/globals.yml
jobs:
- job: DownloadAndRunCosmosEmulator
displayName: Download and run Cosmos Emulator
AdditionalStages:
- stage: Emulator
displayName: 'Cosmos Emulator'
variables:
- template: /eng/pipelines/templates/variables/globals.yml@self
- template: /eng/pipelines/templates/variables/image.yml@self
jobs:
- job: DownloadAndRunCosmosEmulator
displayName: Download and run Cosmos Emulator

strategy:
matrix:
Windows_Go120:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.22.0'
pool:
name: $(pool.name)
vmImage: $(image.name)
pool:
name: $(WINDOWSPOOL)
image: $(WINDOWSVMIMAGE)
os: windows

steps:
- template: /eng/common/pipelines/templates/steps/cosmos-emulator.yml
parameters:
StartParameters: '/noexplorer /noui /enablepreview /disableratelimiting /enableaadauthentication /partitioncount=50 /consistency=Strong /EnableSqlComputeEndpoint'
- powershell: |
$Key = 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
$password = ConvertTo-SecureString -String $Key -Force -AsPlainText
$cert = Get-ChildItem cert:\LocalMachine\My | Where-Object { $_.FriendlyName -eq "DocumentDbEmulatorCertificate" }
Export-PfxCertificate -Cert $cert -FilePath ".\CosmosDbEmulatorCert.pfx" -Password $password | Out-Null
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$cert.Import(".\CosmosDbEmulatorCert.pfx", $Key, "DefaultKeySet")
$cert | Export-Certificate -FilePath "$env:temp\CosmosDbEmulatorCert.cer" -Type CERT
displayName: 'Export Cosmos DB Emulator Certificate'
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
parameters:
AgentImage: $(image.name)
steps:
- template: /eng/common/pipelines/templates/steps/cosmos-emulator.yml@self
parameters:
StartParameters: '/noexplorer /noui /enablepreview /disableratelimiting /enableaadauthentication /partitioncount=50 /consistency=Strong /EnableSqlComputeEndpoint'
- powershell: |
$Key = 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
$password = ConvertTo-SecureString -String $Key -Force -AsPlainText
$cert = Get-ChildItem cert:\LocalMachine\My | Where-Object { $_.FriendlyName -eq "DocumentDbEmulatorCertificate" }
Export-PfxCertificate -Cert $cert -FilePath ".\CosmosDbEmulatorCert.pfx" -Password $password | Out-Null
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$cert.Import(".\CosmosDbEmulatorCert.pfx", $Key, "DefaultKeySet")
$cert | Export-Certificate -FilePath "$env:temp\CosmosDbEmulatorCert.cer" -Type CERT
displayName: 'Export Cosmos DB Emulator Certificate'
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml@self
parameters:
AgentImage: windows

- task: GoTool@0
inputs:
version: '$(go.version)'
displayName: "Select Go Version"
- task: GoTool@0
inputs:
version: '$(go.version)'
displayName: "Select Go Version"

- template: /eng/pipelines/templates/steps/create-go-workspace.yml
- template: /eng/pipelines/templates/steps/create-go-workspace.yml@self

- template: /eng/pipelines/templates/steps/build-test.yml
parameters:
ServiceDirectory: 'data/azcosmos'
Image: $(vm.image)
GoVersion: $(go.version)
EnvVars:
EMULATOR: 'true'
- template: /eng/pipelines/templates/steps/build-test.yml@self
parameters:
ServiceDirectory: 'data/azcosmos'
Image: $(vm.image)
GoVersion: $(go.version)
EnvVars:
EMULATOR: 'true'
4 changes: 2 additions & 2 deletions sdk/data/aztables/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pr:
- eng/common/testproxy
# adding eng/common/testproxy as aztables is a good exercise of the test-proxy features. if a new proxy version works on this build, we can be confident updating to it

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'data/aztables'
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/internal/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pr:
- sdk/internal/
- eng/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: internal
LicenseCheck: false
4 changes: 2 additions & 2 deletions sdk/messaging/azeventgrid/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
include:
- sdk/messaging/azeventgrid

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: "messaging/azeventgrid"
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/messaging/azeventhubs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/messaging/azeventhubs

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'messaging/azeventhubs'
# (live tests not yet ready to run)
Expand Down
4 changes: 2 additions & 2 deletions sdk/messaging/azservicebus/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/messaging/azservicebus

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'messaging/azservicebus'
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/messaging/azwebpubsub/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
- sdk/messaging/azwebpubsub/


stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'messaging/azwebpubsub'
UsePipelineProxy: false
Expand Down
4 changes: 2 additions & 2 deletions sdk/messaging/eventgrid/aznamespaces/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/messaging/eventgrid/aznamespaces

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: "messaging/eventgrid/aznamespaces"
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/messaging/eventgrid/azsystemevents/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/messaging/eventgrid/azsystemevents

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: "messaging/eventgrid/azsystemevents"
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/azquery/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
- sdk/monitor/azquery


stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'monitor/azquery'
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/query/azlogs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
- sdk/monitor/query/azlogs


stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'monitor/query/azlogs'
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/query/azmetrics/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pr:
- sdk/monitor/query/azmetrics


stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: 'monitor/query/azmetrics'
RunLiveTests: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/resourcemanager/aad/armaad/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/aad/armaad/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/aad/armaad'
4 changes: 2 additions & 2 deletions sdk/resourcemanager/addons/armaddons/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/addons/armaddons/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/addons/armaddons'
4 changes: 2 additions & 2 deletions sdk/resourcemanager/advisor/armadvisor/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/advisor/armadvisor/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/advisor/armadvisor'
4 changes: 2 additions & 2 deletions sdk/resourcemanager/agrifood/armagrifood/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/agrifood/armagrifood/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/agrifood/armagrifood'
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/alertsmanagement/armalertsmanagement/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/alertsmanagement/armalertsmanagement'
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/analysisservices/armanalysisservices/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/analysisservices/armanalysisservices'
4 changes: 2 additions & 2 deletions sdk/resourcemanager/apicenter/armapicenter/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/apicenter/armapicenter/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/apicenter/armapicenter'
4 changes: 2 additions & 2 deletions sdk/resourcemanager/apimanagement/armapimanagement/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/apimanagement/armapimanagement/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/apimanagement/armapimanagement'
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/appcomplianceautomation/armappcomplianceautomation'
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/appconfiguration/armappconfiguration/

stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/appconfiguration/armappconfiguration'
Loading

0 comments on commit 88d8a7e

Please sign in to comment.