-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into bumpMetadata
- Loading branch information
Showing
48 changed files
with
1,169 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
variables: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
BuildConfiguration: Release | ||
NUGET_PACKAGES: $(Agent.TempDirectory)/.nuget/packages/ | ||
# codecov_token: 4dc9e7e2-6b01-4932-a180-847b52b43d35 # Get a new one from https://codecov.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variables: | ||
# These variables are required for MicroBuild tasks | ||
TeamName: VS IDE | ||
TeamEmail: vsidemicrobuild@microsoft.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<!-- This file is only used in repos where OptProf is enabled. --> | ||
<metadata> | ||
<id>LibraryName.VSInsertionMetadata</id> | ||
<version>$version$</version> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<!-- <projectUrl>https://github.com/Microsoft/LibraryName</projectUrl> --> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Contains metadata for insertion into VS.</description> | ||
<copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
</metadata> | ||
<files> | ||
<file src="ProfilingInputs.props" target="InsertionVS/" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
trigger: none | ||
pr: none | ||
schedules: | ||
- cron: "0 3 * * Fri" # Thu @ 8 or 9 PM Mountain Time (depending on DST) | ||
displayName: Weekly OptProf run | ||
branches: | ||
include: | ||
- 'v*.*' | ||
- main | ||
always: true # we must keep data fresh since optimizationdata drops are purged after 30 days | ||
|
||
# Avoid errant CI builds: https://developercommunity.visualstudio.com/content/problem/1154409/azure-pipeline-is-triggering-due-to-events-that-ne.html | ||
#resources: | ||
# repositories: | ||
# - repository: scripts | ||
# type: git | ||
# name: DeploymentScripts | ||
# ref: refs/heads/test | ||
|
||
variables: | ||
- template: GlobalVariables.yml | ||
- name: PublicRelease | ||
value: false # avoid using nice version since we're building a preliminary/unoptimized package | ||
- name: IsOptProf | ||
value: true | ||
|
||
stages: | ||
- stage: Library | ||
variables: | ||
- name: OptProf | ||
value: true | ||
- template: BuildStageVariables.yml | ||
jobs: | ||
- template: build.yml | ||
parameters: | ||
Is1ESPT: false | ||
RealSign: true | ||
windowsPool: VSEngSS-MicroBuild2022-1ES | ||
EnableMacOSBuild: false | ||
ShouldSkipOptimize: true | ||
IsOptProf: true | ||
RunTests: false | ||
- stage: QueueVSBuild | ||
jobs: | ||
- job: QueueOptProf | ||
pool: VSEngSS-MicroBuild2022-1ES | ||
variables: | ||
InsertPayloadName: LibraryName | ||
InsertTopicBranch: team/VS-IDE/LibraryName-OptProf-run-$(Build.BuildId) | ||
steps: | ||
- checkout: none # We don't need source from our own repo | ||
clean: true | ||
|
||
# Pipeline YAML does not yet support checking out other repos. So we'll do it by hand. | ||
# - checkout: scripts # We DO need source from the DeploymentScripts repo | ||
# clean: true | ||
# path: $(Agent.TempDirectory)/DeploymentScripts | ||
# fetchDepth: 1 | ||
- script: 'git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" clone https://devdiv.visualstudio.com/DevDiv/_git/DeploymentScripts --depth 1 --branch test "$(Agent.TempDirectory)/DeploymentScripts"' | ||
displayName: Download DeploymentScripts repo | ||
|
||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download insertion artifacts | ||
inputs: | ||
artifactName: VSInsertion-Windows | ||
downloadPath: $(Agent.TempDirectory) | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download variables artifacts | ||
inputs: | ||
artifactName: Variables-Windows | ||
downloadPath: $(Agent.TempDirectory) | ||
- task: PowerShell@2 | ||
displayName: Set pipeline variables based on artifacts | ||
inputs: | ||
targetType: filePath | ||
filePath: $(Agent.TempDirectory)/Variables-Windows/_pipelines.ps1 | ||
- task: NuGetCommand@2 | ||
displayName: Push CoreXT packages to VS feed | ||
inputs: | ||
command: push | ||
packagesToPush: $(Agent.TempDirectory)/VSInsertion-Windows/*.nupkg | ||
publishVstsFeed: 97a41293-2972-4f48-8c0e-05493ae82010 # VS feed | ||
allowPackageConflicts: true | ||
- task: MicroBuildInsertVsPayload@4 | ||
displayName: Insert VS Payload | ||
inputs: | ||
TeamName: $(TeamName) | ||
TeamEmail: $(TeamEmail) | ||
SkipCreatePR: true | ||
CustomScriptExecutionCommand: src\VSSDK\NuGet\AllowUnstablePackages.ps1 | ||
- task: benjhuser.tfs-extensions-build-tasks.trigger-build-task.TriggerBuild@3 | ||
displayName: Trigger a new build of DD-CB-TestSignVS-devCI | ||
inputs: | ||
buildDefinition: DD-CB-TestSignVS-devCI | ||
useSameBranch: false | ||
branchToUse: $(InsertTopicBranch) | ||
storeInEnvironmentVariable: true | ||
queueBuildForUserThatTriggeredBuild: false | ||
authenticationMethod: OAuth Token | ||
password: $(System.AccessToken) | ||
- task: PowerShell@2 | ||
displayName: Associate InsertionOutputs artifacts with CloudBuild | ||
inputs: | ||
targetType: filePath | ||
filePath: $(Agent.TempDirectory)/DeploymentScripts/Scripts/Insertion/WriteArtifact.ps1 | ||
arguments: '-oldBuildID $(Build.BuildId) -newBuildID $(TriggeredBuildIds) -artifactName "InsertionOutputs" -accessToken $(System.AccessToken)' | ||
- task: PowerShell@2 | ||
displayName: Tag the build with LibraryName-insertion | ||
inputs: | ||
targetType: filePath | ||
filePath: $(Agent.TempDirectory)/DeploymentScripts/Scripts/Insertion/TagBuild.ps1 | ||
arguments: '-buildID $(TriggeredBuildIds) -tagName "LibraryName-insertion" -accessToken $(System.AccessToken)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
trigger: none | ||
pr: none | ||
|
||
resources: | ||
pipelines: | ||
- pipeline: VisualStudioBuildUnderTest | ||
source: DD-CB-TestSignVS-devCI | ||
trigger: | ||
tags: | ||
- LibraryName-insertion | ||
- pipeline: DartLab | ||
source: DartLab | ||
branch: main | ||
- pipeline: DartLab.OptProf | ||
source: DartLab.OptProf | ||
branch: main | ||
repositories: | ||
- repository: DartLabTemplates | ||
type: git | ||
name: DartLab.Templates | ||
ref: refs/heads/main | ||
- repository: DartLabOptProfTemplates | ||
type: git | ||
name: DartLab.OptProf | ||
ref: refs/heads/main | ||
|
||
parameters: | ||
|
||
# The prefix naming of the OptimizationInputs drop | ||
- name: optimizationDropPrefix | ||
type: string | ||
default: OptimizationInputs/$(System.TeamProject)/$(Build.Repository.Name) | ||
|
||
stages: | ||
- template: \templates\stages\visual-studio\single-runsettings.yml@DartLabOptProfTemplates | ||
parameters: | ||
##### Required ##### | ||
runSettingsURI: $(Pipeline.Workspace)\VisualStudioBuildUnderTest\BuildArtifacts\runsettings\LibraryName.OptProf.runsettings | ||
visualStudioBootstrapperURI: https://vsdrop.corp.microsoft.com/file/v1/$(VisualStudio.BuildUnderTest.ProductsDropName);bootstrappers/Enterprise/vs_enterprise.exe | ||
##### Optional ##### | ||
name: OptProfProfilingWorkflow | ||
displayName: OptProf Profiling Workflow | ||
optOptimizationInputsDropName: $(OptimizationInputsDropName) | ||
previousOptimizationInputsDropName: $(PreviousOptimizationInputsDropName) | ||
testLabPoolName: VS-Platform | ||
##### Step Hooks ##### | ||
preTestMachineConfigurationStepList: | ||
- download: VisualStudioBuildUnderTest | ||
- task: PowerShell@2 | ||
name: SetProductsDropName | ||
displayName: Set 'VisualStudio.BuildUnderTest.ProductsDropName' | ||
inputs: | ||
filePath: $(DartLab.Path)\Scripts\VisualStudio\Build\Get-VisualStudioDropName.ps1 | ||
arguments: -DropNamePrefix 'Products' -VstsDropUrlsJson '$(Pipeline.Workspace)\VisualStudioBuildUnderTest\BuildArtifacts\VstsDropUrls.json' -OutVariableName 'VisualStudio.BuildUnderTest.ProductsDropName' | ||
preDeployAndRunTestsStepList: | ||
- download: VisualStudioBuildUnderTest | ||
prePublishOptimizationInputsDropStepList: | ||
# Set parameter for PreviousOptimizationInputsDropName, MicroBuildCommitID, and OptimizationInputsDropName | ||
- powershell: | | ||
try { | ||
$artifactName = 'InsertionOutputs' | ||
$BuildID = $(resources.pipeline.VisualStudioBuildUnderTest.runID) | ||
$artifact = Get-BuildArtifact -InstanceURL 'https://dev.azure.com/devdiv' -ProjectName 'DevDiv' -BuildID $BuildID -ArtifactName $artifactName -OAuthAccessToken (ConvertTo-SecureString '$(System.AccessToken)' -AsPlainText -Force) | ||
$containerName = $artifact.Resource.Data -Split '/' | Select-Object -Last 1 | ||
$fileName = Join-Path $containerName 'Metadata.json' | ||
$jsonString = Read-BuildArtifactFile -InstanceURL 'https://dev.azure.com/devdiv' -ProjectName 'DevDiv' -BuildID $BuildID -ArtifactName $artifactName -FileName $fileName -OAuthAccessToken (ConvertTo-SecureString '$(System.AccessToken)' -AsPlainText -Force) | ||
$json = $jsonString | ConvertFrom-Json | ||
Write-Host "The content of the metadata.json file was $json" | ||
$dropname = $json.OptimizationData | ||
$commitID = $json.CommitID | ||
$OptimizationInputsDropName = "${{parameters.optimizationDropPrefix}}/$($commitID)/$(Build.BuildId)/$(System.StageId)/$(System.StageAttempt)" | ||
Write-Host "PreviousOptimizationInputsDropName: $dropname" | ||
Set-AzurePipelinesVariable 'PreviousOptimizationInputsDropName' $dropname | ||
Write-Host "MicroBuildCommitID: $commitID" | ||
Set-AzurePipelinesVariable 'MicroBuildCommitID' $commitID | ||
Write-Host "OptimizationInputsDropName: $OptimizationInputsDropName" | ||
Set-AzurePipelinesVariable 'OptimizationInputsDropName' $OptimizationInputsDropName | ||
} | ||
catch { | ||
Write-Host $_ | ||
Write-Error "Failed to set OptimizationInputsDropName pipeline variable" | ||
throw | ||
} | ||
displayName: Set MicroBuildCommitID, PreviousOptimizationInputsDropName, and OptimizationInputsDropName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<TestStore Include="%TESTSTORE%" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"tsaVersion": "TsaV2", | ||
"codebase": "NewOrUpdate", | ||
"codebaseName": "LibraryName", | ||
"tsaStamp": "DevDiv", | ||
"tsaEnvironment": "PROD", | ||
"notificationAliases": [ | ||
"vsidemicrobuild@microsoft.com" | ||
], | ||
"codebaseAdmins": [ | ||
"REDMOND\\andarno" | ||
], | ||
"instanceUrl": "https://devdiv.visualstudio.com", | ||
"projectName": "DevDiv", | ||
"areaPath": "DevDiv\\VS Core", | ||
"iterationPath": "DevDiv", | ||
"alltools": true, | ||
"repositoryName": "Library.Template" | ||
} |
Oops, something went wrong.