-
Notifications
You must be signed in to change notification settings - Fork 787
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
Fix load order of ProjectStaging and restrict package version validation to only official builds #6041
base: main
Are you sure you want to change the base?
Conversation
Tested in https://dev.azure.com/dnceng/internal/_build/results?buildId=2660769 and compared artifacts to the latest release (9.3). |
a37fef3
to
0804d78
Compare
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.
Other than the above comments, the rest of the changes look good to me. I'm assuming you've ran a stable build with this and validated that the right packages are still marked as prerelease?
I'm running tests now. |
…ion to only official builds
--> | ||
<DotNetFinalVersionKind /> | ||
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion> |
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.
@joperezr this is what we'll set to true
in the release branch, and this flag controls whether DotNetFinalVersionKind=true
.
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.
Awesome, thanks!
…validation to only official builds
src/Libraries/Microsoft.AspNetCore.Testing/Microsoft.AspNetCore.Testing.csproj
Show resolved
Hide resolved
...aries/Microsoft.Extensions.Diagnostics.Probes/Microsoft.Extensions.Diagnostics.Probes.csproj
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.Hosting.Testing/Microsoft.Extensions.Hosting.Testing.csproj
Show resolved
Hide resolved
...aries/Microsoft.Extensions.Options.Contextual/Microsoft.Extensions.Options.Contextual.csproj
Show resolved
Hide resolved
Note, that Arcade resets $(_PreReleaseLabel) to "ci" for non-official builds, which breaks the validation. | ||
See Arcade SDK/Version.BeforeCommonTargets.targets for more details. | ||
--> | ||
<Target Name="_ValidateVersion" AfterTargets="GenerateNuspec" Condition=" '$(OfficialBuild)' == 'true' and '$(_IsStable)' != 'true' "> |
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.
Where is OfficialBuild
set? And what is the difference between that and OfficialBuildId
which is the common one that gets set?
@@ -105,6 +105,19 @@ | |||
<!-- Enable the Evaluation report builds on all CI builds --> | |||
<PropertyGroup> | |||
<EnableEvaluationReportBuild Condition="'$(ContinuousIntegrationBuild)'=='true'">true</EnableEvaluationReportBuild> | |||
|
|||
<!-- | |||
ProjectStaging.props depends on the $(Stage) property, which is defined in the project file. |
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.
Thanks for the detailed comment 😃!
@@ -31,6 +31,7 @@ pr: | |||
- main | |||
- dev | |||
- release/* | |||
- validation/* |
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.
Do we really want this to run for PRs against validation too? Or simply with manually queued builds?
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.
Left a couple of super minor comments, but this looks good to go otherwise. Thanks a lot for the hard work on this and on getting it back and enabled.
Reinstate #5864.