Repository navigation
Open
Labels
Description
Issue Description
When I build locally and run tests on macOS 14 on ARM and macOS 13 on Intel, the Microsoft.Build.UnitTests.FileMatcherTest.Unc test fails.
Steps to Reproduce
After confirming local repo is up to date:
- Run
./build.sh - Run
./build.sh --test
Expected Behavior
All tests should pass.
Actual Behavior
The Microsoft.Build.UnitTests.FileMatcherTest.Unc test fails:
Failed tests
Microsoft.Build.UnitTests.FileMatcherTest.Unc
Assert.Equal() Failure: Values differ\nExpected: 1\nActual: 0
at Microsoft.Build.UnitTests.FileMatcherTest.MatchDriver(String filespec, String[] excludeFilespecs, String[] matchingFiles, String[] nonmatchingFiles, String[] untouchableFiles, Boolean normalizeAllPaths, Boolean normalizeExpectedMatchingFiles) in /Users/jrdodds/Projects/jrdodds/msbuild/src/Shared/UnitTests/FileMatcher_Tests.cs:line 2426
at Microsoft.Build.UnitTests.FileMatcherTest.MatchDriver(String filespec, String[] matchingFiles, String[] nonmatchingFiles, String[] untouchableFiles) in /Users/jrdodds/Projects/jrdodds/msbuild/src/Shared/UnitTests/FileMatcher_Tests.cs:line 2362
at Microsoft.Build.UnitTests.FileMatcherTest.ValidateFileMatch(String filespec, String fileToMatch, Boolean shouldBeRecursive, Boolean fileSystemSimulation) in /Users/jrdodds/Projects/jrdodds/msbuild/src/Shared/UnitTests/FileMatcher_Tests.cs:line 2533
at Microsoft.Build.UnitTests.FileMatcherTest.ValidateFileMatch(String filespec, String fileToMatch, Boolean shouldBeRecursive) in /Users/jrdodds/Projects/jrdodds/msbuild/src/Shared/UnitTests/FileMatcher_Tests.cs:line 2512
at Microsoft.Build.UnitTests.FileMatcherTest.Unc() in /Users/jrdodds/Projects/jrdodds/msbuild/src/Shared/UnitTests/FileMatcher_Tests.cs:line 1114
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
The following files are attached in a .zip file.
- Microsoft.Build.Engine.UnitTests_net9.0_x64.html
- Microsoft.Build.Engine.UnitTests_net9.0_x64.xml
Build.Engine.UnitTests_net9.0_x64.zip
Analysis
I successfully ran the tests on August 5, 2024 so it would seem that something changed after that point.
Versions & Configurations
macOS Sonoma 14.6.1
Apple M1 Pro (ARM)
macOS Ventura 13.6.9
Intel Core i7
Activity
JanProvaznik commentedon Apr 28, 2025
there is also a possibility that macos started behaving differently during this time, in our ADO ci this works, but locally we repro that it doesn't, nor does it in a testing CI on github.
GPT suggested that it could be due to the apple filesystem config (low confidence on my side)
surayya-MS commentedon Apr 28, 2025
I tried to run this test on Apple M2 Pro macOs 15.4.1 and it fails. Stating the investigation.
surayya-MS commentedon May 2, 2025
The test passes in Test Explorer in Visual Studio Code. But it fails when I run
dotnet test --filter "FullyQualifiedName=Microsoft.Build.UnitTests.FileMatcherTest.Unc". I will investigate furtherjrdodds commentedon May 4, 2025
If it's true that macOS behavior changed, then both macOS 13 and macOS 14 changed. That would suggest something in the August 7, 2024 security updates macOS Ventura 13.6.9 and macOS Sonoma 14.6.1 and/or the September 16, 2024 security updates macOS Ventura 13.7 and macOS Sonoma 14.7.