-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use Arcade's publishing logic to publish a given VMR vertical #47076
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
mmitche
merged 41 commits into
dotnet:release/10.0.1xx-preview4
from
jkoritzinsky:vertical-manifest-arcade
Apr 30, 2025
Merged
Changes from 6 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
0179fcb
Use Arcade's built-in publishing support to publish a merged manifest…
jkoritzinsky b5e899d
Merge branch 'main' into vertical-manifest-arcade
jkoritzinsky ff0a91e
Merge branch 'main' of github.com:dotnet/sdk into vertical-manifest-a…
jkoritzinsky 52cb084
Don't use the Sign property that Arcade messes with and quote an argu…
jkoritzinsky 29560c9
Fix the asset manifest file name property
jkoritzinsky d783266
Merge branch 'main' of github.com:dotnet/sdk into vertical-manifest-a…
jkoritzinsky e0ef55b
Merge branch 'main' of github.com:dotnet/sdk into vertical-manifest-a…
jkoritzinsky d38af79
Upload assets on failure with the pull-based model
jkoritzinsky ab3e38f
Fix manifest name
jkoritzinsky 567486b
Use a different property for detecting a restore for the test build
f0a49fc
Rename artifact path
jkoritzinsky c203971
Remove DotnetPublishUsingPipelines
jkoritzinsky bec5a23
Split finish-source-only into an "end of build" step and a "post-publ…
jkoritzinsky a928b79
Merge branch 'main' of github.com:dotnet/sdk into vertical-manifest-a…
jkoritzinsky eed2170
Avoid self-referential metadata.
jkoritzinsky de8d62d
Fix relative blob paths for assets.
jkoritzinsky 854372a
Make the Test target just use the existing VSTest integration in .NET…
jkoritzinsky 5abd97a
Fix publishing metadata
jkoritzinsky 4fd84f5
Remove NoTargets SDK from PublishSourceBuild.props
jkoritzinsky 82846db
Adjust paths, make sure we name the SB artifacts tarball correctly.
jkoritzinsky 452bd8d
Remove dependency on target
jkoritzinsky 4f1ee97
Fetch the repository commit manually as Publish.proj doesn't include …
jkoritzinsky c74ae69
Don't use git manually
jkoritzinsky 08c1a9c
Pass the package id to WritePackageVersionProps
jkoritzinsky 1480dc2
Specify offline restore sources for source-build
jkoritzinsky 0f848a6
Upload PDB artifacts in join job and PR feedback
jkoritzinsky 05a689f
Merge branch 'main' into vertical-manifest-arcade
ViktorHofer 8934513
Respond to Michael's PR which got merged
ViktorHofer 8b7404d
Add comments
jkoritzinsky 72b4606
Merge branch 'vertical-manifest-arcade' of github.com:jkoritzinsky/do…
jkoritzinsky 70dea93
Set IsTestRun=true as a property so it gets passed to init-source-onl…
jkoritzinsky a5de6ed
Fix PDB artifact path
jkoritzinsky 7eeae29
Put VerticalName on the vertical manifests (required by JoinVerticals)
jkoritzinsky 6af3bab
Include as an item
jkoritzinsky d7c4b03
Publish PDBs by vertical name
jkoritzinsky 54ecb84
Remove nonexistent target
jkoritzinsky 534e77e
Update publish.proj to put PDBs in a separate dir
mmitche 20a29da
Fix patch
mmitche dc37dc9
Do not flatten PDBs
mmitche 1ac1ff5
Force directory creation
jkoritzinsky b282ee9
Use the fully-constructed path
jkoritzinsky 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
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,92 @@ | ||
<Project InitialTargets="DiscoverArtifacts"> | ||
<PropertyGroup> | ||
<EnableDefaultArtifacts>false</EnableDefaultArtifacts> | ||
<PushToLocalStorage>true</PushToLocalStorage> | ||
<PreserveRepoOrigin>true</PreserveRepoOrigin> | ||
<ArtifactsAssetsDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'assets', '$(Configuration)'))</ArtifactsAssetsDir> | ||
<ArtifactsStagingDir Condition="'$(ArtifactsStagingDir)' == ''">$(ArtifactsDir)/staging/</ArtifactsStagingDir> | ||
<SourceBuiltAssetsDir>$(ArtifactsStagingDir)/assets/$(Configuration)</SourceBuiltAssetsDir> | ||
<SourceBuiltAssetManifestsDir>$(ArtifactsStagingDir)/manifests/$(Configuration)</SourceBuiltAssetManifestsDir> | ||
<SourceBuiltPdbArtifactsDir>$(ArtifactsStagingDir)/PDB/$(Configuration)</SourceBuiltPdbArtifactsDir> | ||
<PrereqsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'prereqs'))</PrereqsDir> | ||
<PrereqsPackagesDir>$([MSBuild]::NormalizeDirectory('$(PrereqsDir)', 'packages'))</PrereqsPackagesDir> | ||
<ReferencePackagesDir>$([MSBuild]::NormalizeDirectory('$(PrereqsPackagesDir)', 'reference'))</ReferencePackagesDir> | ||
<PublishingUseHardlinksIfPossible>true</PublishingUseHardlinksIfPossible> | ||
<AssetManifestFileName Condition="'$(VerticalName)' != ''">$(VerticalName).xml</AssetManifestFileName> | ||
<AssetManifestFileName Condition="'$(DotNetBuildSourceOnly)' == 'true' or '$(AssetManifestName)' == ''">VerticalManifest.xml</AssetManifestFileName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'"> | ||
<SourceBuiltShippingPackagesDir>$(ArtifactsStagingDir)/packages/$(Configuration)/Shipping</SourceBuiltShippingPackagesDir> | ||
<SourceBuiltNonShippingPackagesDir>$(ArtifactsStagingDir)/packages/$(Configuration)/NonShipping</SourceBuiltNonShippingPackagesDir> | ||
</PropertyGroup> | ||
<!-- | ||
When building from source, the Private.SourceBuilt.Artifacts archive will contain the nuget packages, so don't push them where we'll upload from. | ||
--> | ||
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'"> | ||
<SourceBuiltShippingPackagesDir>$(ArtifactsTmpDir)/staging/packages/$(Configuration)/Shipping</SourceBuiltShippingPackagesDir> | ||
<SourceBuiltNonShippingPackagesDir>$(ArtifactsTmpDir)/staging/packages/$(Configuration)/NonShipping</SourceBuiltNonShippingPackagesDir> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<AssetManifestsIntermediateDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', 'manifests', '$(Configuration)'))</AssetManifestsIntermediateDir> | ||
<IntermediateSymbolsRootDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', 'Symbols'))</IntermediateSymbolsRootDir> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
Don't binplace any artifacts with vertical visibility. These are only used for building other repos within this vertical | ||
and shouldn't be pushed to build storage. | ||
--> | ||
<ItemGroup> | ||
<ArtifactVisibilityToPublish Include="Internal;External" /> | ||
</ItemGroup> | ||
|
||
<!-- Build task assembly paths --> | ||
<PropertyGroup> | ||
<MicrosoftDotNetUnifiedBuildTasksAssembly>$([MSBuild]::NormalizePath('$(ArtifactsBinDir)', 'Microsoft.DotNet.UnifiedBuild.Tasks', '$(Configuration)', 'Microsoft.DotNet.UnifiedBuild.Tasks.dll'))</MicrosoftDotNetUnifiedBuildTasksAssembly> | ||
</PropertyGroup> | ||
|
||
<UsingTask TaskName="Microsoft.DotNet.UnifiedBuild.Tasks.GetKnownArtifactsFromAssetManifests" AssemblyFile="$(MicrosoftDotNetUnifiedBuildTasksAssembly)" TaskFactory="TaskHostFactory" /> | ||
|
||
<Target Name="DiscoverArtifacts"> | ||
<ItemGroup> | ||
<!-- Repo manifests from individual repos --> | ||
<RepoManifests Include="$(AssetManifestsIntermediateDir)/**/*.xml" /> | ||
</ItemGroup> | ||
<!-- Get produced packages and assets from the manifests --> | ||
<GetKnownArtifactsFromAssetManifests AssetManifests="@(RepoManifests)"> | ||
mmitche marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<Output TaskParameter="KnownPackages" ItemName="ProducedPackage" /> | ||
<Output TaskParameter="KnownBlobs" ItemName="ProducedAsset" /> | ||
jkoritzinsky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</GetKnownArtifactsFromAssetManifests> | ||
<ItemGroup> | ||
<ProducedPackage> | ||
<IsShipping Condition="'%(ProducedPackage.NonShipping)' != 'true'">true</IsShipping> | ||
<IsShipping Condition="'%(ProducedPackage.NonShipping)' == 'true'">false</IsShipping> | ||
<Kind>Package</Kind> | ||
<PublishFlatContainer>false</PublishFlatContainer> | ||
mmitche marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</ProducedPackage> | ||
<ProducedPackage> | ||
<ShippingFolder Condition="'%(ProducedPackage.NonShipping)' != 'true'">Shipping</ShippingFolder> | ||
<ShippingFolder Condition="'%(ProducedPackage.NonShipping)' == 'true'">NonShipping</ShippingFolder> | ||
</ProducedPackage> | ||
|
||
<ReferencePackage Include="@(ProducedPackage->'$(ReferencePackagesDir)%(Identity).%(Version).nupkg')" Condition="'%(RepoOrigin)' == 'source-build-reference-packages'" /> | ||
</ItemGroup> | ||
|
||
<!-- Create Artifact items for produced packages and assets --> | ||
<ItemGroup> | ||
<Artifact Include="@(ProducedPackage->'$(ArtifactsPackagesDir)%(ShippingFolder)/%(RepoOrigin)/%(Identity).%(Version).nupkg')" Condition="'%(RepoOrigin)' != 'source-build-reference-packages'" /> | ||
<Artifact Include="@(ReferencePackage)" RepoOrigin="SourceBuildReferencePackages" /> | ||
<Artifact Include="@(ProducedAsset->'$(ArtifactsAssetsDir)%(Identity)')"> | ||
<Kind>Asset</Kind> | ||
</Artifact> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="FinishSourceBuild" AfterTargets="Publish" Condition="'$(DotNetBuildSourceOnly)' == 'true'"> | ||
<MSBuild | ||
Projects="$(RepositoryEngineeringDir)finish-source-only.proj" | ||
Targets="Restore" | ||
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid())" /> | ||
<MSBuild | ||
Projects="$(RepositoryEngineeringDir)finish-source-only.proj" /> | ||
</Target> | ||
jkoritzinsky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</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
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 was deleted.
Oops, something went wrong.
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.