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

"gradlew clean check" results in internal gradle error "Unable to make progress running work." #13567

Open
dweiss opened this issue Jul 12, 2024 · 1 comment
Labels

Comments

@dweiss
Copy link
Contributor

dweiss commented Jul 12, 2024

Description

As reported by Chris, running "gradlew clean check" on main results in this nasty (or its variations):

Unable to make progress running work. The following items are queued for execution but none of them can be started:
  - Build ':build-infra':
      - Waiting for nodes:
          - :build-infra:clean (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=task group 0, dependencies=[Resolve mutations for :build-infra:clean (EXECUTED)], has-failed-dependency=false )
          - :build-infra:forbiddenApis (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 1, dependencies=[:build-infra:forbiddenApisMain (EXECUTED), :build-infra:forbiddenApisTest (SHOULD_RUN)], waiting-for=[:build-infra:forbiddenApisTest (SHOULD_RUN)], has-failed-dependency=false )
      - Nodes ready to start:
          - :build-infra:clean
          - :build-infra:compileTestJava
          - :build-infra:processTestResources
      - Reachable nodes:
          - :build-infra:compileTestJava (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=task group 1, dependencies=[Resolve mutations for :build-infra:compileTestJava (EXECUTED), destroyer locations for task group 0 (EXECUTED), :build-infra:classes (EXECUTED), :build-infra:compileJava (EXECUTED)], has-failed-dependency=false )
          - :build-infra:processTestResources (state=SHOULD_RUN, dependencies=COMPLETE_AND_SUCCESSFUL, group=task group 1, dependencies=[Resolve mutations for :build-infra:processTestResources (EXECUTED), destroyer locations for task group 0 (EXECUTED)], has-failed-dependency=false )
          - :build-infra:testClasses (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 1, dependencies=[:build-infra:compileTestJava (SHOULD_RUN), :build-infra:processTestResources (SHOULD_RUN)], waiting-for=[:build-infra:processTestResources (SHOULD_RUN), :build-infra:compileTestJava (SHOULD_RUN)], has-failed-dependency=false )
          - :build-infra:forbiddenApisTest (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 1, dependencies=[:build-infra:classes (EXECUTED), :build-infra:compileJava (EXECUTED), :build-infra:compileTestJava (SHOULD_RUN), :build-infra:testClasses (SHOULD_RUN)], waiting-for=[:build-infra:compileTestJava (SHOULD_RUN), :build-infra:testClasses (SHOULD_RUN)], 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
      - Ordinal groups:
          - group 0 entry nodes: [:build-infra:clean (SHOULD_RUN)]
          - group 1 entry nodes: [:build-infra:forbiddenApis (SHOULD_RUN)]
  - Workers waiting for work: 12
  - Stopped workers: 3

I've dumped task execution ordering using this plugin:

  id 'org.barfuin.gradle.taskinfo' version '2.2.0'

and I can see composite project tasks are intertwined with top level project tasks - this may lead to insanity.

The only workaround for now is to not run 'clean' together with other tasks.

@dweiss
Copy link
Contributor Author

dweiss commented Jul 12, 2024

I think this comment provides an explanation of what is happening:
gradle/gradle#23585 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants