Merge remote-tracking branch 'libtemplate/microbuild' into libTemplateUpdate
This commit is contained in:
Коммит
a017aeb4f2
|
@ -9,13 +9,13 @@
|
|||
]
|
||||
},
|
||||
"dotnet-coverage": {
|
||||
"version": "17.11.0",
|
||||
"version": "17.11.3",
|
||||
"commands": [
|
||||
"dotnet-coverage"
|
||||
]
|
||||
},
|
||||
"nbgv": {
|
||||
"version": "3.6.133",
|
||||
"version": "3.6.139",
|
||||
"commands": [
|
||||
"nbgv"
|
||||
]
|
||||
|
|
|
@ -26,6 +26,7 @@ indent_size = 2
|
|||
# Xml config files
|
||||
[*.{ruleset,config,nuspec,resx,vsixmanifest,vsct,runsettings}]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# JSON files
|
||||
[*.json]
|
||||
|
|
|
@ -56,23 +56,4 @@
|
|||
<PackageReleaseNotes Condition="'$(PackageProjectUrl)'!=''">$(PackageProjectUrl)/releases/tag/v$(Version)</PackageReleaseNotes>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
|
||||
<PropertyGroup Condition="'$(IsWpfTempProject)' == ''">
|
||||
<IsWpfTempProject>false</IsWpfTempProject>
|
||||
<IsWpfTempProject Condition="$(MSBuildProjectName.EndsWith('_wpftmp'))">true</IsWpfTempProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
Inspired by https://github.com/dotnet/arcade/blob/cbfa29d4e859622ada3d226f90f103f659665d31/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.props#L14-L31
|
||||
|
||||
Disable Source Link and Xliff in WPF temp projects to avoid generating non-deterministic file names to obj dir.
|
||||
The project name is non-deterministic and is included in the Source Link json file name and xlf directory names.
|
||||
It's also not necessary to generate these assets.
|
||||
-->
|
||||
<PropertyGroup Condition="'$(IsWpfTempProject)' == 'true'">
|
||||
<EnableSourceLink>false</EnableSourceLink>
|
||||
<EmbedUntrackedSources>false</EmbedUntrackedSources>
|
||||
<DeterministicSourcePaths>false</DeterministicSourcePaths>
|
||||
<EnableXlfLocalization>false</EnableXlfLocalization>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<!-- Workaround https://github.com/dotnet/wpf/issues/1718 -->
|
||||
<EmbedUntrackedSources Condition=" '$(UseWPF)' == 'true' ">false</EmbedUntrackedSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- Avoid compile error about missing namespace when combining ImplicitUsings with .NET Framework target frameworks. -->
|
||||
<Using Remove="System.Net.Http" Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework'" />
|
||||
|
|
|
@ -9,21 +9,18 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="3.3.5-beta1.23330.2" />
|
||||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
||||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
|
||||
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
|
||||
<PackageVersion Include="Moq" Version="4.20.70" />
|
||||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
|
||||
<PackageVersion Include="xunit" Version="2.8.0" />
|
||||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.1" />
|
||||
<PackageVersion Include="xunit" Version="2.8.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.495" />
|
||||
<GlobalPackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
|
||||
<GlobalPackageReference Include="Microsoft.VisualStudio.Internal.MicroBuild.VisualStudio" Version="$(MicroBuildVersion)" />
|
||||
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
|
||||
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.139" />
|
||||
<GlobalPackageReference Include="Nullable" Version="1.3.1" />
|
||||
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.556" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -203,17 +203,26 @@ if ($PSCmdlet.ShouldProcess('source archival request', 'post')) {
|
|||
|
||||
$Response = Invoke-WebRequest -Uri $SourceCodeArchivalUri -Method POST -Body $RequestJson -ContentType "application/json" -UseBasicParsing -SkipHttpErrorCheck
|
||||
Write-Host "Status Code : " -NoNewline
|
||||
$responseContent = ConvertFrom-Json ($Response.Content)
|
||||
if ($Response.StatusCode -eq 200) {
|
||||
Write-Host $Response.StatusCode -ForegroundColor Green
|
||||
Write-Host "Ticket ID : " -NoNewline
|
||||
$responseContent = ConvertFrom-Json ($Response.Content)
|
||||
Write-Host $responseContent
|
||||
}
|
||||
else {
|
||||
$responseContent = ConvertFrom-Json $Response.Content
|
||||
Write-Host $Response.StatusCode -ForegroundColor Red
|
||||
try {
|
||||
$responseContent = ConvertFrom-Json $Response.Content
|
||||
Write-Host "Message : $($responseContent.message)"
|
||||
}
|
||||
catch {
|
||||
Write-Host "JSON Parse Error: $($_.Exception.Message)"
|
||||
Write-Host "Raw response content:"
|
||||
Write-Host $Response.Content
|
||||
}
|
||||
|
||||
exit 2
|
||||
}
|
||||
} elseif ($SourceCodeArchivalUri) {
|
||||
Write-Host "Would have posted to $SourceCodeArchivalUri"
|
||||
}
|
||||
|
|
|
@ -17,6 +17,12 @@ schedules:
|
|||
# name: DeploymentScripts
|
||||
# ref: refs/heads/test
|
||||
|
||||
parameters:
|
||||
- name: ShouldSkipOptimize
|
||||
displayName: Skip OptProf optimization
|
||||
type: boolean
|
||||
default: false # Should usually be false so that optprof LKG can apply when tests fail, but may need to be set to true in a manually queued pipeline run if all drops have expired.
|
||||
|
||||
variables:
|
||||
- template: GlobalVariables.yml
|
||||
- name: PublicRelease
|
||||
|
@ -37,7 +43,7 @@ stages:
|
|||
RealSign: true
|
||||
windowsPool: VSEngSS-MicroBuild2022-1ES
|
||||
EnableMacOSBuild: false
|
||||
ShouldSkipOptimize: true
|
||||
ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }}
|
||||
IsOptProf: true
|
||||
RunTests: false
|
||||
- stage: QueueVSBuild
|
||||
|
|
|
@ -27,10 +27,10 @@ parameters:
|
|||
# As an entrypoint pipeline yml file, all parameters here show up in the Queue Run dialog.
|
||||
# If any paramaters should NOT be queue-time options, they should be removed from here
|
||||
# and references to them in this file replaced with hard-coded values.
|
||||
- name: RealSign
|
||||
displayName: Real sign?
|
||||
- name: ForceOfficialBuild
|
||||
displayName: Official build (sign, compliance, etc.)
|
||||
type: boolean
|
||||
default: false
|
||||
default: false # this should remain false so PR builds using this pipeline are unofficial
|
||||
# - name: ShouldSkipOptimize # Uncomment this and references to it below when setting EnableOptProf to true in build.yml.
|
||||
# displayName: Skip OptProf optimization
|
||||
# type: boolean
|
||||
|
@ -43,12 +43,8 @@ parameters:
|
|||
displayName: Run tests
|
||||
type: boolean
|
||||
default: true
|
||||
- name: EnableCompliance
|
||||
displayName: Run Compliance Tools
|
||||
type: boolean
|
||||
default: true
|
||||
- name: EnableAPIScan
|
||||
displayName: Include APIScan with Compliance tools
|
||||
displayName: Include APIScan with compliance tools
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
|
@ -63,18 +59,22 @@ variables:
|
|||
- template: GlobalVariables.yml
|
||||
|
||||
extends:
|
||||
${{ if parameters.EnableCompliance }}:
|
||||
${{ if or(parameters.ForceOfficialBuild, eq(variables['Build.Reason'],'Schedule')) }}:
|
||||
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
|
||||
parameters:
|
||||
sdl:
|
||||
sourceAnalysisPool: VSEngSS-MicroBuild2022-1ES
|
||||
codeSignValidation:
|
||||
enabled: true
|
||||
break: true
|
||||
additionalTargetsGlobPattern: -|Variables-*\*.ps1;-|APIScanInputs-*\**;-|test_symbols-*\**;-|MicroBuild\**
|
||||
policheck:
|
||||
enabled: true
|
||||
exclusionsFile: $(System.DefaultWorkingDirectory)\azure-pipelines\PoliCheckExclusions.xml
|
||||
suppression:
|
||||
suppressionFile: $(System.DefaultWorkingDirectory)\azure-pipelines\falsepositives.gdnsuppress
|
||||
sbom:
|
||||
enabled: ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }} # Disable the generation for SBOMs for artifacts in unsigned builds since it's slow
|
||||
enabled: true
|
||||
stages:
|
||||
- stage: Build
|
||||
variables:
|
||||
|
@ -83,9 +83,9 @@ extends:
|
|||
- template: /azure-pipelines/build.yml@self
|
||||
parameters:
|
||||
Is1ESPT: true
|
||||
RealSign: ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
|
||||
RealSign: true
|
||||
# ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }}
|
||||
EnableAPIScan: ${{ and(parameters.EnableCompliance, parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
|
||||
EnableAPIScan: ${{ and(parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
|
||||
windowsPool: VSEngSS-MicroBuild2022-1ES
|
||||
linuxPool:
|
||||
name: AzurePipelines-EO
|
||||
|
@ -100,7 +100,7 @@ extends:
|
|||
RunTests: ${{ parameters.RunTests }}
|
||||
- template: /azure-pipelines/prepare-insertion-stages.yml@self
|
||||
parameters:
|
||||
RealSign: ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
|
||||
RealSign: true
|
||||
${{ else }}:
|
||||
template: azure-pipelines/MicroBuild.1ES.Unofficial.yml@MicroBuildTemplate
|
||||
parameters:
|
||||
|
@ -116,9 +116,9 @@ extends:
|
|||
- template: /azure-pipelines/build.yml@self
|
||||
parameters:
|
||||
Is1ESPT: true
|
||||
RealSign: ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
|
||||
RealSign: false
|
||||
# ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }}
|
||||
EnableAPIScan: ${{ and(parameters.EnableCompliance, parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
|
||||
EnableAPIScan: false
|
||||
windowsPool: VSEngSS-MicroBuild2022-1ES
|
||||
linuxPool:
|
||||
name: AzurePipelines-EO
|
||||
|
@ -133,4 +133,4 @@ extends:
|
|||
RunTests: ${{ parameters.RunTests }}
|
||||
- template: /azure-pipelines/prepare-insertion-stages.yml@self
|
||||
parameters:
|
||||
RealSign: ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
|
||||
RealSign: false
|
||||
|
|
|
@ -57,6 +57,7 @@ extends:
|
|||
InsertionReviewers: $(Build.RequestedFor),Andrew Arnott
|
||||
AutoCompletePR: true
|
||||
AutoCompleteMergeStrategy: Squash
|
||||
ShallowClone: true
|
||||
- powershell: |
|
||||
$contentType = 'application/json';
|
||||
$headers = @{ Authorization = 'Bearer $(System.AccessToken)' };
|
||||
|
|
|
@ -80,6 +80,7 @@ extends:
|
|||
InsertionBuildPolicy: Request Perf DDRITs
|
||||
InsertionReviewers: $(Build.RequestedFor)
|
||||
AutoCompletePR: false
|
||||
ShallowClone: true
|
||||
- powershell: |
|
||||
$insertionPRId = azure-pipelines/Get-InsertionPRId.ps1
|
||||
$Markdown = @"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"sdk": {
|
||||
"version": "8.0.201",
|
||||
"version": "8.0.300",
|
||||
"rollForward": "patch",
|
||||
"allowPrerelease": false
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче