Skip to content

[tests] Bump EFCore tests dependencies to 9.* - #4542

Closed
Kielek wants to merge 1 commit into
open-telemetry:mainfrom
Kielek:bump-efcore-deps
Closed

[tests] Bump EFCore tests dependencies to 9.*#4542
Kielek wants to merge 1 commit into
open-telemetry:mainfrom
Kielek:bump-efcore-deps

Conversation

@Kielek

@Kielek Kielek commented Jun 19, 2026

Copy link
Copy Markdown
Member

Fixes GHSA-2m69-gcr7-jv3q

Changes

[tests] Bump EFCore tests dependencies to 9.*

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • [ ] Appropriate CHANGELOG.md files updated for non-trivial changes
  • [ ] Changes in public API reviewed (if applicable)

@Kielek
Kielek requested a review from a team as a code owner June 19, 2026 06:29
@github-actions github-actions Bot added infra Infra work - CI/CD, code coverage, linters dependencies Pull requests that update a dependency file labels Jun 19, 2026
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

❌ 8 Tests Failed:

Tests completed Failed Passed Skipped
2319 8 2311 31
View the top 3 failed test(s) by shortest run time
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::SqlQueriesAreSanitized(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", commandText: "select 1/1", useNewConventions: False, expectedCommandText: "select ?/?", expectedQuerySummary: null)
Stack Traces | 0.00175s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.SqlQueriesAreSanitized(String provider, String commandText, Boolean useNewConventions, String expectedCommandText, String expectedQuerySummary) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 379
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::SqlQueriesAreSanitized(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", commandText: "select 1/1", useNewConventions: True, expectedCommandText: "select ?/?", expectedQuerySummary: "select")
Stack Traces | 0.00234s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.SqlQueriesAreSanitized(String provider, String commandText, Boolean useNewConventions, String expectedCommandText, String expectedQuerySummary) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 379
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::TracesDataContextRelational(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", shouldEnrich: True, useNewConventions: False, expectedCommandType: typeof(Npgsql.NpgsqlCommand), expectedSystemName: "postgresql", expectedDatabaseName: "postgres")
Stack Traces | 0.00255s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.TracesDataContextRelational(String provider, Boolean shouldEnrich, Boolean useNewConventions, Type expectedCommandType, String expectedSystemName, String expectedDatabaseName) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 284
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::TracesRawSql(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", commandText: "select 1/1", isFailure: False, useNewConventions: True, expectedCommandType: typeof(Npgsql.NpgsqlCommand), expectedSpanName: "select", expectedSystemName: "postgresql", expectedDatabaseName: "postgres", expectedStatusDescription: null)
Stack Traces | 0.00264s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.TracesRawSql(String provider, String commandText, Boolean isFailure, Boolean useNewConventions, Type expectedCommandType, String expectedSpanName, String expectedSystemName, String expectedDatabaseName, String expectedStatusDescription) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 178
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::TracesRawSql(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", commandText: "select 1/1", isFailure: False, useNewConventions: False, expectedCommandType: typeof(Npgsql.NpgsqlCommand), expectedSpanName: "postgres", expectedSystemName: "postgresql", expectedDatabaseName: "postgres", expectedStatusDescription: null)
Stack Traces | 0.00272s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.TracesRawSql(String provider, String commandText, Boolean isFailure, Boolean useNewConventions, Type expectedCommandType, String expectedSpanName, String expectedSystemName, String expectedDatabaseName, String expectedStatusDescription) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 178
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::TracesDataContextRelational(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", shouldEnrich: False, useNewConventions: False, expectedCommandType: typeof(Npgsql.NpgsqlCommand), expectedSystemName: "postgresql", expectedDatabaseName: "postgres")
Stack Traces | 0.0038s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.TracesDataContextRelational(String provider, Boolean shouldEnrich, Boolean useNewConventions, Type expectedCommandType, String expectedSystemName, String expectedDatabaseName) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 284
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::TracesRawSql(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", commandText: "select 1/0", isFailure: True, useNewConventions: True, expectedCommandType: typeof(Npgsql.NpgsqlCommand), expectedSpanName: "select", expectedSystemName: "postgresql", expectedDatabaseName: "postgres", expectedStatusDescription: "22012: division by zero")
Stack Traces | 0.00394s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.TracesRawSql(String provider, String commandText, Boolean isFailure, Boolean useNewConventions, Type expectedCommandType, String expectedSpanName, String expectedSystemName, String expectedDatabaseName, String expectedStatusDescription) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 178
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests::TracesRawSql(provider: "Npgsql.EntityFrameworkCore.PostgreSQL", commandText: "select 1/0", isFailure: True, useNewConventions: False, expectedCommandType: typeof(Npgsql.NpgsqlCommand), expectedSpanName: "postgres", expectedSystemName: "postgresql", expectedDatabaseName: "postgres", expectedStatusDescription: "22012: division by zero")
Stack Traces | 0.0668s run time
at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.ItemsContext..ctor(DbContextOptions`1 options) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/ItemsContext.cs:line 8
   at OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests.EntityFrameworkIntegrationTests.TracesRawSql(String provider, String commandText, Boolean isFailure, Boolean useNewConventions, Type expectedCommandType, String expectedSpanName, String expectedSystemName, String expectedDatabaseName, String expectedStatusDescription) in ....../_/test/OpenTelemetry.Instrumentation.EntityFrameworkCore.Tests/EntityFrameworkIntegrationTests.cs:line 178
--- End of stack trace from previous location ---
OpenTelemetry.Instrumentation.Hangfire.Tests.HangfireMetricsTests::Should_Track_Job_In_Both_Workflow_And_Execution_Metrics
Stack Traces | 0.588s run time
at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
   at System.Collections.Generic.List`1.CopyTo(T[] array, Int32 arrayIndex)
   at Hangfire.MemoryStorage.Utilities.StateHistoryList.CopyTo(StateHistoryDto[] array, Int32 arrayIndex)
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Hangfire.MemoryStorage.MemoryStorageMonitoringApi.JobDetails(String jobId)
   at OpenTelemetry.Instrumentation.Hangfire.Tests.HangfireFixture.<>c__DisplayClass7_0.<WaitJobProcessedAsync>g__Completed|0() in ........./_/test/OpenTelemetry.Instrumentation.Hangfire.Tests/HangfireFixture.cs:line 68
   at OpenTelemetry.Instrumentation.Hangfire.Tests.HangfireFixture.WaitJobProcessedAsync(String jobId, Int32 timeToWaitInSeconds) in ........./_/test/OpenTelemetry.Instrumentation.Hangfire.Tests/HangfireFixture.cs:line 56
   at OpenTelemetry.Instrumentation.Hangfire.Tests.HangfireMetricsTests.Should_Track_Job_In_Both_Workflow_And_Execution_Metrics() in ........./_/test/OpenTelemetry.Instrumentation.Hangfire.Tests/HangfireMetricsTests.cs:line 443
--- End of stack trace from previous location ---

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@Kielek
Kielek marked this pull request as draft June 19, 2026 06:31
@martincostello

Copy link
Copy Markdown
Member

I had this alert in some personal repos, and from looking over in EFCore it seemed like this is unfixable until they ship a patch that includes a fix that changes the SQLite dependency they use entirely.

I just marked the alert as "fix in progress" and wait until the patch ships as I don't think there's anything we can otherwise do about it dotnet/efcore#38402

@martincostello

Copy link
Copy Markdown
Member

If there isn't a way to force the upgrade we might need to just suppress the NuGet Audit warnings until then.

@Kielek

Kielek commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

For now, not possible, replaced by #4543

@Kielek Kielek closed this Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file infra Infra work - CI/CD, code coverage, linters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants