Skip to content

Commit 13467d5

Browse files
committed
merge main
2 parents d716236 + 7e054e8 commit 13467d5

File tree

9,895 files changed

+1615419
-300427
lines changed

Some content is hidden

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

9,895 files changed

+1615419
-300427
lines changed

.azure-pipelines/SyncFromMainBranchConfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
".ci-config.json",
44
"tools",
55
".azure-pipelines",
6+
".github",
67
"src/lib",
78
"src/shared",
89
"build.proj",

.azure-pipelines/code-gen.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ jobs:
9999
$Title = "Migrate ${{ parameters.ServiceName }} from generation to ${{ parameters.TargetBranch }}"
100100
$HeadBranch = "codegen/${{ parameters.ServiceName }}"
101101
$BaseBranch = "${{ parameters.TargetBranch }}"
102-
$Description = "Migrate ${{ parameters.ServiceName }} from generation to ${{ parameters.TargetBranch }}"
102+
$SourceBranch = "$(Build.SourceBranch)"
103+
$SourceBranch = $BaseBranch.Replace("refs/heads/", "")
104+
$Description = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }}"
103105
./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(BotAccessToken) -Description $Description
104106
displayName: Create PR to main branch

.azure-pipelines/code-oob.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ stages:
3939
$pattern = '(?s)## Version (\d+\.\d+\.\d)+[\s\S]*?\n(.*?)(?=\n## Version \d+\.\d+\.\d+|$)'
4040
$matches = [regex]::Match($mdcontent, $pattern)
4141
$NeedBumpUp = $true
42+
$BaseBranch = "$(BranchPrefix)/${{ parameters.ServiceName }}"
4243
if ($matches.Success) {
4344
$versionNumber = $matches.Groups[1].Value
4445
$versionChanges = $matches.Groups[2].Value.Trim()
@@ -47,12 +48,15 @@ stages:
4748
$versionNumber += "-preview"
4849
echo "##vso[task.setvariable variable=NeedBumpUp]false"
4950
$NeedBumpUp = $false
51+
$BaseBranch = "$(Build.SourceBranch)"
52+
$BaseBranch = $BaseBranch.Replace("refs/heads/", "")
5053
}
5154
$jsonData = @{
5255
ModuleName = "${{ parameters.ServiceName }}"
5356
VersionNumber = "$versionNumber"
5457
VersionChanges = "$versionChanges"
5558
IsPreview = “${{ parameters.Preview }}“
59+
BaseBranch = "$BaseBranch"
5660
}
5761
$jsonString = $jsonData | ConvertTo-Json
5862
$jsonString | Out-File -FilePath "VersionInfo.json"

.azure-pipelines/powershell-core.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variables:
2-
WindowsName: windows
2+
WindowsName: windows
33
WindowsAgentPoolName: pool-windows-2019
44
WindowsAgentPoolVMImage: ''
55
LinuxName: linux
@@ -8,7 +8,7 @@ variables:
88
MacOSName: macOS
99
MacOSAgentPoolName: 'Azure Pipelines'
1010
MacOSAgentPoolVMImage: macOS-11
11-
TestFramework: netcoreapp3.1
11+
TestFramework: net6.0
1212
TestTarget: Test
1313
Configuration: Debug
1414
DebugLocalBuildTasks: true
@@ -57,6 +57,7 @@ jobs:
5757
configuration: ${{ variables.Configuration }}
5858
testFramework: ${{ variables.TestFramework }}
5959
powerShellPlatform: ${{ variables.PowerShellPlatform }}
60+
IsGenerateBased: ${{ variables.IsGenerateBased }}
6061

6162
- job: Test
6263
displayName: Test

.azure-pipelines/release-test.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ parameters:
33
displayName: Windows PowerShell Version
44
type: string
55
default: 5.1.14
6-
- name: ps7
7-
displayName: PowerShell 7.0.x Version
8-
type: string
9-
default: 7.0.*
106
- name: ps7_2
117
displayName: PowerShell 7.2.x Version
128
type: string
@@ -52,14 +48,6 @@ jobs:
5248
psVersion: ${{ parameters.win_ps }}
5349
netCoreVersion: ${{ parameters.netCoreVersion }}
5450

55-
- template: util/smoke-test-steps.yml
56-
parameters:
57-
name: 'Win_PS7_0_X_SmokeTest'
58-
agentPoolName: ${{ variables.winAgentPoolName }}
59-
agentPoolVMImage: ${{ variables.winAgentPoolVMImage }}
60-
psVersion: ${{ parameters.ps7 }}
61-
netCoreVersion: ${{ parameters.netCoreVersion }}
62-
6351
- template: util/smoke-test-steps.yml
6452
parameters:
6553
name: 'Win_PS7_2_X_SmokeTest'
@@ -92,14 +80,6 @@ jobs:
9280
psVersion: ${{ parameters.preview_ps }}
9381
netCoreVersion: ${{ parameters.netCoreVersion_7 }}
9482

95-
- template: util/smoke-test-steps.yml
96-
parameters:
97-
name: 'Linux_PS7_0_X_SmokeTest'
98-
agentPoolName: ${{ variables.linuxAgentPoolName }}
99-
agentPoolVMImage: ${{ variables.linuxAgentPoolVMImage }}
100-
psVersion: ${{ parameters.ps7 }}
101-
netCoreVersion: ${{ parameters.netCoreVersion }}
102-
10383
- template: util/smoke-test-steps.yml
10484
parameters:
10585
name: 'Linux_PS7_2_X_SmokeTest'
@@ -132,14 +112,6 @@ jobs:
132112
psVersion: ${{ parameters.preview_ps }}
133113
netCoreVersion: ${{ parameters.netCoreVersion_7 }}
134114

135-
- template: util/smoke-test-steps.yml
136-
parameters:
137-
name: 'MacOS_PS7_0_X_SmokeTest'
138-
agentPoolName: ${{ variables.macOsAgentPoolName }}
139-
agentPoolVMImage: ${{ variables.macOsAgentPoolVMImage }}
140-
psVersion: ${{ parameters.ps7 }}
141-
netCoreVersion: ${{ parameters.netCoreVersion }}
142-
143115
- template: util/smoke-test-steps.yml
144116
parameters:
145117
name: 'MacOS_PS7_2_X_SmokeTest'

.azure-pipelines/sync-aliases.yml

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,40 @@ schedules:
77
- main
88

99
jobs:
10-
- job: UpdateJson
11-
displayName: Update fabricbot.json
10+
- job: UpdateYaml
11+
displayName: Update resourceManagement.yml
12+
pool: pool-windows-2019
13+
1214
steps:
15+
- task: UseDotNet@2
16+
displayName: Install .NET 7 SDK
17+
inputs:
18+
packageType: sdk
19+
version: 7.0.x
20+
21+
- pwsh: |
22+
dotnet --version
23+
dotnet new tool-manifest --force
24+
dotnet tool install powershell
25+
displayName: Install Latest PowerShell (7.3+)
26+
1327
- task: AzurePowerShell@5
1428
inputs:
1529
azureSubscription: 'Azure SDK Infrastructure'
1630
ScriptType: 'InlineScript'
1731
Inline: |
1832
$ADOTokenValue = Get-AzKeyVaultSecret -VaultName ${env:KEYVAULTNAME} -Name ${env:ADOTOKENNAME} -AsPlainText
19-
Write-Host "##vso[task.setvariable variable=ADOToken;issecret=true]$ADOTokenValue"
33+
Write-Host "##vso[task.setvariable variable=ADOToken;issecret=true]$ADOTokenValue"
2034
azurePowerShellVersion: 'LatestVersion'
2135
displayName: Get ADOToken from Key Vault
2236

2337
- pwsh: |
24-
./tools/Github/ParseWiki2Json.ps1 -ADOToken $(ADOToken)
25-
displayName: Update fabricbot.json file locally
38+
dotnet tool run pwsh -NoLogo -NoProfile -NonInteractive -File "./tools/Github/ParseServiceContactsList.ps1 -ADOToken $(ADOToken)"
39+
displayName: Update resourceManagement.yml file locally
2640
2741
- pwsh: |
28-
$gitStatus = git status -s
29-
if (-not $gitStatus) {
42+
$hasChanges = git diff --name-only .github/policies
43+
if ($null -eq $hasChanges) {
3044
Write-Host "The wiki has no changes."
3145
Write-Host "##vso[task.setvariable variable=ChangesDetected]false"
3246
} else {
@@ -38,21 +52,21 @@ jobs:
3852
- pwsh: |
3953
git config --global user.email "[email protected]"
4054
git config --global user.name "azure-powershell-bot"
41-
git checkout -b "internal/sync-fabricbot-json"
42-
43-
git add .
44-
git commit -m "Sync fabricbot.json"
45-
55+
git checkout -b "internal/sync-resourcemanagement-yml"
56+
57+
git add .github/policies
58+
git commit -m "Sync resourceManagement.yml"
59+
4660
git remote set-url origin https://azure-powershell-bot:$(BotAccessToken)@github.com/Azure/azure-powershell.git;
47-
git push origin internal/sync-fabricbot-json --force
61+
git push origin internal/sync-resourcemanagement-yml --force
4862
displayName: Git commit and push
4963
condition: and(succeeded(), eq(variables['ChangesDetected'], 'true'))
50-
64+
5165
- pwsh: |
52-
$Title = "Sync fabricbot.json According To ADO Wiki Page"
53-
$HeadBranch = "internal/sync-fabricbot-json"
66+
$Title = "Sync resourceManagement.yml according To ADO Wiki Page - Service Contact List"
67+
$HeadBranch = "internal/sync-resourcemanagement-yml"
5468
$BaseBranch = "main"
55-
$Description = "This PR sync taskType: scheduledAndTrigger part of fabricbot.json from table of Service-Team-Label-and-Contact-List in ADO wiki page"
69+
$Description = "This PR synchronizes the task: 'Triage issues to the service team' part of resourceManagement.yml from table of Service Contact List in ADO wiki page"
5670
./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(BotAccessToken) -Description $Description
5771
displayName: Create PR to main branch
5872
condition: and(succeeded(), eq(variables['ChangesDetected'], 'true'))

.azure-pipelines/sync-tools-folder.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,21 @@ trigger:
1111
paths:
1212
include:
1313
- .azure-pipelines
14+
- .github
1415
- tools
1516
- src/lib
17+
- .ci-config.json
18+
- src/shared
19+
- build.proj
20+
- src/Az.props
21+
- src/Az.Shared.props
22+
- src/Az.Test.props
23+
- src/Az.autorest.hybrid.props
24+
- src/Az.autorest.hybrid.v2.props
25+
- src/Az.autorest.props
26+
- src/Az.Post.props
27+
- src/psm1.props
28+
- NuGet.Config
1629

1730
variables:
1831
GenerationBranchName: generation

.azure-pipelines/test-coverage.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
parameters:
2-
- name: dotnet_sdk_3_1
3-
displayName: .NET Core 3.1
4-
default: 3.1.x
52
- name: dotnet_sdk_6
63
displayName: .NET 6
74
type: string
@@ -13,7 +10,7 @@ parameters:
1310
- name: testFramework
1411
displayName: Test Framework
1512
type: string
16-
default: netcoreapp3.1
13+
default: net6.0
1714
- name: testPoolName
1815
displayName: Test Pool Name
1916
type: string
@@ -64,10 +61,10 @@ jobs:
6461

6562
steps:
6663
- task: UseDotNet@2
67-
displayName: 'Install .NET Core 3.1 SDK'
64+
displayName: 'Install .NET 6.0 SDK'
6865
inputs:
6966
packageType: sdk
70-
version: ${{ parameters.dotnet_sdk_3_1 }}
67+
version: ${{ parameters.dotnet_sdk_6 }}
7168

7269
- task: PowerShell@2
7370
displayName: Initialize Environment

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,12 @@ parameters:
22
configuration: ''
33
testFramework: ''
44
powerShellPlatform: ''
5+
IsGenerateBased: ''
56

67
steps:
78
- template: download-build-steps.yml
89
parameters:
910
artifactName: build-${{ parameters.testFramework }}
10-
- task: NodeTool@0
11-
condition: eq(variables.IsGenerateBased, true)
12-
displayName: Install autorest
13-
inputs:
14-
versionSpec: '14.17.1'
15-
command: custom
16-
verbose: false
17-
customCommand: install autorest@latest
18-
- task: PowerShell@2
19-
condition: eq(variables.IsGenerateBased, true)
20-
displayName: Setup environment for autorest
21-
inputs:
22-
targetType: inline
23-
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
24-
pwsh: true
2511

2612
- task: UseDotNet@2
2713
displayName: 'Use .NET Core sdk 6.0.x'
@@ -61,6 +47,7 @@ steps:
6147
arguments: 'build.proj /t:StaticAnalysis /p:Configuration=${{ parameters.configuration }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'
6248
env:
6349
OCTOKITPAT: $(OCTOKITPAT)
50+
IsGenerateBased: ${{ parameters.IsGenerateBased }}
6451

6552
- template: publish-artifacts-steps.yml
6653
parameters:

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

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,12 @@ steps:
99
- template: download-build-steps.yml
1010
parameters:
1111
artifactName: build-${{ parameters.testFramework }}
12-
- task: NodeTool@0
13-
condition: eq(variables.IsGenerateBased, true)
14-
displayName: Install Autorest
15-
inputs:
16-
versionSpec: '14.17.1'
17-
command: custom
18-
verbose: false
19-
customCommand: install autorest@latest
20-
- task: PowerShell@2
21-
condition: eq(variables.IsGenerateBased, true)
22-
displayName: Setup environment for Autorest
23-
inputs:
24-
targetType: inline
25-
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
26-
pwsh: true
2712

2813
- task: UseDotNet@2
29-
displayName: 'Use .NET Core sdk'
14+
displayName: 'Use .NET SDK 6 for tests'
3015
inputs:
3116
packageType: sdk
32-
version: 3.1.x
17+
version: 6.0.x
3318

3419
- task: PowerShell@2
3520
displayName: Remove pre-installed Az modules

0 commit comments

Comments
 (0)