Skip to content

Commit 85ec06b

Browse files
authored
sync cosmosdb (Azure#28433)
2 parents e6a4fab + 1b779a6 commit 85ec06b

File tree

7,046 files changed

+983102
-588540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,046 files changed

+983102
-588540
lines changed

.azure-pipelines/PipelineSteps/BatchGeneration/analyse-modules.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ foreach ($moduleName in $moduleGroup) {
6262
{
6363
$FailedTasks += "UXMetadata"
6464
}
65-
.("$toolsDirectory/ExecuteCIStep.ps1") -StaticAnalysisCmdletDiff @Parameters 2>>$ErrorLogPath
66-
If (($LASTEXITCODE -ne 0) -and ($LASTEXITCODE -ne $null))
67-
{
68-
$FailedTasks += "CmdletDiff"
69-
}
7065
If ($FailedTasks.Length -ne 0)
7166
{
7267
Write-Host "There are failed tasks: $FailedTasks"

.azure-pipelines/sync-aliases.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,20 @@ jobs:
3434
dotnet tool install powershell --version 7.4.*
3535
displayName: Install PowerShell 7.4.x
3636
37+
- pwsh: |
38+
if (-not (Get-PackageProvider -Name NuGet -ErrorAction SilentlyContinue)) {
39+
Install-PackageProvider -Name NuGet -Force
40+
}
41+
Install-Package -Name YamlDotNet -RequiredVersion $(YamlDotNetVersion) -ProviderName NuGet -Force -ErrorAction Stop
42+
displayName: Install YamlDotNet NuGet Package
43+
retryCountOnTaskFailure: 5
44+
3745
- pwsh: |
3846
dotnet tool run pwsh -NoLogo -NoProfile -NonInteractive -File ./tools/Github/ParseServiceContactsList.ps1 -AccessToken $env:SYSTEM_ACCESSTOKEN
3947
env:
4048
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
4149
displayName: Update resourceManagement.yml file locally
50+
condition: succeeded()
4251
4352
- pwsh: |
4453
$hasChanges = git diff --name-only .github/policies

.azure-pipelines/test-coverage.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ parameters:
77
displayName: Test Framework
88
type: string
99
default: net8.0
10-
- name: testPoolName
11-
displayName: Test Pool Name
12-
type: string
13-
default: pool-windows-2019
14-
- name: testPoolVMImage
15-
displayName: Test Pool VM Image
16-
type: string
17-
default: ' '
10+
- name: updateBaseline
11+
displayName: Update Test Coverage Baseline?
12+
type: boolean
13+
default: false
1814

1915
variables:
2016
EnableTestCoverage: true
@@ -51,9 +47,7 @@ jobs:
5147
- job: TestCoverage
5248
dependsOn: Build
5349
timeoutInMinutes: 600
54-
pool:
55-
name: ${{ parameters.testPoolName }}
56-
vmImage: ${{ parameters.testPoolVMImage }}
50+
pool: pool-windows-2019
5751

5852
steps:
5953
- task: UseDotNet@2
@@ -85,7 +79,7 @@ jobs:
8579

8680
- task: PowerShell@2
8781
displayName: Test Autorest-Based Cmdlets
88-
condition: succeeded()
82+
condition: succeededOrFailed()
8983
inputs:
9084
pwsh: true
9185
targetType: inline
@@ -103,18 +97,20 @@ jobs:
10397
10498
- task: PowerShell@2
10599
displayName: Analyze Test Coverage
106-
condition: succeeded()
100+
condition: succeededOrFailed()
107101
inputs:
108102
pwsh: true
109103
targetType: filePath
110104
filePath: ./tools/TestFx/Coverage/AnalyzeTestCoverage.ps1
111-
arguments: -CalcBaseline
105+
arguments: '-CalcBaseline:$${{ parameters.updateBaseline }}'
112106

113107
- template: util/get-github-pat-steps.yml
108+
parameters:
109+
execCondition: and(succeeded(), ${{ parameters.updateBaseline }})
114110

115111
- task: PowerShell@2
116112
displayName: Update Test Coverage Baseline
117-
condition: succeeded()
113+
condition: and(succeeded(), ${{ parameters.updateBaseline }})
118114
inputs:
119115
pwsh: true
120116
targetType: inline

.azure-pipelines/util/get-github-pat-steps.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
parameters:
2+
- name: execCondition
3+
type: string
4+
default: succeeded()
5+
16
steps:
27
- task: AzurePowerShell@5
8+
displayName: Get GitHub PAT from Key Vault
9+
condition: ${{ parameters.execCondition }}
310
inputs:
411
pwsh: true
12+
azurePowerShellVersion: 'LatestVersion'
513
azureSubscription: '$(AzureSubscription)'
614
ScriptType: 'InlineScript'
715
Inline: |
816
$GithubToken = Get-AzKeyVaultSecret -VaultName $(GithubPATKeyVaultName) -Name $(GithubPATKeyVaultAccount) -AsPlainText
917
Write-Host "##vso[task.setvariable variable=GithubToken;issecret=true]$GithubToken"
10-
azurePowerShellVersion: 'LatestVersion'
11-
displayName: Get Github PAT from Key Vault

.github/CODEOWNERS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# @wyunchi-ms @dolauli @isra-fel are from the Azure PowerShell team. Adding them ensures they can merge the PR for those modules.
22
# To make sure Network PRs go to the right branch, e.g. network-april
3-
/src/Compute/ @EdwinBernal1 @grizzlytheodore @ntangy @sandido @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
4-
/src/PolicyInsights/ @pilor @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
5-
/src/Batch/ @wiboris @dpwatrous @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
3+
/src/Compute/ @EdwinBernal1 @grizzlytheodore @ntangy @sandido @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
4+
/src/PolicyInsights/ @pilor @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
5+
/src/Batch/ @wiboris @dpwatrous @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
66

77
# Make sure Device Registry team gets notified of any DeviceRegistry PRs:
88
# PRLabel: %Device Registry
9-
/src/DeviceRegistry/ @marcodalessandro @rohankhandelwal @riteshrao @davidemontanari @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
9+
/src/DeviceRegistry/ @marcodalessandro @rohankhandelwal @riteshrao @davidemontanari @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
1010

1111
# Make sure changes to .github folder go through our team's double check
12-
/.github/ @wyunchi-ms @dolauli @isra-fel
12+
/.github/ @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi

0 commit comments

Comments
 (0)