-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ensure green test runs in VS #8329
Comments
#8328 as inspiration for proper conditional skipping of tests |
Just wanted to mention that some of these issues reproduce on the command line as well. For example, |
Not related to VS Run, but when running test of x64: |
#8348 solves # 2, 3 and 4 in the list, and likely other cases as well. The Unix only cases will be skipped in VS now, as the tests running on unsupported framework. This should reduce number of red tests in VS. |
Fixes #7330 (plus one subtask of #8329) Tests only change (no production code affected) Context Drive enumeration integration tests need to simulate attempt to enumerate whole drive. To prevent security and test runtime considerations - a dummy folder is created and mapped to a free letter to be offered to test as a drive for enumeration. Changes Made Added utility for mapping drives and mounted to affected unit tests.
Tests which are still failing:
|
Related issue: #8457 |
Fixes #7330 (plus one subtask of #8329) Changes Made Based on Add ability to create temp mapped drive for integration tests #8366 fixes to enable other Drive enumeration integration tests with a dummy folder in windows Remove one test data https://github.com/dotnet/msbuild/blob/fecef0fdffe59ba8b0251701a23be48bbd552726/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs#L1010-L1012C45 since there is no warning when inlude is not null and exclude with enumerating wildcards. The related logical code is msbuild/src/Build/Utilities/EngineFileUtilities.cs Line 339 in fecef0f private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext, IElementLocation includeLocation, IElementLocation excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec) . There is no condition satisfied. Associate unix Enumeration Tests long time run with issue Unix drive enumeration imports not expanded? #8373
Fixes dotnet#7330 (plus one subtask of dotnet#8329) Changes Made Based on Add ability to create temp mapped drive for integration tests dotnet#8366 fixes to enable other Drive enumeration integration tests with a dummy folder in windows Remove one test data https://github.com/dotnet/msbuild/blob/fecef0fdffe59ba8b0251701a23be48bbd552726/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs#L1010-L1012C45 since there is no warning when inlude is not null and exclude with enumerating wildcards. The related logical code is msbuild/src/Build/Utilities/EngineFileUtilities.cs Line 339 in fecef0f private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext, IElementLocation includeLocation, IElementLocation excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec) . There is no condition satisfied. Associate unix Enumeration Tests long time run with issue Unix drive enumeration imports not expanded? dotnet#8373
Fixes #7330 (plus one subtask of #8329) Changes Made Based on Add ability to create temp mapped drive for integration tests #8366 fixes to enable other Drive enumeration integration tests with a dummy folder in windows Remove one test data https://github.com/dotnet/msbuild/blob/fecef0fdffe59ba8b0251701a23be48bbd552726/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs#L1010-L1012C45 since there is no warning when inlude is not null and exclude with enumerating wildcards. The related logical code is msbuild/src/Build/Utilities/EngineFileUtilities.cs Line 339 in fecef0f private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext, IElementLocation includeLocation, IElementLocation excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec) . There is no condition satisfied. Associate unix Enumeration Tests long time run with issue Unix drive enumeration imports not expanded? #8373
Issue Description
Running unit tests in VS leads to some test failures - this should not be a case. VS-centric developer workflow should not be neglected
Classes of problems to tackle:
ExecMSBuild
fail on core: Unit test failures when run from VS #8313BuildEnvironmentHelper_Tests
fail on core (extra RID in path) - Replacing traits used to skip certain test cases with customTheory
andFact
attributes #8348TestPlatforms.AnyUnix
run on Windows (and can fail). Can we use Need ability to skip test programmatically xunit/xunit#2073 here? - Replacing traits used to skip certain test cases with customTheory
andFact
attributes #8348SkipOnTargetFramework
run on excluded FW (and can fail) Can we use Need ability to skip test programmatically xunit/xunit#2073 here? - Replacing traits used to skip certain test cases with customTheory
andFact
attributes #8348RetainsLastStringWithGivenHashCode
: Fix .NET 3.5 InternableString.GetHashCode to match the full implementation #8340ProjectItemSpecTooLong
(might be env setup on my machine) - related? MSBuild task tests fail when long-paths enabled #4247ProjectGetterResultsInWindowsDriveEnumerationWarning
on Win (might be path specific?) - fixed by Allow MSBuild tests to access root of drive #7330LogWarningUponProjectInstanceCreationFromDriveEnumeratingContent
&LogWindowsWarningUponProjectInstanceCreationFromDriveEnumeratingContent
(env specific?) - Allow MSBuild tests to access root of drive #7330EvaluationProfiler_Tests
(all) - no repro. (might have been caused by the bug in not unsetting the reverted change waves in tests)LogWindowsWarningUponBuildingProjectWithDriveEnumeration
- likely just needs application of the following fix: Add ability to create temp mapped drive for integration tests #8366The text was updated successfully, but these errors were encountered: