Skip to content

Add RuntimeConfiguration flags to have more flexibility on SkipOnCoreClrAttribute - #4764

Merged
safern merged 2 commits into
dotnet:masterfrom
safern:IntroduceTestModesSkipCoreClr
Feb 6, 2020
Merged

Add RuntimeConfiguration flags to have more flexibility on SkipOnCoreClrAttribute#4764
safern merged 2 commits into
dotnet:masterfrom
safern:IntroduceTestModesSkipCoreClr

Conversation

@safern

@safern safern commented Feb 5, 2020

Copy link
Copy Markdown
Member

This gives us the flexibility of disabling for a stress mode in a specific configuration or for disabling in any stress mode in any configuration, or to disable for just one configuration, etc. Before these where exclusive, it was either one or the other, now we can disable with more granularity.

Also added license files.

@safern
safern requested a review from stephentoub February 5, 2020 08:23
{
Any = ~0,
Checked = 1,
Release = 1 << 1,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't expect us to be needing to disable on Debug mode, but should we add it for consistency and completeness?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah I would add it for the sake of completeness. I'm sure somebody will ask for it sooner or later.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Licensed to the .NET Foundation under one or more agreements.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Double copyright to be super safe? :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

hahaha oops.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@safern

safern commented Feb 6, 2020

Copy link
Copy Markdown
Member Author

Merging now. If someone has any follow up feedback I can address later.

@safern
safern merged commit e8c75ec into dotnet:master Feb 6, 2020
@safern
safern deleted the IntroduceTestModesSkipCoreClr branch February 6, 2020 00:19
public enum RuntimeConfiguration
{
Any = ~0,
Checked = 1,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If Checked is too slow for something, Debug is going to be too slow as well. Are people supposed to always use Checked together with Debug?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, I am getting tired of the Debug vs. Checked conundrum. Wrote a proposal here: dotnet/runtime#31852

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ha, I'm glad I inspired you on this.

I wouldn't expect people to have to use Debug at the moment in these attributes as we don't run those tests on CI, but if needed let me know and I can update to skip on both when either flag is present.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants