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

System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable.SkippingHiddenFiles test fails on Windows 10 2004 #33148

Closed
ViktorHofer opened this issue Mar 4, 2020 · 13 comments · Fixed by #59760
Labels
area-System.IO test-bug Problem in test source code (most likely)
Milestone

Comments

@ViktorHofer
Copy link
Member

System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable.SkippingHiddenFiles [FAIL]
        Assert.Contains() Failure
        Not found: .
        In value:  String[] [".."]
        Stack Trace:
          C:\git\runtime4\src\libraries\System.IO.FileSystem\tests\Enumeration\SpecialDirectoryTests.cs(64,0): at System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable.SkippingHiddenFiles()

OS build: 19574.1000

cc @JeremyKuhne @carlossanlop @jozkee

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.IO untriaged New issue has not been triaged by the area owner labels Mar 4, 2020
@ViktorHofer ViktorHofer changed the title System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable.SkippingHiddenFiles test fails on Windows 2004 System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable.SkippingHiddenFiles test fails on Windows 10 2004 Mar 4, 2020
@JeremyKuhne
Copy link
Member

Interesting. @ViktorHofer does this fail consistently for you?

@JeremyKuhne JeremyKuhne added test-bug Problem in test source code (most likely) and removed untriaged New issue has not been triaged by the area owner labels Mar 4, 2020
@JeremyKuhne JeremyKuhne added this to the 5.0 milestone Mar 4, 2020
@ViktorHofer
Copy link
Member Author

No, not consistently.

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Mar 4, 2020

Just ran the tests again and it failed 3 out of 5 runs.

@carlossanlop carlossanlop modified the milestones: 5.0.0, 6.0.0 Jun 23, 2020
@ViktorHofer
Copy link
Member Author

ViktorHofer commented May 28, 2021

Still failing for me locally with dotnet test:

[xUnit.net 00:00:04.49]     System.IO.Tests.Enumeration.SpecialDirectoryTests_DirectoryInfo_GetDirectories.SkippingHiddenFiles [FAIL]
  Failed System.IO.Tests.Enumeration.SpecialDirectoryTests_DirectoryInfo_GetDirectories.SkippingHiddenFiles [30 ms]
  Error Message:
   Assert.Contains() Failure
Not found: .
In value:  String[] [".."]
  Stack Trace:
     at System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable.SkippingHiddenFiles() in C:\git\runtime2\src\libraries\System.IO.FileSystem\tests\Enumeration\SpecialDirectoryTests.cs:line 63

cc @carlossanlop @adamsitnik

@adamsitnik adamsitnik modified the milestones: 6.0.0, 7.0.0 Jul 22, 2021
@danmoseley
Copy link
Member

With the addition of the Windows 11 test configuration, it's now failing fairly often and always on Windows 11.

I looked at a number of the console outputs and its always the same as above. Maybe an OS bug that is now more common?

https://engsrvprod.kusto.windows.net/engineeringdata?query=H4sIAAAAAAAEAI2TQY%2faMBCF70j8h2lOIFED0qrqhUq7UFoqtbttkHqoKmSSgQw4tuWxRVPtj69JYAnqHjhFjt%2b8efNlskT2P5CD8tztPMPOkIY96XxCWqODn8btFx5LBqNfDov8NekXs65V8dkIDgU6hDlp4gJz%2bDABbQ69t%2bPRKO93O8PhWbGsLMJkAklacXQXM5JbbdhTxmIZ47F4ciZD5vqQXKyb3HXpXJJq3XwPGPBekeT69hBTmgOL8VjIMn93JzJFqL11KIxFnbTTPDipswLesJfO84F8AYnDDQ9tUOqk5FCW0tFfhMwE7Xt9WFfwFX1h8kGr9yXPfzMuHk%2bjfdShRCc9GS1SixlJNSOHmTeuqhWrk2KtMAGp81OfxmxP1pLefqY8Rz0nhXw1Sx3lmywR2tMY%2fjMcXulalp%2bcCfahWjVsU1R1lNU0sDfl1JRWxrDGJfBqn3HtEdYRShDj96M7IV0klRVnzs9gndlFT0iPifCK1wAAnsiiIh1hgY874OJ0vdiTcbVjo3txEyw6T8h9McNN3K0juWPr%2fqDbuZSvpkZvaBsasjeYZW39yauQfEOOX%2bdvWuuPUZLfjcFjGqtf2NSv7iOLG9IckZGPmILD%2bK90O%2f8AstMmmqcDAAA%3d&web=0

TestResults
| join kind=inner WorkItems on WorkItemId
| join kind=inner Jobs on JobId
| where Finished >= now(-100d)
| where Result == "Fail"
| where QueueAlias == "windows.11.amd64.clientpre.open"
| where  Type == "System.IO.Tests.Enumeration.SpecialDirectoryTests_Enumerable" and Method == "SkippingHiddenFiles"
| project Started, QueueAlias,   Pipeline = tostring(parse_json(Properties).DefinitionName),
  Pipeline_Configuration = tostring(parse_json(Properties).configuration),
  Phase = tostring(parse_json(Properties)["System.PhaseName"]),
  OS = QueueName,
  Arch = tostring(parse_json(Properties).architecture)
Started QueueAlias Pipeline Pipeline_Configuration Phase OS Arch
2021-09-09 08:17:37.2270000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-09 20:30:06.3990000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-09 21:32:31.4430000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-10 09:49:41.8230000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-13 03:18:30.8830000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-13 15:06:41.6920000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-13 16:01:03.9450000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-16 12:08:03.2580000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-16 16:36:30.8400000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-16 18:47:51.6540000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-20 00:01:52.7740000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-20 20:05:32.2150000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-21 04:24:58.7370000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-21 14:50:39.7390000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-21 14:57:21.2680000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-21 20:12:14.4620000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-21 23:07:01.1850000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-22 04:55:27.5180000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-23 06:08:23.1540000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-23 07:52:49.5000000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-23 10:30:48.2340000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-23 14:28:08.2160000 windows.11.amd64.clientpre.open runtime Debug libraries_test_run_release_coreclr_windows_x64_Debug windows.11.amd64.clientpre.open x64
2021-09-23 16:03:25.9120000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-23 16:03:28.2770000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-23 20:26:09.7920000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-24 04:35:26.8560000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-24 18:31:16.0280000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64
2021-09-24 18:39:12.3940000 windows.11.amd64.clientpre.open runtime-staging Release build_windows_x64_Release_AllSubsets_Mono windows.11.amd64.clientpre.open x64

@dotnet/area-system-io might want to disable this line Assert.Contains(".", paths); just for windows 11.

@danmoseley
Copy link
Member

#59516

@jkotas
Copy link
Member

jkotas commented Sep 29, 2021

Hit in #59711

@danmoseley
Copy link
Member

@dotnet/area-system-io suggest disabling for Windows 11, or only verifying ".." there.

@danmoseley
Copy link
Member

I'll do it

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Sep 29, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Sep 30, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
@mdh1418
Copy link
Member

mdh1418 commented Feb 14, 2022

@danmoseley
Copy link
Member

@mdh1418 I'm guessing Windows Server 2022 and Windows 11 share the same "feature" and both need to be disabled the same way. Do you want to twiddle it?

if (!PlatformDetection.IsWindows10Version22000OrGreater)

@mdh1418
Copy link
Member

mdh1418 commented Feb 14, 2022

I can add to it, will put up a PR soon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO test-bug Problem in test source code (most likely)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants