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

"Unable to make progress running work" redux #21325

Closed
jimshowalter opened this issue Jul 22, 2022 · 39 comments
Closed

"Unable to make progress running work" redux #21325

jimshowalter opened this issue Jul 22, 2022 · 39 comments
Assignees
Labels
a:regression This used to work affects-version:7.5 in:scheduler execution plan, task graph, work lease, project lock
Milestone

Comments

@jimshowalter
Copy link

You closed #21125 as fixed, but the same problem is in 7.5.

Expected Behavior

The build should complete normally.

Current Behavior

`Unable to make progress running work. The following items are queued for execution but none of them can be started:

  • Queued nodes for :
    • :processResources (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false groups: [finalizer :assemble in task group 0, finalizer :generatePermissions in null], successors=[])
    • :generateVersion (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :generateVersion in task group 0, successors=[:processResources])
    • :buildRelease (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 0, successors=[:clean, :generateVersion])
    • :compileJava (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false groups: [finalizer :assemble in task group 0, finalizer :generatePermissions in null], successors=[])
    • :classes (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false groups: [finalizer :assemble in task group 0, finalizer :generatePermissions in null], successors=[:compileJava, :processResources])
    • :generatePermissions (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :generatePermissions in null, successors=[:compileJava, :classes])
    • :bootJar (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :assemble in task group 0, successors=[:buildRelease, :classes, :generateVersion])
    • :verifyAllSignatures (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :verifyAllSignatures in task group 0, successors=[:bootJar, :buildRelease])
    • :jar (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :assemble in task group 0, successors=[:buildRelease, :classes, :generateVersion])
    • :assemble (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :assemble in task group 0, successors=[:buildRelease, :bootJar, :jar])
    • producer locations for task group 0 (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 0, successors=[Resolve mutations for :jar, Resolve mutations for :bootJar])
  • Non-queued nodes for :
    • :clean (state=EXECUTED)
    • Resolve mutations for :jar (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=default group, successors=[])
    • Resolve mutations for :bootJar (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=default group, successors=[])
    • Resolve mutations for :clean (state=EXECUTED)`

Context

It prevents all work from proceeding, so we had to roll back to 7.4.2.

Steps to Reproduce

Upgrade to 7.5 and then try to run our Jenkins pipeline.

Your Environment

Linux, Jenkins, Gradle 7.5, Java 17.

@jbartok jbartok added a:regression This used to work affects-version:7.5 in:scheduler execution plan, task graph, work lease, project lock and removed a:bug to-triage labels Jul 22, 2022
@jbartok jbartok added this to the 7.5.1 milestone Jul 22, 2022
@adammurdoch
Copy link
Member

Upgrade to 7.5 and then try to run our Jenkins pipeline.

Do you have a few more details on how to do this? Do we have access to your source code? Which tasks does the Jenkins pipeline run? etc.

@jimshowalter
Copy link
Author

The tasks are listed above in the error messages.

You don't have access to the source code, and I can't provide you with a cut-down reproducible test case.

But I assure you, it happens. There's no reason to make something like this up.

You'll probably get other reports.

@adammurdoch
Copy link
Member

It will be very difficult to fix this without a reproducer. Any details you can give us would be very helpful. Would you be willing to try out a nightly with some additional diagnostics added? This will give us some clues to help us reproduce (and fix) the problem.

@big-guy big-guy modified the milestones: 7.5.1, 7.6 RC1 Jul 28, 2022
@big-guy
Copy link
Member

big-guy commented Jul 29, 2022

@jimshowalter could you give 7.5.1-20220729132837+0000 a try?

You can upgrade via:
./gradlew wrapper --gradle-version=7.5.1-20220729132837+0000

@jimshowalter
Copy link
Author

Unfortunately we see the same error with 7.5.1-20220729132837+0000.

@Telesphoreo
Copy link

I am having the same problem. Console output on Gradle 7.5: https://ci.plex.us.org/job/Plex/job/master/314/console
You can see the entire pipeline steps here: https://github.com/plexusorg/Plex/blob/master/Jenkinsfile
The build task runs but publishing fails

Rolling back to 7.4.2 fixed it

@big-guy
Copy link
Member

big-guy commented Aug 2, 2022

@jimshowalter @Telesphoreo could you give 7.5.1-20220730234330+0000 a try?

If this doesn't fix it, could you provide the "Queued nodes" output again for this version? it has some more diagnostics.

@Telesphoreo
Copy link

Telesphoreo commented Aug 3, 2022

Unfortunately still not working for me

7:16:51 PM: Executing 'publish'...

> Task :publish UP-TO-DATE
> Task :proxy:blossomSourceReplacementJava UP-TO-DATE
> Task :proxy:compileJava UP-TO-DATE
> Task :proxy:processResources UP-TO-DATE
> Task :proxy:classes UP-TO-DATE
> Task :proxy:jar UP-TO-DATE
> Task :proxy:shadowJar SKIPPED
> Task :proxy:generateMetadataFileForMavenPublication
> Task :proxy:generatePomFileForMavenPublication
> Task :proxy:publishMavenPublicationToMavenRepository
> Task :proxy:publish
> Task :server:generatePomFileForMavenPublication
Unable to make progress running work. The following items are queued for execution but none of them can be started:
  - Queued nodes for :
      - :server:compileJava (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false, ordinal: default group, groups: [finalizer :copyJars ordinal: task group 0, delegate: default group], dependencies=[], groupSuccessors=[] )
      - :server:generateBukkitPluginDescription (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false, ordinal: default group, groups: [finalizer :copyJars ordinal: task group 0, delegate: default group], dependencies=[], groupSuccessors=[] )
      - :server:processResources (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false, ordinal: default group, groups: [finalizer :copyJars ordinal: task group 0, delegate: default group], dependencies=[:server:generateBukkitPluginDescription], groupSuccessors=[] )
      - :server:classes (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: false, ordinal: default group, groups: [finalizer :copyJars ordinal: task group 0, delegate: default group], dependencies=[:server:compileJava, :server:processResources], groupSuccessors=[] )
      - :server:shadowJar (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=composite group, entry point: true, ordinal: task group 0, groups: [finalizer :copyJars ordinal: task group 0, delegate: default group], dependencies=[:server:classes], groupSuccessors=[] )
      - :server:jar (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :copyJars ordinal: task group 0, delegate: default group, dependencies=[:server:classes], groupSuccessors=[:proxy:jar (complete), :server:shadowJar] )
      - :copyJars (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=finalizer :copyJars ordinal: task group 0, delegate: default group, dependencies=[:proxy:jar (complete), :proxy:shadowJar (complete), :server:jar, :server:shadowJar], groupSuccessors=[:proxy:jar (complete), :server:shadowJar], finalizes=[:proxy:jar (complete), :server:shadowJar] )
      - :server:publishMavenPublicationToMavenRepository (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 0, dependencies=[:server:generatePomFileForMavenPublication (complete), :server:shadowJar], groupSuccessors=[] )
      - :server:publish (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 0, dependencies=[:server:publishMavenPublicationToMavenRepository], groupSuccessors=[] )
      - producer locations for task group 0 (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 0, dependencies=[Resolve mutations for :server:generatePomFileForMavenPublication (complete), Resolve mutations for :copyJars, Resolve mutations for :server:jar, Resolve mutations for :server:shadowJar, Resolve mutations for :proxy:generatePomFileForMavenPublication (complete), Resolve mutations for :proxy:generateMetadataFileForMavenPublication (complete), Resolve mutations for :proxy:shadowJar (complete), Resolve mutations for :proxy:jar (complete), Resolve mutations for :proxy:processResources (complete), Resolve mutations for :proxy:compileJava (complete), Resolve mutations for :proxy:blossomSourceReplacementJava (complete)] )
  - Non-queued nodes for :
      - :proxy:jar (state=EXECUTED)
      - :proxy:shadowJar (state=EXECUTED)
      - :server:generatePomFileForMavenPublication (state=EXECUTED)
      - Resolve mutations for :server:generatePomFileForMavenPublication (state=EXECUTED)
      - Resolve mutations for :copyJars (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=default group, dependencies=[] )
      - Resolve mutations for :server:jar (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=default group, dependencies=[] )
      - Resolve mutations for :server:shadowJar (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=default group, dependencies=[] )
      - Resolve mutations for :proxy:generatePomFileForMavenPublication (state=EXECUTED)
      - Resolve mutations for :proxy:generateMetadataFileForMavenPublication (state=EXECUTED)
      - Resolve mutations for :proxy:shadowJar (state=EXECUTED)
      - Resolve mutations for :proxy:jar (state=EXECUTED)
      - Resolve mutations for :proxy:processResources (state=EXECUTED)
      - Resolve mutations for :proxy:compileJava (state=EXECUTED)
      - Resolve mutations for :proxy:blossomSourceReplacementJava (state=EXECUTED)
      - :proxy:classes (state=EXECUTED)
      - Resolve mutations for :proxy:classes (state=EXECUTED)
      - :proxy:compileJava (state=EXECUTED)
      - :proxy:processResources (state=EXECUTED)
      - :proxy:blossomSourceReplacementJava (state=EXECUTED)
  - Ordinal groups for :
      - group 0 entry nodes: [:publish, :proxy:publish, :server:publish]
8 actionable tasks: 4 executed, 4 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Unable to make progress running work. There are items queued for execution but none of them can be started

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 30s
7:17:22 PM: Execution finished 'publish'.

Edit: After a long time debugging and commenting lines of code out, I found out where it's getting hung up. Commenting this line out will make it publish successfully: https://github.com/plexusorg/Plex/blob/517b8294207cd292ee22f644ef197bf84e3f4a6f/server/build.gradle#L106

@jimshowalter
Copy link
Author

We get the same error with the latest snapshot. We don't use shadow.

@ljacomet
Copy link
Member

ljacomet commented Aug 5, 2022

Moving this out of Gradle 7.5.1, as we have other fixes for the patch release that we want published and are unable to provide a fix here for now.

Those affected will have to stay with Gradle 7.4.2 for now.

@ljacomet ljacomet modified the milestones: 7.5.1, 7.6 RC1 Aug 5, 2022
@adammurdoch
Copy link
Member

Should be fixed via #21643

@jimshowalter
Copy link
Author

When will this fix be released?

@Telesphoreo
Copy link

I upgraded to 7.6-20220825090952+0000 and it's fixed now

@jimshowalter
Copy link
Author

I mean released formally, in https://gradle.org/releases/.

@adammurdoch
Copy link
Member

@jimshowalter the fix will be included in Gradle 7.6, which is due to be released soon.

@Telesphoreo thanks for trying out the fix and letting us know the result.

@guai
Copy link

guai commented Mar 23, 2023

I'm getting this same error in a teamcity pipeline run by gradle 7.6.
never saw it on my local pc.
this parameters:

-Dkotlin.incremental=false
-Dkotlin.compiler.execution.strategy=in-process

made it less frequent, but I dunno neither how to get rid of it entirely nor how to reproduce it well.

UPD: downgrade to gradle 7.4.2 didn't help either

@fluxxion82
Copy link

So I think I'm seeing this error when using Android Studio Hedgehog Canary 11. My gradle wrapper is set to 8.1.1. Even if I change gradle to 7.6 then it still doesn't work in AS canary 11. If I use AS Giraffe, then I can use gradle 8.1.1.
Haven't tried other canary versions or gradle versions.

@DamienLevel
Copy link

Same issue for me with Android Studio Hedgehog Canary 11.
I didn't have this issue on previous canary versions.

@tamimattafi
Copy link

Same issue for me with Android Studio Hedgehog Canary 12.

@DamienLevel
Copy link

An issue was created on Google IssueTracker but the status changed to Won't fix (Infeasible) yesterday...
https://issuetracker.google.com/issues/290954881

This is a very interesting bug but I would file it against Gradle directly if you have done so already. this seems to be an issue with the Gradle's execution engine.

@IGR2014
Copy link

IGR2014 commented Jul 26, 2023

Same issue for me with Android Studio Hedgehog Canary 13.

@DevDema
Copy link

DevDema commented Jul 26, 2023

Can confirm this is indeed a problem also in Android Studio Hedgehog Canary 14.

@smworks
Copy link

smworks commented Aug 2, 2023

We're experiencing similar issue with same warning when rebuilding our project in Android Studio Hedgehog | 2023.1.1 Canary 13. Strange thing is that running on mobile device works, but only rebuild option fails.

@eskatos
Copy link
Member

eskatos commented Aug 4, 2023

Hey folks,

What you observe is a different issue than the one confirmed fixed here.

Please open another issue and provide as much detail as you can. We don't have a reproducer yet that demonstrates what you observe and without a reproducer this is very difficult to track down.

@ov7a ov7a removed the 👋 team-triage Issues that need to be triaged by a specific team label Aug 10, 2023
@javakam
Copy link

javakam commented Aug 22, 2023

Android Studio Hedgehog Canary 16 也这13样

@asker517
Copy link

Android Studio Hedgehog Canary 16 也这13样

@javakam 大佬也遇到这问题了么 我还在用你的FileOperator呢:D,我也用的 Android Studio Hedgehog Canary 16..只要 rebuid 就特么这情况。。

@javakam
Copy link

javakam commented Aug 24, 2023

Android Studio Hedgehog Canary 16 也这13样

@javakam 大佬也遇到这问题了么 我还在用你的FileOperator呢:D,我也用的 Android Studio Hedgehog Canary 16..只要 rebuid 就特么这情况。。

客气了兄弟, 我也是捣鼓了半天gradle 8+建议先别升级, 还是用

classpath 'com.android.tools.build:gradle:7.4.2'

distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

稳定, 这个是前半年的配置一直很稳定。

@asker517
Copy link

Android Studio Hedgehog Canary 16 也这13样

@javakam 大佬也遇到这问题了么 我还在用你的FileOperator呢:D,我也用的 Android Studio Hedgehog Canary 16..只要 rebuid 就特么这情况。。

客气了兄弟, 我也是捣鼓了半天gradle 8+建议先别升级, 还是用

classpath 'com.android.tools.build:gradle:7.4.2'

distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

稳定, 这个是前半年的配置一直很稳定。

我换回Android Studio Giraffe好像也没问题……

@nowiwr01w
Copy link

Same problem with Android Studio Preview (Iguana Canary 3)

@vicky17d
Copy link

We are seeing this problem in Gradle 7.6.2

@sebastienrussell
Copy link

might be related. The wierd thing is when I switch to Android studio stable version (here) the project works fine without problem.

Screenshot 2023-11-06 at 07 31 37

Your Environment
Macos, Gradle 8.1.1, Java 17 (JBR 17 from Android Studio Preview up here).

Android Studio Iguana | 2023.2.1 Canary 12
Build #AI-232.10203.10.2321.11040444, built on November 2, 2023
Runtime version: 17.0.8+0-17.0.8b1000.22-10799086 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.1
GC: G1 Young Generation, G1 Old Generation
Memory: 3072M
Cores: 10
Metal Rendering is ON
Registry:
    external.system.auto.import.disabled=true
    debugger.new.tool.window.layout=true
    ide.text.editor.with.preview.show.floating.toolbar=false
    ide.instant.shutdown=false
    ide.experimental.ui=true
Executing tasks: [:module2:clean, :module1:clean, :module2-showcase:clean, :Svg2Vector:clean, :module2:assembleDebug, :module2:assembleDebugUnitTest, :module2:assembleDebugAndroidTest, :module1:assemble, :module1:testClasses, :module2-showcase:assembleDebug, :module2-showcase:assembleDebugUnitTest, :module2-showcase:assembleDebugAndroidTest, :Svg2Vector:assemble, :Svg2Vector:testClasses] in project /Users/sebastienrussell/Documents/module2-android

> Task :module1:pluginDescriptors
> Task :module1:processResources NO-SOURCE

> Task :module1:compileKotlin
w: Language version 1.5 is deprecated and its support will be removed in a future version of Kotlin

> Task :module1:compileJava NO-SOURCE
> Task :module1:compileGroovy NO-SOURCE
> Task :module1:classes UP-TO-DATE

> Task :module1:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins

> Task :module1:assemble
> Task :Svg2Vector:clean UP-TO-DATE
> Task :module2:clean UP-TO-DATE
> Task :module2:preBuild UP-TO-DATE
> Task :module2:preDebugBuild UP-TO-DATE
> Task :module2:assembleDebugUnitTest UP-TO-DATE
> Task :module2:preDebugAndroidTestBuild UP-TO-DATE
> Task :module2-showcase:clean UP-TO-DATE
> Task :module2-showcase:createDebugVariantModel
> Task :module2-showcase:preBuild UP-TO-DATE
> Task :module2-showcase:preDebugBuild UP-TO-DATE
> Task :module2-showcase:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :module2:mergeDebugJniLibFolders
> Task :module2:mergeDebugNativeLibs NO-SOURCE
> Task :module2:stripDebugDebugSymbols NO-SOURCE
> Task :module2-showcase:generateDebugResValues
> Task :module2-showcase:generateDebugResources
> Task :Svg2Vector:processResources NO-SOURCE
> Task :Svg2Vector:processTestResources NO-SOURCE
> Task :module2:copyDebugJniLibsProjectAndLocalJars
> Task :module2-showcase:dataBindingTriggerDebug
> Task :module2-showcase:generateDebugBuildConfig
> Task :module2-showcase:createDebugCompatibleScreenManifests
> Task :module2-showcase:extractDeepLinksDebug
> Task :module2-showcase:javaPreCompileDebug
> Task :module2-showcase:mergeDebugShaders
> Task :module2-showcase:compileDebugShaders NO-SOURCE
> Task :module2-showcase:generateDebugAssets UP-TO-DATE
> Task :module2:dataBindingMergeDependencyArtifactsDebug
> Task :module2:generateDebugResValues
> Task :module2:generateDebugResources
> Task :module2-showcase:desugarDebugFileDependencies
> Task :module2-showcase:mergeDebugJniLibFolders
> Task :module2-showcase:validateSigningDebug
> Task :module2-showcase:writeDebugAppMetadata
> Task :module2-showcase:writeDebugSigningConfigVersions
> Task :module2-showcase:assembleDebugUnitTest UP-TO-DATE
> Task :module2-showcase:preDebugAndroidTestBuild SKIPPED
> Task :module2-showcase:generateDebugAndroidTestResValues
> Task :module2-showcase:generateDebugAndroidTestResources
> Task :module2-showcase:checkDebugDuplicateClasses
> Task :module2-showcase:mergeDebugAndroidTestResources
> Task :module2-showcase:mapDebugAndroidTestSourceSetPaths
> Task :module2-showcase:javaPreCompileDebugAndroidTest
> Task :module2-showcase:mergeDebugAndroidTestShaders
> Task :module2-showcase:compileDebugAndroidTestShaders NO-SOURCE
> Task :module2-showcase:generateDebugAndroidTestAssets UP-TO-DATE
> Task :module2-showcase:desugarDebugAndroidTestFileDependencies
> Task :module2-showcase:mergeDebugAndroidTestJniLibFolders
> Task :module2-showcase:checkDebugAndroidTestDuplicateClasses
> Task :module2-showcase:validateSigningDebugAndroidTest
> Task :module2-showcase:writeDebugAndroidTestSigningConfigVersions
> Task :module2-showcase:mergeExtDexDebugAndroidTest
> Task :Svg2Vector:compileKotlin
> Task :Svg2Vector:compileJava NO-SOURCE
> Task :Svg2Vector:classes UP-TO-DATE
> Task :Svg2Vector:jar
> Task :Svg2Vector:assemble
> Task :Svg2Vector:compileTestKotlin NO-SOURCE
> Task :Svg2Vector:compileTestJava NO-SOURCE
> Task :Svg2Vector:testClasses UP-TO-DATE
> Task :module2-showcase:mergeExtDexDebug
> Task :module2:packageDebugResources
> Task :module2:dataBindingGenBaseClassesDebug
> Task :module2:dataBindingTriggerDebug
> Task :module2:generateDebugBuildConfig
> Task :module2:extractDeepLinksForAarDebug UP-TO-DATE
> Task :module2:javaPreCompileDebug
> Task :module2:mergeDebugShaders
> Task :module2:compileDebugShaders NO-SOURCE
> Task :module2:generateDebugAssets UP-TO-DATE
> Task :module2:packageDebugAssets
> Task :module2:prepareDebugArtProfile UP-TO-DATE
> Task :module2:prepareLintJarForPublish UP-TO-DATE
> Task :module2:processDebugManifest
> Task :module2:createDebugVariantModel
> Task :module2:writeDebugAarMetadata
> Task :module2:generateDebugAndroidTestResValues
> Task :module2:generateDebugAndroidTestResources
> Task :module2:parseDebugLocalResources
> Task :module2:dataBindingTriggerDebugAndroidTest
> Task :module2:extractDeepLinksDebug
> Task :module2:processDebugAndroidTestManifest
> Task :module2:generateDebugRFile
> Task :module2:generateDebugAndroidTestBuildConfig
> Task :module2-showcase:mapDebugSourceSetPaths
> Task :module2-showcase:checkDebugAarMetadata
> Task :module2-showcase:processDebugMainManifest
> Task :module2-showcase:processDebugManifest
> Task :module2-showcase:mergeDebugAssets
> Task :module2:mergeDebugAndroidTestResources
> Task :module2-showcase:compressDebugAssets
> Task :module2-showcase:processDebugAndroidTestManifest
> Task :module2-showcase:generateDebugAndroidTestBuildConfig
> Task :module2-showcase:checkDebugAndroidTestAarMetadata
> Task :module2-showcase:mergeDebugAndroidTestAssets
> Task :module2:mapDebugAndroidTestSourceSetPaths
> Task :module2:checkDebugAndroidTestAarMetadata
> Task :module2:javaPreCompileDebugAndroidTest
> Task :module2:mergeDebugAndroidTestShaders
> Task :module2:compileDebugAndroidTestShaders NO-SOURCE
> Task :module2:generateDebugAndroidTestAssets UP-TO-DATE
> Task :module2-showcase:compressDebugAndroidTestAssets
> Task :module2-showcase:processDebugManifestForPackage
> Task :module2-showcase:mergeDebugResources
> Task :module2:mergeDebugAndroidTestAssets
> Task :module2:compressDebugAndroidTestAssets
> Task :module2:desugarDebugAndroidTestFileDependencies
> Task :module2:copyDebugJniLibsProjectOnly
> Task :module2:mergeDebugAndroidTestJniLibFolders
> Task :module2-showcase:mergeDebugNativeLibs NO-SOURCE
> Task :module2:mergeDebugAndroidTestNativeLibs NO-SOURCE
> Task :module2-showcase:stripDebugDebugSymbols NO-SOURCE
> Task :module2-showcase:mergeDebugAndroidTestNativeLibs NO-SOURCE
> Task :module2:validateSigningDebugAndroidTest
> Task :module2:writeDebugAndroidTestSigningConfigVersions
> Task :module2:checkDebugAndroidTestDuplicateClasses
> Task :module2-showcase:processDebugAndroidTestResources
> Task :module2:compileDebugLibraryResources
> Task :module2:mergeExtDexDebugAndroidTest
> Task :module2:kaptGenerateStubsDebugKotlin
> Task :module2:processDebugAndroidTestResources
> Task :module2-showcase:processDebugResources
> Task :module2:kaptDebugKotlin
> Task :module2-showcase:dataBindingMergeDependencyArtifactsDebug
> Task :module2-showcase:dataBindingMergeDependencyArtifactsDebugAndroidTest
> Task :module2-showcase:dataBindingGenBaseClassesDebug
> Task :module2-showcase:dataBindingGenBaseClassesDebugAndroidTest
> Task :module2:dataBindingMergeDependencyArtifactsDebugAndroidTest
> Task :module2:dataBindingGenBaseClassesDebugAndroidTest
> Task :module2:compileDebugKotlin
> Task :module2:extractDebugAnnotations

> Task :module2:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :module2:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :module2:mergeDebugConsumerProguardFiles UP-TO-DATE
> Task :module2:processDebugJavaRes
> Task :module2:mergeDebugJavaResource
> Task :module2:bundleLibRuntimeToJarDebug
> Task :module2:bundleLibCompileToJarDebug
> Task :module2:syncDebugLibJars
> Task :module2:bundleDebugAar
> Task :module2:assembleDebug
> Task :module2:kaptGenerateStubsDebugAndroidTestKotlin
> Task :module2:kaptDebugAndroidTestKotlin
> Task :module2:compileDebugAndroidTestKotlin NO-SOURCE
> Task :module2:compileDebugAndroidTestJavaWithJavac
> Task :module2-showcase:mergeLibDexDebugAndroidTest
> Task :module2-showcase:mergeLibDexDebug
> Task :module2:dexBuilderDebugAndroidTest
> Task :module2:processDebugAndroidTestJavaRes
> Task :module2:mergeDebugAndroidTestGlobalSynthetics
> Task :module2:mergeLibDexDebugAndroidTest
> Task :module2:mergeProjectDexDebugAndroidTest
> Task :module2-showcase:kaptGenerateStubsDebugKotlin
> Task :module2:mergeDebugAndroidTestJavaResource
> Task :module2:packageDebugAndroidTest
> Task :module2:createDebugAndroidTestApkListingFileRedirect
> Task :module2:assembleDebugAndroidTest
> Task :module2-showcase:kaptDebugKotlin
> Task :module2-showcase:compileDebugKotlin
> Task :module2-showcase:compileDebugJavaWithJavac
> Task :module2-showcase:dexBuilderDebug
> Task :module2-showcase:mergeDebugGlobalSynthetics
> Task :module2-showcase:processDebugJavaRes
> Task :module2-showcase:bundleDebugClassesToCompileJar
> Task :module2-showcase:kaptGenerateStubsDebugAndroidTestKotlin
> Task :module2-showcase:mergeProjectDexDebug
> Task :module2-showcase:kaptDebugAndroidTestKotlin
> Task :module2-showcase:compileDebugAndroidTestKotlin NO-SOURCE
> Task :module2-showcase:compileDebugAndroidTestJavaWithJavac
> Task :module2-showcase:dexBuilderDebugAndroidTest
> Task :module2-showcase:processDebugAndroidTestJavaRes NO-SOURCE
> Task :module2-showcase:mergeDebugAndroidTestGlobalSynthetics
> Task :module2-showcase:mergeDebugAndroidTestJavaResource
> Task :module2-showcase:mergeProjectDexDebugAndroidTest
> Task :module2-showcase:mergeDebugJavaResource
> Task :module2-showcase:packageDebugAndroidTest
> Task :module2-showcase:createDebugAndroidTestApkListingFileRedirect
> Task :module2-showcase:assembleDebugAndroidTest
> Task :module2-showcase:packageDebug
> Task :module2-showcase:createDebugApkListingFileRedirect
> Task :module2-showcase:assembleDebug
Unable to make progress running work. The following items are queued for execution but none of them can be started:
  - Build ':':
      - Waiting for nodes:
          - other build task :module1:clean (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 1, no dependencies, taskState=Scheduled, exportedTaskState=Scheduled )
          - other build task :module1:testClasses (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 8, no dependencies, taskState=Scheduled, exportedTaskState=Scheduled )
      - Scheduling events:
          - node added to plan: producer locations for task group 0, when: scheduled, state: SHOULD_RUN, dependencies: 0, is ready node? true
          - node added to plan: producer locations for task group 1, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: producer locations for task group 2, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 0, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 1, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 2, when: scheduled, state: SHOULD_RUN, dependencies: 2, is ready node? false
          - node added to plan: destroyer locations for task group 3, when: scheduled, state: SHOULD_RUN, dependencies: 2, is ready node? false
          - node added to plan: destroyer locations for task group 4, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 5, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 6, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 7, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 8, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 9, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 10, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 11, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 12, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
      - Ordinal groups:
          - group 0 entry nodes: [:module2:clean (EXECUTED)]
          - group 1 entry nodes: [other build task :module1:clean (SHOULD_RUN)]
          - group 2 entry nodes: [:module2-showcase:clean (EXECUTED)]
          - group 3 entry nodes: [:Svg2Vector:clean (EXECUTED)]
          - group 4 entry nodes: [:module2:assembleDebug (EXECUTED)]
          - group 5 entry nodes: [:module2:assembleDebugUnitTest (EXECUTED)]
          - group 6 entry nodes: [:module2:assembleDebugAndroidTest (EXECUTED)]
          - group 7 entry nodes: [other build task :module1:assemble (EXECUTED)]
          - group 8 entry nodes: [other build task :module1:testClasses (SHOULD_RUN)]
          - group 9 entry nodes: [:module2-showcase:assembleDebug (EXECUTED)]
          - group 10 entry nodes: [:module2-showcase:assembleDebugUnitTest (EXECUTED)]
          - group 11 entry nodes: [:module2-showcase:assembleDebugAndroidTest (EXECUTED)]
          - group 12 entry nodes: [:Svg2Vector:assemble (EXECUTED)]
          - group 13 entry nodes: [:Svg2Vector:testClasses (EXECUTED)]
  - Build ':module1':
      - Waiting for nodes:
          - :module1:testClasses (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 2, dependencies=[:module1:compileTestGroovy (SHOULD_RUN), :module1:compileTestJava (SHOULD_RUN), :module1:processTestResources (SHOULD_RUN)], waiting-for=[:module1:compileTestJava (SHOULD_RUN), :module1:processTestResources (SHOULD_RUN), :module1:compileTestGroovy (SHOULD_RUN)], has-failed-dependency=false )
          - :module1:clean (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=task group 0, dependencies=[Resolve mutations for :module1:clean (EXECUTED)], has-failed-dependency=false )
      - Nodes ready to start:
          - :module1:clean
          - :module1:compileTestKotlin
          - :module1:processTestResources
      - Reachable nodes:
          - :module1:compileTestKotlin (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=task group 2, dependencies=[Resolve mutations for :module1:compileTestKotlin (EXECUTED), destroyer locations for task group 1 (EXECUTED), :module1:classes (EXECUTED), :module1:compileGroovy (EXECUTED), :module1:compileJava (EXECUTED), :module1:compileKotlin (EXECUTED)], has-failed-dependency=false )
          - :module1:compileTestJava (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 2, dependencies=[destroyer locations for task group 1 (EXECUTED), :module1:classes (EXECUTED), :module1:compileGroovy (EXECUTED), :module1:compileJava (EXECUTED), :module1:compileKotlin (EXECUTED), :module1:compileTestKotlin (SHOULD_RUN)], waiting-for=[:module1:compileTestKotlin (SHOULD_RUN)], has-failed-dependency=false )
          - :module1:compileTestGroovy (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 2, dependencies=[destroyer locations for task group 1 (EXECUTED), :module1:classes (EXECUTED), :module1:compileGroovy (EXECUTED), :module1:compileJava (EXECUTED), :module1:compileKotlin (EXECUTED), :module1:compileTestJava (SHOULD_RUN)], waiting-for=[:module1:compileTestJava (SHOULD_RUN)], has-failed-dependency=false )
          - :module1:processTestResources (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=task group 2, dependencies=[Resolve mutations for :module1:processTestResources (EXECUTED), destroyer locations for task group 1 (EXECUTED)], has-failed-dependency=false )
      - Scheduling events:
          - node added to plan: destroyer locations for task group 0, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
          - node added to plan: destroyer locations for task group 1, when: scheduled, state: SHOULD_RUN, dependencies: 1, is ready node? false
      - Ordinal groups:
          - group 0 entry nodes: [:module1:clean (SHOULD_RUN)]
          - group 1 entry nodes: [:module1:assemble (EXECUTED)]
          - group 2 entry nodes: [:module1:testClasses (SHOULD_RUN)]
  - Workers waiting for work: 11
  - Stopped workers: 1

FAILURE: Build failed with an exception.

* What went wrong:
Unable to make progress running work. There are items queued for execution but none of them can be started

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 35s
142 actionable tasks: 134 executed, 8 up-to-date

@codebreaker
Copy link

I am using Android studio Iguana RC2 and I see this issue. Any potential changes that would make 'Rebuild' work? I have the same issue as described by @sebastienrussell

@fluxxion82
Copy link

Seeing this on AS Iguana stable version.

@spheroid
Copy link

spheroid commented Mar 2, 2024

I started to see this after upgrading to Iguana as well, but managed to work around it. This issue appears to manifest in more than one way, but I think the root cause is the addition of "testClasses" target to modules where it previously wasn't.

@fluxxion82
Copy link

I left comment 19 on that google issue. I was getting errors saying "Cannot locate tasks that match as task ':moduleA:testClasses'" for a couple of modules. I found a SO saying a work around to this was to add task("testClasses") to my build scripts, but after doing that I see this error. I guess maybe adding task("testClasses") is maybe not the way to go but haven't been able to fix my first issue. not sure what's happening but AS hedgehog was working fine so may have to stay with that for a while more.

@vickyleu
Copy link

我在那个谷歌问题上留下了评论19。对于几个模块,我收到错误消息“无法找到与任务 ':moduleA:testClasses' 匹配的任务”。我发现一个 SO 说解决这个问题的方法是添加task("testClasses")到我的构建脚本中,但这样做后我看到了这个错误。我想也许添加task("testClasses")可能不是可行的方法,但无法解决我的第一个问题。不知道发生了什么,但 AS 刺猬工作得很好,所以可能还得再坚持一段时间。

same

Android Studio Iguana | 2023.2.1 Patch 1
Build #AI-232.10300.40.2321.11567975, built on March 13, 2024
Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.2.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Metal Rendering is ON
Registry:
    ide.images.show.chessboard=true

Non-Bundled Plugins:
    com.ankit.mahadik.json.dart.class (2.16)
    Dart (232.10305)
    com.jetbrains.kmm (0.8.2(232)-20)
    com.squareup.sqldelight (2.0.1)
    com.github.copilot (1.5.0.5148)
    mobi.hsz.idea.gitignore (4.5.2)
    io.flutter (78.4.1)
    cn.yiiguxing.plugin.translate (3.5.7)

@zhe1ka
Copy link

zhe1ka commented May 16, 2024

+1 same. Android Studio Iguana | 2023.2.1 Patch 2

@fillooow
Copy link

same error:
Unable to make progress running work. There are items queued for execution but none of them can be started

happens only with rebuild button, build works fine

checked on:

  • Android Studio Jellyfish | 2023.3.1 Patch 1
  • Android Studio Koala | 2024.1.1 Beta 2
  • Android Studio Jellyfish | 2023.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:regression This used to work affects-version:7.5 in:scheduler execution plan, task graph, work lease, project lock
Projects
None yet
Development

No branches or pull requests