Skip to content

[rc2] Fix InvalidCastException in ToDebugString when using IncludeAnnotations with RuntimeNavigation - #36651

Merged
AndriySvyryd merged 3 commits into
release/10.0from
copilot/fix-35276
Aug 27, 2025
Merged

[rc2] Fix InvalidCastException in ToDebugString when using IncludeAnnotations with RuntimeNavigation#36651
AndriySvyryd merged 3 commits into
release/10.0from
copilot/fix-35276

Use pattern matching for AnnotatableBase condition in ToDebugString m…

efab5fd
Select commit
Loading
Failed to load commit list.
Azure Pipelines / efcore-ci succeeded Aug 27, 2025 in 1h 20m 53s

Build #20250825.19 had test failures

Details

Tests

  • Failed: 9 (0.00%)
  • Passed: 599,049 (79.54%)
  • Other: 154,075 (20.46%)
  • Total: 753,133

Annotations

Check failure on line 1 in dotnet-ef.Tests.dll.WorkItemExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

dotnet-ef.Tests.dll.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash. Please see the 'Artifacts' tab above for additional logs.

Check failure on line 1 in Microsoft.EntityFrameworkCore.Migrations.MigrationsInfrastructureSqlServerTest.Can_apply_two_migrations_in_transaction_async

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.EntityFrameworkCore.Migrations.MigrationsInfrastructureSqlServerTest.Can_apply_two_migrations_in_transaction_async

System.InvalidOperationException : A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled).
Raw output
   at System.Threading.Tasks.Task.Dispose(Boolean disposing)
   at System.Threading.Tasks.Task.Dispose()
   at Microsoft.EntityFrameworkCore.Migrations.MigrationsInfrastructureTestBase`1.<>c__DisplayClass26_0.<<Can_apply_two_migrations_in_transaction_async>b__0>d.MoveNext() in D:\a\_work\1\s\test\EFCore.Relational.Specification.Tests\Migrations\MigrationsInfrastructureTestBase.cs:line 333
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c.<<ExecuteAsync>b__3_0>d.MoveNext() in D:\a\_work\1\s\src\EFCore\Storage\ExecutionStrategyExtensions.cs:line 111
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<<ExecuteAsync>b__0>d.MoveNext() in D:\a\_work\1\s\src\EFCore\Storage\ExecutionStrategy.cs:line 307
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Storage\ExecutionStrategy.cs:line 330
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Storage\ExecutionStrategy.cs:line 354
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Storage\ExecutionStrategy.cs:line 306
   at Microsoft.EntityFrameworkCore.Migrations.MigrationsInfrastructureTestBase`1.Can_apply_two_migrations_in_transaction_async() in D:\a\_work\1\s\test\EFCore.Relational.Specification.Tests\Migrations\MigrationsInfrastructureTestBase.cs:line 325
--- End of stack trace from previous location ---

Check failure on line 1 in Microsoft.Data.Sqlite.Tests.dll.WorkItemExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.Data.Sqlite.Tests.dll.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash. Please see the 'Artifacts' tab above for additional logs.

Check failure on line 1 in Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.dll.WorkItemExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.dll.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash. Please see the 'Artifacts' tab above for additional logs.