Skip to content

Commit 102b62d

Browse files
Merge branch 'main' into unify-test-utilities
2 parents 4f0a94a + 2d191ab commit 102b62d

File tree

83 files changed

+1855
-852
lines changed

Some content is hidden

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

83 files changed

+1855
-852
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ stages:
8383
pool:
8484
${{ if eq(variables['System.TeamProject'], 'public') }}:
8585
name: $(DncEngPublicBuildPool)
86-
demands: ImageOverride -equals windows.vs2022preview.scout.amd64.open
86+
demands: ImageOverride -equals windows.vs2022preview.amd64.open
8787
${{ if ne(variables['System.TeamProject'], 'public') }}:
8888
name: $(DncEngInternalBuildPool)
89-
demands: ImageOverride -equals windows.vs2022preview.scout.amd64
89+
demands: ImageOverride -equals windows.vs2022preview.amd64
9090
steps:
9191
- task: NuGetCommand@2
9292
displayName: 'Clear NuGet caches'
@@ -127,10 +127,10 @@ stages:
127127
pool:
128128
${{ if eq(variables['System.TeamProject'], 'public') }}:
129129
name: $(DncEngPublicBuildPool)
130-
demands: ImageOverride -equals windows.vs2022preview.scout.amd64.open
130+
demands: ImageOverride -equals windows.vs2022preview.amd64.open
131131
${{ if ne(variables['System.TeamProject'], 'public') }}:
132132
name: $(DncEngInternalBuildPool)
133-
demands: ImageOverride -equals windows.vs2022preview.scout.amd64
133+
demands: ImageOverride -equals windows.vs2022preview.amd64
134134
strategy:
135135
matrix:
136136
${{ if eq(variables['System.TeamProject'], 'public') }}:

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@
9494
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
9595
<Sha>3a25a7f1cc446b60678ed25c9d829420d6321eba</Sha>
9696
</Dependency>
97-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.23572.2">
97+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.23601.1">
9898
<Uri>https://github.com/dotnet/arcade</Uri>
99-
<Sha>c5e5051496efbcc9046b25628666377d6b97a670</Sha>
99+
<Sha>38aa367e014493c6f6ebfe94d9029bea01d072c4</Sha>
100100
<SourceBuild RepoName="arcade" ManagedOnly="true" />
101101
</Dependency>
102-
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="9.0.0-beta.23572.2">
102+
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="9.0.0-beta.23601.1">
103103
<Uri>https://github.com/dotnet/arcade</Uri>
104-
<Sha>c5e5051496efbcc9046b25628666377d6b97a670</Sha>
104+
<Sha>38aa367e014493c6f6ebfe94d9029bea01d072c4</Sha>
105105
</Dependency>
106106
<!-- Necessary for source-build. This allows Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages
107107
to be retrieved from live source-build and their content consumed by packages produced by razor.

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>4.8.0-3.23475.1</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
7272
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>4.8.0-3.23475.1</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
7373
<MicrosoftVisualStudioLanguageServicesPackageVersion>4.8.0-3.23475.1</MicrosoftVisualStudioLanguageServicesPackageVersion>
74-
<MicrosoftDotNetXliffTasksPackageVersion>9.0.0-beta.23572.2</MicrosoftDotNetXliffTasksPackageVersion>
74+
<MicrosoftDotNetXliffTasksPackageVersion>9.0.0-beta.23601.1</MicrosoftDotNetXliffTasksPackageVersion>
7575
<!--
7676
Exception - Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages are not updated by automation,
7777
but are present in Version.Details.xml for source-build PVP flow. See the comment in Version.Details.xml for more information.

eng/common/darc-init.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param (
22
$darcVersion = $null,
3-
$versionEndpoint = 'https://maestro-prod.westus2.cloudapp.azure.com/api/assets/darc-version?api-version=2019-01-16',
3+
$versionEndpoint = 'https://maestro.dot.net/api/assets/darc-version?api-version=2019-01-16',
44
$verbosity = 'minimal',
55
$toolpath = $null
66
)

eng/common/darc-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source="${BASH_SOURCE[0]}"
44
darcVersion=''
5-
versionEndpoint='https://maestro-prod.westus2.cloudapp.azure.com/api/assets/darc-version?api-version=2019-01-16'
5+
versionEndpoint='https://maestro.dot.net/api/assets/darc-version?api-version=2019-01-16'
66
verbosity='minimal'
77

88
while [[ $# > 0 ]]; do

eng/common/post-build/add-build-to-channel.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ param(
22
[Parameter(Mandatory=$true)][int] $BuildId,
33
[Parameter(Mandatory=$true)][int] $ChannelId,
44
[Parameter(Mandatory=$true)][string] $MaestroApiAccessToken,
5-
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro-prod.westus2.cloudapp.azure.com',
5+
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro.dot.net',
66
[Parameter(Mandatory=$false)][string] $MaestroApiVersion = '2019-01-16'
77
)
88

eng/common/post-build/publish-using-darc.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param(
33
[Parameter(Mandatory=$true)][int] $PublishingInfraVersion,
44
[Parameter(Mandatory=$true)][string] $AzdoToken,
55
[Parameter(Mandatory=$true)][string] $MaestroToken,
6-
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro-prod.westus2.cloudapp.azure.com',
6+
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro.dot.net',
77
[Parameter(Mandatory=$true)][string] $WaitPublishingFinish,
88
[Parameter(Mandatory=$false)][string] $ArtifactsPublishingAdditionalParameters,
99
[Parameter(Mandatory=$false)][string] $SymbolPublishingAdditionalParameters

eng/common/post-build/redact-logs.ps1

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[CmdletBinding(PositionalBinding=$False)]
2+
param(
3+
[Parameter(Mandatory=$true, Position=0)][string] $InputPath,
4+
[Parameter(Mandatory=$true)][string] $BinlogToolVersion,
5+
[Parameter(Mandatory=$false)][string] $DotnetPath,
6+
[Parameter(Mandatory=$false)][string] $PackageFeed = 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json',
7+
# File with strings to redact - separated by newlines.
8+
# For comments start the line with '# ' - such lines are ignored
9+
[Parameter(Mandatory=$false)][string] $TokensFilePath,
10+
[Parameter(ValueFromRemainingArguments=$true)][String[]]$TokensToRedact
11+
)
12+
13+
try {
14+
. $PSScriptRoot\post-build-utils.ps1
15+
16+
$packageName = 'binlogtool'
17+
18+
$dotnet = $DotnetPath
19+
20+
if (!$dotnet) {
21+
$dotnetRoot = InitializeDotNetCli -install:$true
22+
$dotnet = "$dotnetRoot\dotnet.exe"
23+
}
24+
25+
$toolList = & "$dotnet" tool list -g
26+
27+
if ($toolList -like "*$packageName*") {
28+
& "$dotnet" tool uninstall $packageName -g
29+
}
30+
31+
$toolPath = "$PSScriptRoot\..\..\..\.tools"
32+
$verbosity = 'minimal'
33+
34+
New-Item -ItemType Directory -Force -Path $toolPath
35+
36+
Push-Location -Path $toolPath
37+
38+
try {
39+
Write-Host "Installing Binlog redactor CLI..."
40+
Write-Host "'$dotnet' new tool-manifest"
41+
& "$dotnet" new tool-manifest
42+
Write-Host "'$dotnet' tool install $packageName --local --add-source '$PackageFeed' -v $verbosity --version $BinlogToolVersion"
43+
& "$dotnet" tool install $packageName --local --add-source "$PackageFeed" -v $verbosity --version $BinlogToolVersion
44+
45+
if (Test-Path $TokensFilePath) {
46+
Write-Host "Adding additional sensitive data for redaction from file: " $TokensFilePath
47+
$TokensToRedact += Get-Content -Path $TokensFilePath | Foreach {$_.Trim()} | Where { $_ -notmatch "^# " }
48+
}
49+
50+
$optionalParams = [System.Collections.ArrayList]::new()
51+
52+
Foreach ($p in $TokensToRedact)
53+
{
54+
if($p -match '^\$\(.*\)$')
55+
{
56+
Write-Host ("Ignoring token {0} as it is probably unexpanded AzDO variable" -f $p)
57+
}
58+
elseif($p)
59+
{
60+
$optionalParams.Add("-p:" + $p) | Out-Null
61+
}
62+
}
63+
64+
& $dotnet binlogtool redact --input:$InputPath --recurse --in-place `
65+
@optionalParams
66+
67+
if ($LastExitCode -ne 0) {
68+
Write-PipelineTelemetryError -Category 'Redactor' -Type 'warning' -Message "Problems using Redactor tool (exit code: $LastExitCode). But ignoring them now."
69+
}
70+
}
71+
finally {
72+
Pop-Location
73+
}
74+
75+
Write-Host 'done.'
76+
}
77+
catch {
78+
Write-Host $_
79+
Write-PipelineTelemetryError -Category 'Redactor' -Message "There was an error while trying to redact logs. Error: $_"
80+
ExitWithExitCode 1
81+
}

eng/common/post-build/trigger-subscriptions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ param(
22
[Parameter(Mandatory=$true)][string] $SourceRepo,
33
[Parameter(Mandatory=$true)][int] $ChannelId,
44
[Parameter(Mandatory=$true)][string] $MaestroApiAccessToken,
5-
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro-prod.westus2.cloudapp.azure.com',
5+
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro.dot.net',
66
[Parameter(Mandatory=$false)][string] $MaestroApiVersion = '2019-01-16'
77
)
88

eng/common/templates/job/publish-build-assets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
- group: AzureDevOps-Artifact-Feeds-Pats
4949
- name: runCodesignValidationInjection
5050
value: false
51-
- ${{ if eq(parameters.publishAssetsImmediately, 'true') }}:
52-
- template: /eng/common/templates/post-build/common-variables.yml
51+
# unconditional - needed for logs publishing (redactor tool version)
52+
- template: /eng/common/templates/post-build/common-variables.yml
5353

5454
pool:
5555
# We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)
@@ -81,7 +81,7 @@ jobs:
8181
arguments: -task PublishBuildAssets -restore -msbuildEngine dotnet
8282
/p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
8383
/p:BuildAssetRegistryToken=$(MaestroAccessToken)
84-
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
84+
/p:MaestroApiEndpoint=https://maestro.dot.net
8585
/p:PublishUsingPipelines=${{ parameters.publishUsingPipelines }}
8686
/p:OfficialBuildId=$(Build.BuildNumber)
8787
condition: ${{ parameters.condition }}

0 commit comments

Comments
 (0)