-
Notifications
You must be signed in to change notification settings - Fork 470
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
Enable publishing in VMR #7233
Merged
+12
−6
Merged
Enable publishing in VMR #7233
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 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 |
---|---|---|
@@ -1,7 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<PublishingVersion>3</PublishingVersion> | ||
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets> | ||
</PropertyGroup> | ||
</Project> | ||
<PropertyGroup> | ||
<PublishingVersion>3</PublishingVersion> | ||
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets> | ||
<PublishDependsOnTargets>$(PublishDependsOnTargets);_PublishPackages</PublishDependsOnTargets> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<_PackagesToPublish Remove="@(_PackagesToPublish)" /> | ||
<_PackagesToPublish Include="$(ArtifactsPackagesDir)**\*.nupkg" UploadPathSegment="Roslyn-analyzers" Condition="'$(DotNetBuildRepo)' == 'true'" /> | ||
</ItemGroup> | ||
|
||
<Target Name="_PublishPackages"> | ||
<ItemGroup> | ||
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows. | ||
Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have | ||
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package | ||
to be published. Use DotNetBuildRepo as DotNetBuildFromSource is only set in the internal source build, | ||
and Build.proj is invoked from the wrapper build. --> | ||
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true' and '$(DotNetBuildRepo)' != 'true'" /> | ||
|
||
<ItemsToPushToBlobFeed Include="@(_PackagesToPublish)"> | ||
<IsShipping>true</IsShipping> | ||
</ItemsToPushToBlobFeed> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm skeptical any of this is needed. In addition,
UploadPathSegment
won't do anything.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very similar to the
fsharp
case: dotnet/fsharp#16838 (comment). Arcade infra won't collect all of the packages as the sub-directories underartifacts/Packages
are different than what arcade expects.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't collect everything I think. This will include duplicates of packages (with different branding).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old model of harvesting artifacts (RepoManifest.xml) was collecting all of these. Here's are the packages:
No duplication of package names, but I'm unsure of contents and if we need all of them. Linux VMR build did require more than what was harvested by default
arcade
publishing infra.I'm doing a local test to see if we can avoid changes in this PR altogether. Same with fsharp changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK - it appears that none of the other packages are needed from this repo - I'm going to close this PR once I'm done with verification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to remove all of these packages and 2nd-stage Linux build failed with missing dependency (package downgrade):
##vso[task.logissue type=error;sourcepath=/src/git/dotnet/src/sdk/src/BuiltInTools/dotnet-watch/dotnet-watch.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Warning As Error: Detected package downgrade: Microsoft.CodeAnalysis.AnalyzerUtilities from 3.11.0 to 3.11.0-beta1.24128.1. Reference the package directly from the project to select a different version. %0A dotnet-watch -> Microsoft.CodeAnalysis.CSharp.Features 4.10.0-3.24129.7 -> Microsoft.CodeAnalysis.Features 4.10.0-3.24129.7 -> Microsoft.CodeAnalysis.AnalyzerUtilities (>= 3.11.0) %0A dotnet-watch -> Microsoft.CodeAnalysis.CSharp.Features 4.10.0-3.24129.7 -> Microsoft.CodeAnalysis.AnalyzerUtilities (>= 3.11.0-beta1.24128.1)
I am now testing a change to include the following packages, and only in source-only build:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trimmed the publishing to include minimum required packages - f62d4c4
Without these changes, 2nd stage Linux build is failing. This can be evaluated at later time to determine if there is a way to get rid of these additional packages. Linux source-build was requiring all of these packages and more. This is an improvement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a reference to tracking issue with 109356e