Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

RussKie
Copy link
Member

@RussKie RussKie commented Mar 5, 2025

Reinstate #5864.

@RussKie RussKie requested a review from a team as a code owner March 5, 2025 22:48
@RussKie RussKie changed the title Fix load order of ProjectStaging and restrict package version validat… Fix load order of ProjectStaging and restrict package version validation to only official builds Mar 5, 2025
@RussKie RussKie requested a review from joperezr March 5, 2025 22:48
@RussKie
Copy link
Member Author

RussKie commented Mar 5, 2025

Tested in in the internal CI leg as a normal and a release branches.

@RussKie
Copy link
Member Author

RussKie commented Mar 11, 2025

Tested in https://dev.azure.com/dnceng/internal/_build/results?buildId=2660769 and compared artifacts to the latest release (9.3).

@RussKie RussKie force-pushed the fix_validation branch 3 times, most recently from a37fef3 to 0804d78 Compare March 12, 2025 23:02
Copy link
Member

@joperezr joperezr left a 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?

@RussKie
Copy link
Member Author

RussKie commented Mar 12, 2025

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.

@RussKie RussKie requested a review from a team as a code owner March 18, 2025 00:58
-->
<DotNetFinalVersionKind />
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

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' ">
Copy link
Member

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.
Copy link
Member

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/*
Copy link
Member

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?

Copy link
Member

@joperezr joperezr left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants