-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow repos to opt-out of building tests #46394
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
Allow repos to opt-out of building tests #46394
Conversation
Yes please, I already had to read that sentence twice to spot the difference :D I'd call it |
@@ -459,6 +459,9 @@ | |||
ProcessFrameworkReferences not be able to restore for the given RID. --> | |||
<BuildArgs Condition="'$(DotNetBuildSourceOnly)' != 'true' and '@(TransitiveRepositoryReference->AnyHaveMetadataValue('Identity', 'runtime'))' == 'true'">$(BuildArgs) /p:DotNetBuildTargetRidOnly=true</BuildArgs> | |||
|
|||
<!-- Only pass when enabled to reduce command line noise. --> | |||
<BuildArgs Condition="'$(DotNetBuildTests)' == 'true' and '$(DoNotBuildTests)' != 'true'">$(BuildArgs) /p:DotNetBuildTests=true</BuildArgs> |
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 do think the names are deceptively similar. I propose a name like ExcludeFromBuildingTests
.
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 doesn't need to be in a target. Only properties that need dynamic resolution (like the one above) needs to be here.
I would put this here:
</PropertyGroup> |
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.
Yeah, that's better - thanks!
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.
Fixed with 51744b8
@@ -2,6 +2,7 @@ | |||
|
|||
<PropertyGroup> | |||
<DeterministicBuildOptOut>true</DeterministicBuildOptOut> | |||
<DoNotBuildTests>true</DoNotBuildTests> |
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.
Should we file tracking issues for these exclusions and add comments here?
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.
Sure. I'll do that - thanks!
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.
Fixed with 51744b8
Hmm, we have two naming proposals now: To me, |
OK - going with |
Fixed with 51744b8 |
All checks are passing except an unrelated |
This is a prerequisite for us enabling tests in VMR, i.e. #44843
This PR sets the new opt-out property for repos that are not ready to build tests, for some reason. I will create issues for each of those repos with detailed info about test failures and steps forward. PRs with fixes would follow soon after.
This PR also fixes the issue with building tests in
sdk
repo.I understand that the new property
DoNotBuildTests
has a very similar name to the property we use to enable tests:DotNetBuildTests
. If there is a significant risk of confusion, we can change the name to something else.