Skip to content

Commit b8ae551

Browse files
authored
Merge branch 'main' into release-network-2023-02-01
2 parents b62915f + 7c667ef commit b8ae551

File tree

7,162 files changed

+1371172
-885878
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,162 files changed

+1371172
-885878
lines changed

.azure-pipelines/live-test.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ parameters:
4343
variables:
4444
ArtifactsName: LiveTestArtifacts
4545
DataLocation: $(Pipeline.Workspace)/$(ArtifactsName)
46+
SuppressAzurePowerShellBreakingChangeWarnings: true
4647

4748
schedules:
4849
- cron: "0 19 * * *"
@@ -173,15 +174,29 @@ stages:
173174

174175
- stage: Report
175176
displayName: Send Report
176-
dependsOn: Test
177+
condition: always()
177178
jobs:
178179
- job:
179180
displayName: Send Live Test Status Report
180181
steps:
182+
- task: PowerShell@2
183+
displayName: Create data location directory
184+
inputs:
185+
pwsh: true
186+
targetType: inline
187+
script:
188+
New-Item -Name $(ArtifactsName) -Path $(Pipeline.Workspace) -ItemType Directory -Force
189+
190+
- task: DownloadPipelineArtifact@2
191+
displayName: Download live test results
192+
inputs:
193+
buildType: 'current'
194+
targetPath: $(Pipeline.Workspace)/$(ArtifactsName)
195+
181196
- task: PowerShell@2
182197
displayName: Send live test report
183198
inputs:
184199
pwsh: true
185200
targetType: filePath
186201
filePath: ./tools/TestFx/Live/SendLiveTestReport.ps1
187-
arguments: $(KustoServicePrincipalTenantId) $(KustoServicePrincipalId) $(KustoServicePrincipalSecret) $(KustoClusterName) $(KustoClusterRegion) $(LiveTestDatabaseName) $(LiveTestTableName) $(Build.BuildId) "$(EmailServiceConnectionString)" "$(EmailFrom)" "$(EmailTo)"
202+
arguments: -EmailServiceConnectionString '$(EmailServiceConnectionString)' -EmailFrom '$(EmailFrom)'

.azure-pipelines/sync-aliases.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Variable 'ADOToken' and 'BotAccessToken' was defined in the Variables tab
1+
# Variable 'BotAccessToken', 'KeyVaultName' and 'ADOTokenName' was defined in the Variables tab
22
schedules:
33
- cron: "50 15 * * *"
44
displayName: 11:50 PM (UTC + 8:00) China Daily Run
@@ -10,14 +10,24 @@ jobs:
1010
- job: UpdateJson
1111
displayName: Update fabricbot.json
1212
steps:
13+
- task: AzurePowerShell@5
14+
inputs:
15+
azureSubscription: 'Azure SDK Infrastructure'
16+
ScriptType: 'InlineScript'
17+
Inline: |
18+
$ADOTokenValue = Get-AzKeyVaultSecret -VaultName ${env:KEYVAULTNAME} -Name ${env:ADOTOKENNAME} -AsPlainText
19+
Write-Host "##vso[task.setvariable variable=ADOToken;issecret=true]$ADOTokenValue"
20+
azurePowerShellVersion: 'LatestVersion'
21+
displayName: Get ADOToken from Key Vault
22+
1323
- pwsh: |
1424
./tools/Github/ParseWiki2Json.ps1 -ADOToken $(ADOToken)
1525
displayName: Update fabricbot.json file locally
16-
26+
1727
- pwsh: |
1828
$gitStatus = git status -s
1929
if (-not $gitStatus) {
20-
Write-Host "The wiki has no changes ."
30+
Write-Host "The wiki has no changes."
2131
Write-Host "##vso[task.setvariable variable=ChangesDetected]false"
2232
} else {
2333
Write-Host "There are changes in the repository."

.azure-pipelines/test-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
pwsh: true
103103
targetType: filePath
104104
filePath: ./tools/TestFx/Coverage/SaveTestCoverageResult.ps1
105-
arguments: CITest $(KustoServicePrincipalTenantId) $(KustoServicePrincipalId) $(KustoServicePrincipalSecret) $(KustoClusterName) $(KustoClusterRegion)
105+
arguments: CITest $(KustoTenantId) $(KustoServicePrincipalId) $(KustoServicePrincipalSecret) $(KustoClusterName) $(KustoClusterRegion)
106106

107107
- task: PowerShell@2
108108
displayName: Update Test Coverage Baseline

.azure-pipelines/util/analyze-steps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ steps:
2424
pwsh: true
2525

2626
- task: UseDotNet@2
27-
displayName: 'Use .NET Core sdk'
27+
displayName: 'Use .NET Core sdk 6.0.x'
2828
inputs:
2929
packageType: sdk
30-
version: 3.1.x
30+
version: 6.0.x
3131

3232
- pwsh: 'Install-Module "platyPS", "PSScriptAnalyzer" -Force -Confirm:$false -Scope CurrentUser'
3333
displayName: 'Install PowerShell Dependencies'
@@ -64,4 +64,4 @@ steps:
6464

6565
- template: publish-artifacts-steps.yml
6666
parameters:
67-
artifactName: analyze-${{ parameters.testFramework }}
67+
artifactName: analyze-${{ parameters.testFramework }}

.azure-pipelines/util/build-steps.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,11 @@ steps:
2323
displayName: 'Check Ignored File'
2424
inputs:
2525
filePath: tools/CheckIgnoredFile.ps1
26-
27-
- task: UseDotNet@2
28-
displayName: 'Use .NET Core sdk 3.1.x'
29-
inputs:
30-
packageType: sdk
31-
version: 3.1.x
32-
3326
- task: UseDotNet@2
3427
displayName: 'Use .NET Core sdk 6.0.x'
3528
inputs:
3629
packageType: sdk
3730
version: 6.0.x
38-
39-
- task: PowerShell@2
40-
displayName: Setup global.json
41-
inputs:
42-
targetType: inline
43-
script: "$SdkVersion=(dotnet --list-sdks | Select-String '[3,4,5].\\d.\\d{3}').Matches[0].Value; dotnet new globaljson --sdk-version $SdkVersion --force"
44-
pwsh: true
4531

4632
- task: DotNetCoreCLI@2
4733
displayName: Build
@@ -58,7 +44,7 @@ steps:
5844
condition: eq(variables.BuildAzPredictor, 'true')
5945
inputs:
6046
targetType: inline
61-
script: "$SdkVersion=(dotnet --list-sdks | Select-String '6.0.\\d{3}').Matches[0].Value; dotnet new globaljson --sdk-version $SdkVersion --force;dotnet msbuild tools/Az.Tools.Predictor/build.proj /t:\"clean;build;test\""
47+
script: "dotnet msbuild tools/Az.Tools.Predictor/build.proj /t:\"clean;build;test\""
6248
pwsh: true
6349
continueOnError: true
6450

.azure-pipelines/util/live-test-steps.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ jobs:
1313

1414
steps:
1515
- task: UseDotNet@2
16-
condition: ne('${{ parameters.dotnetVersion }}', '')
1716
displayName: Install desired .NET version ${{ parameters.dotnetVersion }}
17+
condition: ne('${{ parameters.dotnetVersion }}', '')
1818
inputs:
1919
packageType: sdk
2020
version: ${{ parameters.dotnetVersion }}
2121

2222
- task: PowerShell@2
2323
displayName: Install desired Powershell version ${{ parameters.psVersion }}
24+
condition: ne('${{ parameters.psVersion }}', '')
2425
inputs:
2526
pwsh: true
2627
targetType: filePath
@@ -29,14 +30,15 @@ jobs:
2930

3031
- task: PowerShell@2
3132
displayName: Create live test data location directory
33+
condition: ne(variables['skipLatest'], 'true')
3234
inputs:
3335
pwsh: true
3436
targetType: inline
3537
script:
3638
New-Item -Name $(ArtifactsName) -Path $(Pipeline.Workspace) -ItemType Directory -Force
3739

3840
- task: DownloadPipelineArtifact@2
39-
condition: and(succeeded(), eq(variables['GalleryName'], 'DailyBuild'), eq(variables['PipelineBuildId'], ''))
41+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), eq(variables['GalleryName'], 'DailyBuild'), eq(variables['PipelineBuildId'], ''))
4042
displayName: Download latest artifacts from daily build pipeline main branch
4143
inputs:
4244
buildType: 'specific'
@@ -48,7 +50,7 @@ jobs:
4850
targetPath: $(Pipeline.Workspace)
4951

5052
- task: DownloadPipelineArtifact@2
51-
condition: and(succeeded(), eq(variables['GalleryName'], 'DailyBuild'), ne(variables['PipelineBuildId'], ''))
53+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), eq(variables['GalleryName'], 'DailyBuild'), ne(variables['PipelineBuildId'], ''))
5254
displayName: Download specific artifacts from daily build pipeline
5355
inputs:
5456
buildType: 'specific'
@@ -60,7 +62,7 @@ jobs:
6062
targetPath: $(Pipeline.Workspace)
6163

6264
- task: DownloadPipelineArtifact@2
63-
condition: and(succeeded(), eq(variables['GalleryName'], 'Sign'), eq(variables['PipelineBuildId'], ''))
65+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), eq(variables['GalleryName'], 'Sign'), eq(variables['PipelineBuildId'], ''))
6466
displayName: Download latest artifacts from sign pipeline internal/release branch
6567
inputs:
6668
buildType: 'specific'
@@ -72,7 +74,7 @@ jobs:
7274
targetPath: $(Pipeline.Workspace)
7375

7476
- task: DownloadPipelineArtifact@2
75-
condition: and(succeeded(), eq(variables['GalleryName'], 'Sign'), ne(variables['PipelineBuildId'], ''))
77+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), eq(variables['GalleryName'], 'Sign'), ne(variables['PipelineBuildId'], ''))
7678
displayName: Download specific artifacts from sign pipeline
7779
inputs:
7880
buildType: 'specific'
@@ -84,7 +86,7 @@ jobs:
8486
targetPath: $(Pipeline.Workspace)
8587

8688
- task: PowerShell@2
87-
condition: and(succeeded(), ne(variables['GalleryName'], 'PSGallery'))
89+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), ne(variables['GalleryName'], 'PSGallery'))
8890
displayName: Copy artifacts to local repository
8991
inputs:
9092
pwsh: true
@@ -97,6 +99,7 @@ jobs:
9799
98100
- task: PowerShell@2
99101
displayName: Install desired Az module from $(GalleryName)
102+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'))
100103
inputs:
101104
pwsh: true
102105
targetType: filePath
@@ -105,37 +108,36 @@ jobs:
105108

106109
- task: PowerShell@2
107110
displayName: Connect Azure with live test service principal
111+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'))
108112
inputs:
109113
pwsh: true
110114
targetType: filePath
111115
filePath: ./tools/TestFx/Live/InvokeLiveTestCITask.ps1
112-
arguments: -UseWindowsPowerShell ('${{ parameters.psVersion }}' -eq '5.1') -ScriptFile './tools/TestFx/Live/ConnectLiveTestServicePrincipal.ps1 $(LiveTestServicePrincipalSubscriptionId) $(LiveTestServicePrincipalTenantId) $(LiveTestServicePrincipalId) $(LiveTestServicePrincipalSecret)'
116+
arguments: -UseWindowsPowerShell ('${{ parameters.psVersion }}' -eq '5.1') -ScriptFile './tools/TestFx/Live/ConnectLiveTestServicePrincipal.ps1 $(LiveTestSubscriptionId) $(LiveTestTenantId) $(LiveTestServicePrincipalId) $(LiveTestServicePrincipalSecret)'
113117
failOnStderr: true
114118
retryCountOnTaskFailure: 3
115119

116120
- task: PowerShell@2
117-
displayName: Run top E2E live scenarios
121+
displayName: Run end-to-end live scenarios
122+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'))
118123
inputs:
119124
pwsh: true
120125
targetType: filePath
121126
filePath: ./tools/TestFx/Live/InvokeLiveTestCITask.ps1
122-
arguments: -UseWindowsPowerShell ('${{ parameters.psVersion }}' -eq '5.1') -ScriptFile './tools/TestFx/Live/InvokeLiveTestScenarios.ps1 -RunPlatform ${{ parameters.osType }} -RunPowerShell ${{ parameters.psVersion }} -PowerShellLatest $(PowerShellLatest) -RepoLocation $(Build.SourcesDirectory) -DataLocation $(DataLocation)'
123-
retryCountOnTaskFailure: 3
127+
arguments: -UseWindowsPowerShell ('${{ parameters.psVersion }}' -eq '5.1') -ScriptFile './tools/TestFx/Live/InvokeLiveTestScenarios.ps1 -OSVersion ${{ parameters.vmImage }} -RunPlatform ${{ parameters.osType }} -RunPowerShell ${{ parameters.psVersion }}'
124128

125129
- task: PowerShell@2
126130
displayName: Save live test results to Kusto
127-
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'Schedule'))
131+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Build.SourceBranch'], 'refs/heads/internal/release')))
128132
inputs:
129133
pwsh: true
130134
targetType: filePath
131135
filePath: ./tools/TestFx/Live/SaveLiveTestResult.ps1
132-
arguments: $(KustoServicePrincipalTenantId) $(KustoServicePrincipalId) $(KustoServicePrincipalSecret) $(KustoClusterName) $(KustoClusterRegion) $(LiveTestDatabaseName) $(LiveTestTableName) $(DataLocation) $(Build.BuildId) ${{ parameters.vmImage }} "$(Tag)"
133-
failOnStderr: true
134-
retryCountOnTaskFailure: 3
136+
arguments: $(KustoTenantId) $(KustoServicePrincipalId) $(KustoServicePrincipalSecret) $(KustoClusterName) $(KustoClusterRegion)
135137

136138
- task: PublishPipelineArtifact@1
137139
displayName: Publish live test results to pipeline artifact
140+
condition: and(succeeded(), ne(variables['skipLatest'], 'true'))
138141
inputs:
139142
artifact: livetest-os-${{ parameters.vmImage }}-ps-${{ replace(parameters.psVersion, '*', 'x') }}
140143
targetPath: $(DataLocation)
141-
condition: always()

.ci-config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{
44
"patterns": [
55
"src/{ModuleName}/readme.md",
6-
"src/{ModuleName}[a-zA-Z`.`/]*/readme.md"
6+
"src/{ModuleName}/README.md",
7+
"src/{ModuleName}[a-zA-Z`.`/]*/readme.md",
8+
"src/{ModuleName}[a-zA-Z`.`/]*/README.md",
9+
"src/{ModuleName}/*/README.md",
10+
"src/{ModuleName}/*/readme.md"
711
],
812
"phases": [
913
"build:related-module",

.github/fabricbot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@
28562856
"SecurityInsights"
28572857
],
28582858
"mentionees": [
2859-
"amirke"
2859+
"nazang"
28602860
]
28612861
},
28622862
{

0 commit comments

Comments
 (0)