apache / apache/grails-intellij-plugin
[IDEA] test problem p2426435: com.intellij.openapi.progress.CeProcessCanceledException: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for REDACTED-TIMESPAN
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Please fix the following test problem.
When fixed, please delete the related mute if any.
Error example:
```
com.intellij.openapi.progress.CeProcessCanceledException: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for REDACTED-TIMESPAN
at com.intellij.openapi.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt)
at com.intellij.openapi.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt)
at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt)
at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt)
at com.intellij.openapi.progress.CoroutinesKt.runBlockingMaybeCancellable(coroutines.kt)
at com.intellij.testFramework.IndexingTestUtil.waitNow(IndexingTestUtil.kt)
at com.intellij.testFramework.IndexingTestUtil.waitUntilFinished(IndexingTestUtil.kt)
at com.intellij.testFramework.IndexingTestUtil.access$waitUntilFinished(IndexingTestUtil.kt)
at com.intellij.testFramework.IndexingTestUtil$Companion.waitUntilIndexesAreReady(IndexingTestUtil.kt)
at com.intellij.maven.testFramework.MavenImportingTestCase.doImportProjects(MavenImportingTestCase.kt)
at com.intellij.maven.testFramework.MavenImportingTestCase.importProjectWithProfiles(MavenImportingTestCase.kt)
at com.intellij.maven.testFramework.MavenImportingTestCase.importProject(MavenImportingTestCase.kt)
at com.intellij.maven.testFramework.MavenImportingTestCase.importProject(MavenImportingTestCase.kt)
at org.jetbrains.plugins.groovy.grails.GrailsMavenImporterTest.testImportGrailsProject(GrailsMavenImporterTest.kt)
at java.base/java.lang.reflect.Method.invoke(Method.java)
at com.intellij.testFramework.UsefulTestCase.lambda$wrapTestRunnable$14(UsefulTestCase.java)
at com.intellij.testFramework.UsefulTestCase.runTestRunnable(UsefulTestCase.java)
at com.intellij.maven.testFramework.MavenTestCase.runTestRunnable(MavenTestCase.kt)
at com.intellij.testFramework.UsefulTestCase.defaultRunBare(UsefulTestCase.java)
at com.intellij.testFramework.UsefulTestCase.runBare(UsefulTestCase.java)
at com.intellij.maven.testFramework.MavenTestCase.runBare$lambda$6(MavenTestCase.kt)
at com.intellij.testFramework.LoggedErrorProcessor.executeWith(LoggedErrorProcessor.java)
at com.intellij.maven.testFramework.MavenTestCase.runBare(MavenTestCase.kt)
at com.intellij.testFramework.UsefulTestCase$1.evaluate(UsefulTestCase.java)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java)
at com.intellij.TestAll.runOrCollectNextTest(TestAll.java)
at com.intellij.TestAll.run(TestAll.java)
at junit.framework.TestSuite.runTest(TestSuite.java)
at junit.framework.TestSuite.run(TestSuite.java)
Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for REDACTED-TIMESPAN
at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt)
at com.intellij.testFramework.IndexingTestUtil$suspendUntilIndexesAreReady$2.invokeSuspend(IndexingTestUtil.kt)
at com.intellij.testFramework.IndexingTestUtil.suspendUntilIndexesAreReady(IndexingTestUtil.kt)
at com.intellij.testFramework.IndexingTestUtil$waitNow$2.invokeSuspend(IndexingTestUtil.kt)
Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for REDACTED-TIMESPAN
at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt)
at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt)
at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt)
at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt)
at java.base/java.lang.Thread.run(Thread.java)
```
Build examples:
- 496114985 ([tc](https://buildserver.labs.intellij.net/viewLog.html?buildId=496114985), [asgard](https://asgard.labs.jb.gg/BuildInfo/FailedTests?buildId=496114985)) - ijplatform_master_Idea_Tests_GroovyGrailsTests_1 - refs/merge/IJ-MR-133309/safe-merge
- 496114985 ([tc](https://buildserver.labs.intellij.net/viewLog.html?buildId=496114985), [asgard](https://asgard.labs.jb.gg/BuildInfo/FailedTests?buildId=496114985)) - ijplatform_master_Idea_Tests_GroovyGrailsTests_1 - refs/merge/IJ-MR-133309/safe-merge
- 495970211 ([tc](https://buildserver.labs.intellij.net/viewLog.html?buildId=495970211), [asgard](https://asgard.labs.jb.gg/BuildInfo/FailedTests?buildId=495970211)) - ijplatform_master_Idea_Tests_GroovyGrailsTests_1 - refs/merge/IJ-MR-133208/safe-merge
- 495970211 ([tc](https://buildserver.labs.intellij.net/viewLog.html?buildId=495970211), [asgard](https://asgard.labs.jb.gg/BuildInfo/FailedTests?buildId=495970211)) - ijplatform_master_Idea_Tests_GroovyGrailsTests_1 - refs/merge/IJ-MR-133208/safe-merge
- 495922292 ([tc](https://buildserver.labs.intellij.net/viewLog.html?buildId=495922292), [asgard](https://asgard.labs.jb.gg/BuildInfo/FailedTests?buildId=495922292)) - ijplatform_master_Idea_Tests_GroovyGrailsTests_1 - master
Affected branches count: 6
5 branches example: refs/merge/IJ-MR-133309/safe-merge, refs/merge/IJ-MR-133208/safe-merge, master, refs/merge/IJ-MR-133279/safe-merge, safepush/mikhail-pyltsin-xxxx/master/test
Affected tests (2 total):
| % of builds | id | links | name |
| --- | --- | --- | --- |
|100|8777759581083782664|[tc](https://buildserver.labs.intellij.net/test/8777759581083782664?currentProjectId=ijplatform), [asgard](https://asgard.labs.jb.gg/TestDurationChart?groupBy=Status&hive=idea_all&testId=8777759581083782664)|org.jetbrains.plugins.groovy.grails.GrailsMavenImporterTest.testImportGrailsProject[with Maven-4.0.0-alpha-13]|
|100|-4350941675056235941|[tc](https://buildserver.labs.intellij.net/test/-4350941675056235941?currentProjectId=ijplatform), [asgard](https://asgard.labs.jb.gg/TestDurationChart?groupBy=Status&hive=idea_all&testId=-4350941675056235941)|org.jetbrains.plugins.groovy.grails.GrailsMavenImporterTest.testImportGrailsProject[with Maven-bundled]|
Affected build configurations (1 total):
| % of builds | links | configuration id |
| --- | --- | --- |
|100|[tc](https://buildserver.labs.intellij.net/buildConfiguration/ijplatform_master_Idea_Tests_GroovyGrailsTests_1), [asgard](https://asgard.labs.jb.gg/BuildMetricsChart?configurationId=ijplatform_master_Idea_Tests_GroovyGrailsTests_1&metric=_duration&groupBy=Status)|ijplatform_master_Idea_Tests_GroovyGrailsTests_1|
Reported by:
---
*Imported from [IDEA-353022](https://youtrack.jetbrains.com/issue/IDEA-353022) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with GrailsMavenImporterTest.testImportGrailsProject, the two affected Maven variants, and the linked build logs. Trace the import through MavenImportingTestCase and IndexingTestUtil.waitUntilIndexesAreReady to determine why indexing times out. Done means both affected tests pass reliably and the related mute, if present, is deleted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java, kotlin
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100