Skip to content

Commit d3aa5d3

Browse files
Fixed merge conflicts
2 parents 3f72e3c + 5b8b7c6 commit d3aa5d3

File tree

2,746 files changed

+250885
-118363
lines changed

Some content is hidden

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

2,746 files changed

+250885
-118363
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ variables:
1212
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
1313
BuildTimeoutInMinutes: 120
1414
AnalysisTimeoutInMinutes: 120
15+
TestTimeoutInMinutes: 180
1516

1617
trigger: none
1718

@@ -32,21 +33,15 @@ jobs:
3233
windows:
3334
OSName: ${{ variables.WindowsName }}
3435
ImageName: ${{ variables.WindowsImage }}
35-
linux:
36-
OSName: ${{ variables.LinuxName }}
37-
ImageName: ${{ variables.LinuxImage }}
38-
macOS:
39-
OSName: ${{ variables.MacOSName }}
40-
ImageName: ${{ variables.MacOSImage }}
4136
pool:
4237
vmImage: $(ImageName)
4338

4439
steps:
4540
- template: util/build-steps.yml
4641
parameters:
4742
osName: $(OSName)
48-
testFramework: ${{ variables.TestFramework }}
4943
configuration: ${{ variables.Configuration }}
44+
testFramework: ${{ variables.TestFramework }}
5045

5146
- job: Analyze
5247
displayName: Analyze
@@ -58,12 +53,6 @@ jobs:
5853
windows:
5954
OSName: ${{ variables.WindowsName }}
6055
ImageName: ${{ variables.WindowsImage }}
61-
linux:
62-
OSName: ${{ variables.LinuxName }}
63-
ImageName: ${{ variables.LinuxImage }}
64-
macOS:
65-
OSName: ${{ variables.MacOSName }}
66-
ImageName: ${{ variables.MacOSImage }}
6756
pool:
6857
vmImage: $(ImageName)
6958

@@ -72,12 +61,13 @@ jobs:
7261
parameters:
7362
osName: $(OSName)
7463
configuration: ${{ variables.Configuration }}
64+
testFramework: ${{ variables.TestFramework }}
7565

7666
- job: Test
7767
displayName: Test
7868
dependsOn: Build
7969
condition: succeeded()
80-
timeoutInMinutes: 180
70+
timeoutInMinutes: ${{ variables.TestTimeoutInMinutes }}
8171
strategy:
8272
matrix:
8373
windows:

.azure-pipelines/sign-tool-predictor.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,29 @@ pool:
55

66
steps:
77
- task: PowerShell@2
8-
displayName: Install PS 7.2
8+
displayName: Install PowerShell
99
inputs:
1010
targetType: 'inline'
1111
script: |
12-
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.3/PowerShell-7.2.0-preview.3-win-x64.zip"
13-
$output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-preview.3-win-x64.zip"
12+
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.2.0/PowerShell-7.2.0-win-x64.zip"
13+
$output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-win-x64.zip"
1414
(New-Object System.Net.WebClient).DownloadFile($url, $output)
15-
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-preview.3/"
15+
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell/"
1616
Expand-Archive -Path $output -DestinationPath $pwshPath
1717
$pwshFullPath = Convert-Path $pwshPath
1818
Write-Host $pwshFullPath
1919
2020
- task: PowerShell@2
21-
displayName: 'Install platyPS, PowerShellGet, Az 3.0.0'
21+
displayName: 'Install Dependent Modules'
2222
inputs:
2323
targetType: inline
2424
script: |
25-
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-preview.3/pwsh.exe"
25+
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell/pwsh.exe"
2626
$command = "`$PSVersionTable `
2727
Install-Module platyPS -Force -Confirm:`$false -Scope CurrentUser `
2828
Install-Module PowerShellGet -Force -Confirm:`$false -Scope CurrentUser -SkipPublisherCheck `
29-
Install-Module Az -Repository PSGallery -RequiredVersion 3.0.0 -Confirm:`$false -Scope CurrentUser -AllowClobber -Force"
29+
Install-Module PSReadLine -Force -Confirm:`$false -Scope CurrentUser `
30+
Install-Module Az.Accounts -Repository PSGallery -Confirm:`$false -Scope CurrentUser -AllowClobber -Force"
3031
Invoke-Command -ScriptBlock { param ($pwshPath, $command) & $pwshPath -Command $command } -ArgumentList $pwshPath, $command
3132
3233
- task: UseDotNet@2
@@ -41,7 +42,7 @@ steps:
4142
inputs:
4243
command: custom
4344
custom: msbuild
44-
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Clean;Build;GenerateHelp" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.2.0-preview.3\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command"'
45+
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Clean;Build;GenerateHelp" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command"'
4546

4647
- task: UseDotNet@2
4748
displayName: 'Install DotNet 2.1 Runtime for Signing'
@@ -90,7 +91,7 @@ steps:
9091
inputs:
9192
command: custom
9293
custom: msbuild
93-
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.2.0-preview.3\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
94+
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
9495

9596
- task: PublishPipelineArtifact@0
9697
displayName: 'Save artifacts'

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
parameters:
22
osName: ''
33
configuration: ''
4+
testFramework: ''
45

56
steps:
67
- template: download-build-steps.yml
78
parameters:
8-
osName: ${{ parameters.osName }}
9+
artifactName: build-${{ parameters.testFramework }}
910
- task: NodeTool@0
1011
condition: eq(variables.IsGenerateBased, true)
1112
displayName: Install autorest
@@ -47,4 +48,4 @@ steps:
4748

4849
- template: publish-artifacts-steps.yml
4950
parameters:
50-
artifactName: analyze-${{ parameters.osName }}
51+
artifactName: analyze-${{ parameters.testFramework }}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ parameters:
66
steps:
77
- task: NodeTool@0
88
condition: eq(variables.IsGenerateBased, true)
9-
displayName: Install autorest
9+
displayName: Install Autorest
1010
inputs:
1111
versionSpec: '14.17.1'
1212
command: custom
1313
verbose: false
1414
customCommand: install autorest@latest
1515
- task: PowerShell@2
1616
condition: eq(variables.IsGenerateBased, true)
17-
displayName: Setup environment for autorest
17+
displayName: Setup environment for Autorest
1818
inputs:
1919
targetType: inline
2020
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
2121
pwsh: true
2222
- task: PowerShell@2
23-
displayName: 'Check Ingored File'
23+
displayName: 'Check Ignored File'
2424
inputs:
2525
filePath: tools/CheckIgnoredFile.ps1
2626

@@ -39,4 +39,4 @@ steps:
3939

4040
- template: publish-artifacts-steps.yml
4141
parameters:
42-
artifactName: build-${{ parameters.osName }}
42+
artifactName: build-${{ parameters.testFramework }}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
parameters:
2-
osName: ''
2+
artifactName: ''
33

44
steps:
55
- task: DownloadPipelineArtifact@0
6-
displayName: 'Download build-${{ parameters.osName }}'
6+
displayName: 'Download {{ parameters.artifactName }}'
77
inputs:
8-
artifactName: build-${{ parameters.osName }}
8+
artifactName: ${{ parameters.artifactName }}
99
targetPath: artifacts

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ parameters:
77
steps:
88
- template: download-build-steps.yml
99
parameters:
10-
osName: ${{ parameters.osName }}
10+
artifactName: build-${{ parameters.testFramework }}
1111
- task: NodeTool@0
1212
condition: eq(variables.IsGenerateBased, true)
13-
displayName: Install autorest
13+
displayName: Install Autorest
1414
inputs:
1515
versionSpec: '14.17.1'
1616
command: custom
1717
verbose: false
1818
customCommand: install autorest@latest
1919
- task: PowerShell@2
2020
condition: eq(variables.IsGenerateBased, true)
21-
displayName: Setup environment for autorest
21+
displayName: Setup environment for Autorest
2222
inputs:
2323
targetType: inline
2424
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
@@ -63,4 +63,4 @@ steps:
6363

6464
- template: publish-artifacts-steps.yml
6565
parameters:
66-
artifactName: test-${{ parameters.osName }}
66+
artifactName: test-${{ parameters.testFramework }}-${{ parameters.osName }}

.azure-pipelines/windows-powershell.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ variables:
66
Configuration: Debug
77
DebugLocalBuildTasks: true
88
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
9+
BuildTimeoutInMinutes: 120
10+
AnalysisTimeoutInMinutes: 120
911

1012
trigger: none
1113

@@ -20,6 +22,7 @@ jobs:
2022
- job: Build
2123
displayName: Build
2224
condition: and(eq(variables.IsGenerateBased, false), succeeded())
25+
timeoutInMinutes: ${{ variables.BuildTimeoutInMinutes }}
2326
pool:
2427
vmImage: ${{ variables.WindowsImage }}
2528

@@ -36,46 +39,40 @@ jobs:
3639
- job: Analyze
3740
displayName: Analyze
3841
dependsOn: Build
39-
condition: and(eq(variables.IsGenerateBased, false), succeeded())
40-
timeoutInMinutes: 90
42+
condition: succeeded()
43+
timeoutInMinutes: ${{ variables.AnalysisTimeoutInMinutes }}
44+
strategy:
45+
matrix:
46+
windows:
47+
OSName: ${{ variables.WindowsName }}
48+
ImageName: ${{ variables.WindowsImage }}
4149
pool:
42-
vmImage: ${{ variables.WindowsImage }}
50+
vmImage: $(ImageName)
4351

4452
steps:
4553
- template: util/analyze-steps.yml
4654
parameters:
47-
osName: ${{ variables.WindowsName }}
55+
osName: $(OSName)
4856
configuration: ${{ variables.Configuration }}
49-
- task: PowerShell@2
50-
displayName: 'Cleanup Build'
51-
inputs:
52-
targetType: filePath
53-
filePath: tools/CleanupBuild.ps1
54-
pwsh: true
55-
- task: NuGetCommand@2
56-
displayName: 'Download BinSkim'
57-
inputs:
58-
command: custom
59-
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools -Version 1.7.0'
60-
- task: PowerShell@2
61-
displayName: 'Run BinSkim'
62-
inputs:
63-
targetType: filePath
64-
filePath: tools/SecurityTools/RunBinSkim.ps1
65-
pwsh: true
57+
testFramework: ${{ variables.TestFramework }}
6658

6759
- job: Test
6860
displayName: Test
6961
dependsOn: Build
7062
condition: and(eq(variables.IsGenerateBased, false), succeeded())
7163
timeoutInMinutes: 180
64+
strategy:
65+
matrix:
66+
windows:
67+
OSName: ${{ variables.WindowsName }}
68+
ImageName: ${{ variables.WindowsImage }}
7269
pool:
73-
vmImage: ${{ variables.WindowsImage }}
70+
vmImage: $(ImageName)
7471

7572
steps:
7673
- template: util/test-steps.yml
7774
parameters:
78-
osName: ${{ variables.WindowsName }}
75+
osName: $(OSName)
7976
testFramework: ${{ variables.TestFramework }}
8077
testTarget: ${{ variables.TestTarget }}
8178
configuration: ${{ variables.Configuration }}

0 commit comments

Comments
 (0)