[
https://issues.apache.org/jira/browse/GROOVY-12724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18142969#comment-18142969
]
ASF GitHub Bot commented on GROOVY-12724:
-----------------------------------------
testlens-app[bot] commented on PR #3259:
URL: https://github.com/apache/groovy/pull/3259#issuecomment-6796139440
## 🚨 TestLens detected 1 failed test 🚨
### Test Summary
> [!TIP]
> Inspect all details with the [TestLens
CLI](https://testlens.app/docs/features/cli): `testlens pr 3259`
#### [Build and test / lts \(17, windows-latest,
1\)](https://github.com/apache/groovy/actions/runs/43016799246/job/130509784188?pr=3259)
> :test
| Test | Runs | Flakiness |
|---|---|--:|
| DelegateJointCompilationStubTest > testRun\(\) | ❌ | 0% 🟢 |
🏷️ Commit: 51c4cd56f15d610d08d72e85810a72cb8ef617c9
▶️ Tests: 50562 executed
🟡 Checks: 3/24 completed
### Test Failures
<details><summary><strong>DelegateJointCompilationStubTest >
testRun()</strong> (:test in <a
href="https://github.com/apache/groovy/actions/runs/43016799246/job/130509784188?pr=3259">Build
and test / lts (17, windows-latest, 1)</a>)</summary>
```
org.opentest4j.AssertionFailedError: Compilation failed for stub generator
test:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed:
Compile error during compilation with javac.
warning: Supported source version 'RELEASE_8' from annotation processor
'org.antlr.v4.runtime.misc.RuleDependencyProcessor' less than -source '17'
warning: Supported source version 'RELEASE_8' from annotation processor
'org.antlr.v4.runtime.misc.NullUsageProcessor' less than -source '17'
C:\Users\RUNNER~1\AppData\Local\Temp\stubgentests17944007873354928980361033463371\foo\Holder.java:3:
error: Holder is not abstract and does not override abstract method
<T>toArray(T[]) in List
public class Holder
^
where T is a type-variable:
T extends Object declared in method <T>toArray(T[])
C:\Users\RUNNER~1\AppData\Local\Temp\stubgentests17944007873354928980361033463371\foo\Holder.java:40:
error: name clash: toArray(Object[]) in Holder and toArray(T[]) in List have
the same erasure, yet neither overrides the other
@groovy.transform.Generated() public <T extends java.lang.Object>
java.lang.Object[] toArray(java.lang.Object... param0) { return null; }
^
where T is a type-variable:
T extends Object declared in method <T>toArray(T[])
C:\Users\RUNNER~1\AppData\Local\Temp\stubgentests17944007873354928980361033463371\foo\Holder.java:41:
error: name clash: toArray(IntFunction<Object[]>) in Holder and
toArray(IntFunction<T[]>) in Collection have the same erasure, yet neither
overrides the other
@groovy.transform.Generated() public <T extends java.lang.Object>
java.lang.Object[] toArray(java.util.function.IntFunction<java.lang.Object[]>
arg0) { return null; }
^
where T is a type-variable:
T extends Object declared in method <T>toArray(IntFunction<T[]>)
C:\Users\RUNNER~1\AppData\Local\Temp\stubgentests17944007873354928980361033463371\foo\Bag.java:3:
error: Bag is not abstract and does not override abstract method
<T>toArray(T[]) in List
public class Bag
^
where T is a type-variable:
T extends Object declared in method <T>toArray(T[])
C:\Users\RUNNER~1\AppData\Local\Temp\stubgentests17944007873354928980361033463371\foo\Bag.java:40:
error: name clash: toArray(Object[]) in Bag and toArray(T[]) in List have the
same erasure, yet neither overrides the other
@groovy.transform.Generated() public <T extends java.lang.Object>
java.lang.Object[] toArray(java.lang.Object... arg0) { return null; }
^
where T is a type-variable:
T extends Object declared in method <T>toArray(T[])
C:\Users\RUNNER~1\AppData\Local\Temp\stubgentests17944007873354928980361033463371\foo\Bag.java:41:
error: name clash: toArray(IntFunction<Object[]>) in Bag and
toArray(IntFunction<T[]>) in Collection have the same erasure, yet neither
overrides the other
@groovy.transform.Generated() public <T extends java.lang.Object>
java.lang.Object[] toArray(java.util.function.IntFunction<java.lang.Object[]>
arg0) { return null; }
^
where T is a type-variable:
T extends Object declared in method <T>toArray(IntFunction<T[]>)
6 errors
2 warnings
1 error
at
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:351)
at
org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:206)
at
org.codehaus.groovy.tools.javac.JavacJavaCompiler.addJavacError(JavacJavaCompiler.java:157)
at
org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:97)
at
org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:173)
at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:756)
at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:721)
at
org.codehaus.groovy.tools.stubgenerator.StubTestCase.compile(StubTestCase.groovy:240)
at
org.codehaus.groovy.tools.stubgenerator.StubTestCase.testRun(StubTestCase.groovy:165)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:700)
at
org.junit.platform.commons.support.ReflectionSupport.invokeMethod(ReflectionSupport.java:528)
at
org.junit.jupiter.engine.support.MethodReflectionUtils.invoke(MethodReflectionUtils.java:53)
at
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:61)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:124)
at
org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:163)
at
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:148)
at
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:124)
at
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:105)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:99)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:66)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:47)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:39)
at
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:104)
at
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:98)
at
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invokeVoid(InterceptingExecutableInvoker.java:71)
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$0(TestMethodTestDescriptor.java:219)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:215)
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:157)
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:70)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:176)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
at
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:139)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
at
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:139)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
at
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:139)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
at
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:36)
at
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:52)
at
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:58)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.executeEngine(EngineExecutionOrchestrator.java:256)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.failOrExecuteEngine(EngineExecutionOrchestrator.java:228)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:189)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:109)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:66)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:168)
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:65)
at
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:137)
at
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:126)
at
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:100)
at
org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:57)
at
org.junit.platform.launcher.core.InterceptingLauncher.lambda$execute$0(InterceptingLauncher.java:46)
at
org.junit.platform.launcher.core.ClasspathAlignmentCheckingLauncherInterceptor.intercept(ClasspathAlignmentCheckingLauncherInterceptor.java:25)
at
org.junit.platform.launcher.core.InterceptingLauncher.execute(InterceptingLauncher.java:45)
at
org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:57)
at
org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestDefinitionProcessor$CollectThenExecuteTestDefinitionConsumer.processAllTestDefinitions(JUnitPlatformTestDefinitionProcessor.java:206)
at
org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestDefinitionProcessor$CollectThenExecuteTestDefinitionConsumer.access$000(JUnitPlatformTestDefinitionProcessor.java:123)
at
org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestDefinitionProcessor.stop(JUnitPlatformTestDefinitionProcessor.java:117)
at
org.gradle.api.internal.tasks.testing.SuiteTestDefinitionProcessor.stop(SuiteTestDefinitionProcessor.java:63)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at
org.gradle.internal.dispatch.MethodInvocation.invokeOn(MethodInvocation.java:77)
at
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:28)
at
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:19)
at
org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at
org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:88)
at jdk.proxy1/jdk.proxy1.$Proxy4.stop(Unknown Source)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:195)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:126)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:103)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:63)
at
org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at
org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122)
at
org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:72)
at
worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at
worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
at
org.codehaus.groovy.tools.stubgenerator.StubTestCase.handleCompilationFailure(StubTestCase.groovy:255)
at
org.codehaus.groovy.tools.stubgenerator.StubTestCase.compile(StubTestCase.groovy:243)
at
org.codehaus.groovy.tools.stubgenerator.StubTestCase.testRun(StubTestCase.groovy:165)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
```
</details>
### Rerun Controls
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 DelegateJointCompilationStubTest > testRun\(\) <!
> GINQ: support static compilation and a fluent query API
> -------------------------------------------------------
>
> Key: GROOVY-12724
> URL: https://issues.apache.org/jira/browse/GROOVY-12724
> Project: Groovy
> Issue Type: Improvement
> Components: GINQ
> Reporter: Daniel Sun
> Assignee: Daniel Sun
> Priority: Major
>
> Under @CompileStatic / @TypeChecked, GQ, GQL, and @GQ currently rely on
> dynamic lowering. This improvement makes those entry points usable from a
> statically checked scope while keeping the SQL-like syntax lowered to the
> in-memory collection runtime.
> h3. Goals
> * Allow GQ / GQL / @GQ from @CompileStatic and @TypeChecked without forcing
> the lowered tree through static checking at the expression site.
> * Defer pipeline construction with LazyQueryable until a terminal read
> (toList, count, etc.), copying locals at the expression site (same binding as
> dynamic GQ).
> * Add Ginq.from(...) as a deferred, generic fluent chain on the same runtime,
> with @ClosureParams so where/select/join/aggregate closures can infer element
> types where inference is sound.
> * Preserve default lazy/deferred evaluation and dynamic GQ behavior for map
> rows and other intentionally dynamic cases.
> h3. Non-goals / known limits
> * Stored untyped Closure variables still need a SAM target type for parameter
> inference (same as Java/C#).
> * Raw Query parameters/fields cannot recover a safe element type.
> * Names bound by from inside GQ / GQL / @GQ stay dynamic by design; callers
> that need checked element types use Ginq.from.
> h3. Related work
> GitHub PR: https://github.com/apache/groovy/pull/3259
> Stacked on GEP-26 SQL window work (PR #3167 / gep26-sql-window).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)