gradle icon indicating copy to clipboard operation
gradle copied to clipboard

"Unable to make progress running work" redux

Open jimshowalter opened this issue 3 years ago • 10 comments

You closed https://github.com/gradle/gradle/issues/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.

jimshowalter avatar Jul 22 '22 01:07 jimshowalter

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.

adammurdoch avatar Jul 22 '22 20:07 adammurdoch

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.

jimshowalter avatar Jul 22 '22 22:07 jimshowalter

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.

adammurdoch avatar Jul 28 '22 03:07 adammurdoch

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

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

big-guy avatar Jul 29 '22 15:07 big-guy

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

jimshowalter avatar Jul 30 '22 18:07 jimshowalter

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

Telesphoreo avatar Aug 01 '22 22:08 Telesphoreo

@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.

big-guy avatar Aug 02 '22 23:08 big-guy

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

Telesphoreo avatar Aug 03 '22 00:08 Telesphoreo

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

jimshowalter avatar Aug 04 '22 00:08 jimshowalter

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 avatar Aug 05 '22 10:08 ljacomet

Should be fixed via https://github.com/gradle/gradle/pull/21643

adammurdoch avatar Aug 24 '22 20:08 adammurdoch

When will this fix be released?

jimshowalter avatar Aug 28 '22 15:08 jimshowalter

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

Telesphoreo avatar Aug 28 '22 17:08 Telesphoreo

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

jimshowalter avatar Aug 28 '22 19:08 jimshowalter

@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.

adammurdoch avatar Aug 30 '22 00:08 adammurdoch

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

guai avatar Mar 23 '23 10:03 guai

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.

fluxxion82 avatar Jul 09 '23 16:07 fluxxion82

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

DamienLevel avatar Jul 11 '23 08:07 DamienLevel

Same issue for me with Android Studio Hedgehog Canary 12.

tamimattafi avatar Jul 18 '23 18:07 tamimattafi

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.

DamienLevel avatar Jul 19 '23 08:07 DamienLevel

Same issue for me with Android Studio Hedgehog Canary 13.

IGR2014 avatar Jul 26 '23 08:07 IGR2014

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

DevDema avatar Jul 26 '23 12:07 DevDema

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.

smworks avatar Aug 02 '23 06:08 smworks

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.

eskatos avatar Aug 04 '23 13:08 eskatos

Related

  • #26060
  • #25951

ov7a avatar Aug 10 '23 14:08 ov7a

Android Studio Hedgehog Canary 16 也这13样

javakam avatar Aug 22 '23 06:08 javakam

Android Studio Hedgehog Canary 16 也这13样

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

asker517 avatar Aug 22 '23 10:08 asker517

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

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

javakam avatar Aug 24 '23 01:08 javakam

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好像也没问题……

asker517 avatar Aug 24 '23 02:08 asker517

Same problem with Android Studio Preview (Iguana Canary 3)

nowiwr01w avatar Sep 12 '23 19:09 nowiwr01w