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

Precompiled query inner loop source generator #33350

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Precompiled query inner loop source generator

abc8daf
Select commit
Loading
Failed to load commit list.
Draft

Precompiled query inner loop source generator #33350

Precompiled query inner loop source generator
abc8daf
Select commit
Loading
Failed to load commit list.
Azure Pipelines / efcore-ci failed Mar 18, 2024 in 1h 39m 37s

Build #20240318.10 had test failures

Details

Tests

  • Failed: 45,475 (35.44%)
  • Passed: 49,308 (38.43%)
  • Other: 33,517 (26.12%)
  • Total: 128,300

Annotations

Check failure on line 0 in XUnit

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

XUnit#L0

XUnit(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed: /Users/runner/work/1/s/artifacts/TestResults/Release/EFCore.CrossStore.FunctionalTests_net9.0_x64.html [net9.0|x64]

Check failure on line 0 in XUnit

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

XUnit#L0

XUnit(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed: /Users/runner/work/1/s/artifacts/log/Release/EFCore.InMemory.FunctionalTests_net9.0_x64.log [net9.0|x64]

Check failure on line 0 in XUnit

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

XUnit#L0

XUnit(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed: /Users/runner/work/1/s/artifacts/TestResults/Release/EFCore.Proxies.Tests_net9.0_x64.html [net9.0|x64]

Check failure on line 0 in XUnit

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

XUnit#L0

XUnit(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed: /Users/runner/work/1/s/artifacts/TestResults/Release/EFCore.InMemory.Tests_net9.0_x64.html [net9.0|x64]

Check failure on line 1 in Microsoft.EntityFrameworkCore.ProxyTests.Materialization_uses_parameterized_constructor

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.EntityFrameworkCore.ProxyTests.Materialization_uses_parameterized_constructor

System.InvalidOperationException : This LINQ query was not precompiled, likely because it is dynamic, and runtime query compilation has been disabled.
Raw output
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.CheckPrecompiledQuerySafeExpression(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 80
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 53
   at Microsoft.EntityFrameworkCore.InMemory.Query.Internal.InMemoryQueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore.InMemory\Query\Internal\InMemoryQueryTranslationPreprocessor.cs:line 37
   at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryCompilationContext.cs:line 162
   at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async) in D:\a\_work\1\s\src\EFCore\Storage\Database.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 126
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass11_0`1.<ExecuteCore>b__0() in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 82
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) in D:\a\_work\1\s\src\EFCore\Query\Internal\CompiledQueryCache.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 78
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 59
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression) in D:\a\_work\1\s\src\EFCore\Query\Internal\EntityQueryProvider.cs:line 64
   at Microsoft.EntityFrameworkCore.ProxyTests.Materialization_uses_parameterized_constructor() in D:\a\_work\1\s\test\EFCore.Proxies.Tests\ProxyTests.cs:line 38
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.EntityFrameworkCore.ProxyTests.Materialization_uses_parameterized_constructor_taking_context

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.EntityFrameworkCore.ProxyTests.Materialization_uses_parameterized_constructor_taking_context

System.InvalidOperationException : This LINQ query was not precompiled, likely because it is dynamic, and runtime query compilation has been disabled.
Raw output
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.CheckPrecompiledQuerySafeExpression(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 80
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 53
   at Microsoft.EntityFrameworkCore.InMemory.Query.Internal.InMemoryQueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore.InMemory\Query\Internal\InMemoryQueryTranslationPreprocessor.cs:line 37
   at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryCompilationContext.cs:line 162
   at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async) in D:\a\_work\1\s\src\EFCore\Storage\Database.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 126
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass11_0`1.<ExecuteCore>b__0() in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 82
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) in D:\a\_work\1\s\src\EFCore\Query\Internal\CompiledQueryCache.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 78
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 59
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression) in D:\a\_work\1\s\src\EFCore\Query\Internal\EntityQueryProvider.cs:line 64
   at Microsoft.EntityFrameworkCore.ProxyTests.Materialization_uses_parameterized_constructor_taking_context() in D:\a\_work\1\s\test\EFCore.Proxies.Tests\ProxyTests.cs:line 57
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.EntityFrameworkCore.ProxyTests.Proxy_services_must_be_available

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.EntityFrameworkCore.ProxyTests.Proxy_services_must_be_available

System.InvalidOperationException : This LINQ query was not precompiled, likely because it is dynamic, and runtime query compilation has been disabled.
Raw output
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.CheckPrecompiledQuerySafeExpression(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 80
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 53
   at Microsoft.EntityFrameworkCore.InMemory.Query.Internal.InMemoryQueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore.InMemory\Query\Internal\InMemoryQueryTranslationPreprocessor.cs:line 37
   at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryCompilationContext.cs:line 162
   at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async) in D:\a\_work\1\s\src\EFCore\Storage\Database.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 126
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass11_0`1.<ExecuteCore>b__0() in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 82
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) in D:\a\_work\1\s\src\EFCore\Query\Internal\CompiledQueryCache.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 78
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 59
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression) in D:\a\_work\1\s\src\EFCore\Query\Internal\EntityQueryProvider.cs:line 64
   at Microsoft.EntityFrameworkCore.ProxyTests.Proxy_services_must_be_available() in D:\a\_work\1\s\test\EFCore.Proxies.Tests\ProxyTests.cs:line 187
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.EntityFrameworkCore.ProxyTests.Proxies_only_created_if_Use_called

See this annotation in the file changed.

@azure-pipelines azure-pipelines / efcore-ci

Microsoft.EntityFrameworkCore.ProxyTests.Proxies_only_created_if_Use_called

System.InvalidOperationException : This LINQ query was not precompiled, likely because it is dynamic, and runtime query compilation has been disabled.
Raw output
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.CheckPrecompiledQuerySafeExpression(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 80
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryTranslationPreprocessor.cs:line 53
   at Microsoft.EntityFrameworkCore.InMemory.Query.Internal.InMemoryQueryTranslationPreprocessor.Process(Expression query) in D:\a\_work\1\s\src\EFCore.InMemory\Query\Internal\InMemoryQueryTranslationPreprocessor.cs:line 37
   at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\QueryCompilationContext.cs:line 162
   at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async) in D:\a\_work\1\s\src\EFCore\Storage\Database.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 126
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass11_0`1.<ExecuteCore>b__0() in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 82
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) in D:\a\_work\1\s\src\EFCore\Query\Internal\CompiledQueryCache.cs:line 66
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 78
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) in D:\a\_work\1\s\src\EFCore\Query\Internal\QueryCompiler.cs:line 59
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression) in D:\a\_work\1\s\src\EFCore\Query\Internal\EntityQueryProvider.cs:line 64
   at Microsoft.EntityFrameworkCore.ProxyTests.Proxies_only_created_if_Use_called() in D:\a\_work\1\s\test\EFCore.Proxies.Tests\ProxyTests.cs:line 153
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)