-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Join assets from verticals in the final join point #43627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ViktorHofer
merged 23 commits into
dotnet:main
from
MilenaHristova:mhristova/join-verticals
Oct 17, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0270b04
merge vertical manifests
MilenaHristova 260f356
exclude verticals from join
MilenaHristova c5c14ac
add comment
MilenaHristova 0aa6762
list duplicate assets
MilenaHristova d1784b7
parallelism
MilenaHristova 745f552
download build artifact
MilenaHristova 6f70d33
fix path
MilenaHristova 82c18d0
add comment
MilenaHristova ed711dc
add extra parallelism
MilenaHristova c34e878
Update src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.Unifi…
MilenaHristova 717bfcb
Merge branch 'main' into mhristova/join-verticals
MilenaHristova a08dc29
add comment
MilenaHristova 0a9cb47
Merge branch 'mhristova/join-verticals' of https://github.com/MilenaH…
MilenaHristova afd565d
Merge branch 'main' into mhristova/join-verticals
mmitche 1093ff3
Merge branch 'main' into mhristova/join-verticals
mmitche ea8dd95
Update src/SourceBuild/content/eng/join-verticals.proj
MilenaHristova 90400d7
Update src/SourceBuild/content/eng/pipelines/ci.yml
MilenaHristova 2e256ba
Update src/SourceBuild/content/eng/pipelines/pr.yml
MilenaHristova 0d501d1
Remove the unused target
ViktorHofer 5d36eba
Update src/SourceBuild/content/eng/pipelines/ci.yml
ViktorHofer d33abcc
Update src/SourceBuild/content/eng/pipelines/pr.yml
ViktorHofer 37d25d5
Merge branch 'main' into mhristova/join-verticals
ViktorHofer 875c991
Update vmr-build.yml
ViktorHofer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,52 @@ | ||
parameters: | ||
# Branch of the VMR to use (to push to for internal builds) | ||
- name: vmrBranch | ||
type: string | ||
default: $(Build.SourceBranch) | ||
|
||
- name: pool_Windows | ||
type: object | ||
default: | ||
name: $(defaultPoolName) | ||
image: $(poolImage_Windows) | ||
demands: ImageOverride -equals $(poolImage_Windows) | ||
os: windows | ||
|
||
stages: | ||
- stage: VMR_Final_Join | ||
displayName: VMR Final Join | ||
dependsOn: VMR_Vertical_Build | ||
condition: succeededOrFailed() | ||
variables: | ||
- template: ../variables/vmr-build.yml | ||
parameters: | ||
vmrBranch: ${{ parameters.vmrBranch }} | ||
|
||
jobs: | ||
- job: FinalJoin | ||
displayName: Final Build Pass | ||
pool: ${{ parameters.pool_Windows }} | ||
timeoutInMinutes: 240 | ||
templateContext: | ||
outputs: | ||
- output: buildArtifacts | ||
PathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts/MergedManifest.xml | ||
ArtifactName: AssetManifests | ||
displayName: Publish Merged Manifest | ||
sbomEnabled: false | ||
- output: buildArtifacts | ||
PathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts/assets | ||
ArtifactName: BlobArtifacts | ||
displayName: Publish Blob Artifacts | ||
sbomEnabled: false | ||
- output: buildArtifacts | ||
PathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts/packages | ||
ArtifactName: PackageArtifacts | ||
displayName: Publish Package Artifacts | ||
sbomEnabled: false | ||
steps: | ||
- template: ../steps/vmr-join-verticals.yml | ||
parameters: | ||
dotNetBuildPass: final | ||
primaryDependentJob: Windows_x64 | ||
outputFolder: $(Build.ArtifactStagingDirectory)/artifacts |
This file contains hidden or 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,37 @@ | ||
parameters: | ||
- name: dotNetBuildPass | ||
type: string | ||
default: final | ||
|
||
- name: primaryDependentJob | ||
type: string | ||
default: Windows_x64 | ||
|
||
- name: outputFolder | ||
type: string | ||
default: $(Build.ArtifactStagingDirectory)/artifacts | ||
|
||
steps: | ||
- task: DownloadBuildArtifacts@1 | ||
inputs: | ||
artifactName: 'VerticalManifests' | ||
downloadPath: $(Build.ArtifactStagingDirectory) | ||
checkDownloadedFiles: true | ||
|
||
- task: DownloadPipelineArtifact@2 | ||
inputs: | ||
artifactName: ${{ parameters.primaryDependentJob }}_Artifacts | ||
targetPath: $(Build.ArtifactStagingDirectory)/${{ parameters.primaryDependentJob }}_Artifacts | ||
checkDownloadedFiles: true | ||
|
||
- powershell: eng/join-verticals.ps1 | ||
/p:VerticalManifestsPath=$(Build.ArtifactStagingDirectory)/VerticalManifests | ||
/p:MainVertical=${{ parameters.primaryDependentJob }} | ||
/p:DotNetBuildPass=${{ parameters.dotNetBuildPass }} | ||
/p:BuildId=$(Build.BuildId) | ||
/p:AzureDevOpsToken=$(System.AccessToken) | ||
/p:AzureDevOpsBaseUri=$(System.CollectionUri) | ||
/p:AzureDevOpsProject=$(System.TeamProject) | ||
/p:MainVerticalArtifactsFolder=$(Build.ArtifactStagingDirectory)/${{ parameters.primaryDependentJob }}_Artifacts | ||
/p:OutputFolder=${{ parameters.outputFolder }} | ||
displayName: Join Verticals |
This file contains hidden or 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,39 @@ | ||
<Project Sdk="Microsoft.Build.Traversal"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>$(NetCurrent)</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="$(TasksDir)Microsoft.DotNet.UnifiedBuild.Tasks\Microsoft.DotNet.UnifiedBuild.Tasks.csproj" BuildInParallel="true" /> | ||
</ItemGroup> | ||
|
||
<UsingTask TaskName="Microsoft.DotNet.UnifiedBuild.Tasks.JoinVerticals" AssemblyFile="$(MicrosoftDotNetUnifiedBuildTasksAssembly)" TaskFactory="TaskHostFactory" /> | ||
<Target Name="JoinVerticals" DependsOnTargets="ResolveProjectReferences" AfterTargets="Build"> | ||
<Error Condition="'$(MainVertical)' == ''" Text="MainVertical is not set." /> | ||
<Error Condition="'$(VerticalManifestsPath)' == ''" Text="VerticalManifestsPath is not set." /> | ||
<Error Condition="'$(BuildId)' == ''" Text="BuildId is not set." /> | ||
<Error Condition="'$(AzureDevOpsBaseUri)' == ''" Text="AzureDevOpsBaseUri is not set." /> | ||
<Error Condition="'$(AzureDevOpsProject)' == ''" Text="AzureDevOpsProject is not set." /> | ||
<Error Condition="'$(MainVerticalArtifactsFolder)' == ''" Text="MainVerticalArtifactsFolder is not set." /> | ||
<Error Condition="'$(OutputFolder)' == ''" Text="OutputFolder is not set." /> | ||
|
||
<ItemGroup> | ||
<VerticalManifest | ||
Include="$(VerticalManifestsPath)\*.xml" | ||
Exclude="$(VerticalManifestsPath)\*Mono*.xml;$(VerticalManifestsPath)\*Pgo*.xml;$(VerticalManifestsPath)\*Shortstack*.xml;$(VerticalManifestsPath)\*DevVersions*.xml" /> | ||
</ItemGroup> | ||
|
||
<!-- AzureDevOpsToken shouldn't be set when running in dnceng-public --> | ||
<Microsoft.DotNet.UnifiedBuild.Tasks.JoinVerticals | ||
VerticalManifest="@(VerticalManifest)" | ||
MainVertical="$(MainVertical)" | ||
BuildId="$(BuildId)" | ||
AzureDevOpsToken="$(AzureDevOpsToken)" | ||
AzureDevOpsBaseUri="$(AzureDevOpsBaseUri)" | ||
AzureDevOpsProject="$(AzureDevOpsProject)" | ||
MainVerticalArtifactsFolder="$(MainVerticalArtifactsFolder)" | ||
OutputFolder="$(OutputFolder)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains hidden or 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,33 @@ | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
[string][Alias('v')]$verbosity = "minimal", | ||
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties | ||
) | ||
|
||
$useGlobalNuGetCache=$false | ||
$ci = $true | ||
|
||
. $PSScriptRoot\common\tools.ps1 | ||
|
||
$project = Join-Path $EngRoot "join-verticals.proj" | ||
$arguments = @() | ||
$targets = "/t:JoinVerticals" | ||
|
||
try { | ||
$bl = '/bl:' + (Join-Path $LogDir 'JoinVerticals.binlog') | ||
|
||
MSBuild -restore ` | ||
$project ` | ||
$bl ` | ||
$targets ` | ||
/p:Configuration=Release ` | ||
@properties ` | ||
@arguments | ||
} | ||
catch { | ||
Write-Host $_.ScriptStackTrace | ||
Write-PipelineTelemetryError -Category 'Build' -Message $_ | ||
ExitWithExitCode 1 | ||
} | ||
|
||
ExitWithExitCode 0 |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.