aspnet / Configuration

[Archived] Interfaces and providers for accessing configuration files. Project moved to https://github.com/aspnet/Extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flaky tests: CreatingWritingDeletingCreatingFileWillReload et al

ryanbrandenburg opened this issue · comments

These tests have recently taken to failing on OSx: http://aspnetci/project.html?projectId=XPlat&buildTypeId=XPlat_Mac_MacUniverseCoreCLR&tab=testDetails&testNameId=3759396832575739260&order=START_DATE_DESC&branch_XPlat=__all_branches__&itemsCount=50

Offending tests include:

  • FileWatcherTests.MultipleFiles(usePolling: False)
  • ConfigurationTests.CreatingWritingDeletingCreatingFileWillReload
  • ConfigurationTests.TouchingFileWillReload
Assert.Equal() Failure
                   ↓ (pos 9)
Expected: JsonValue2
Actual:   JsonValue1
                   ↑ (pos 9)
   at Microsoft.Extensions.Configuration.Test.ConfigurationTests.<TouchingFileWillReload>d__32.MoveNext() in /_/test/Config.FunctionalTests/ConfigurationTests.cs:line 598
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

A non-exhaustive list of the builds affected by this can be found here.

So the config tests will definitely fail if the file watcher functional tests are faling too:

https://github.com/aspnet/DotNetTools/blob/261b27b70027871143540af10a5cba57ce07ff97/test/dotnet-watch.FunctionalTests/FileWatcherTests.cs

This issue was moved to aspnet/DotNetTools#412