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 with empty buildSrc #28407

Open
mandrachek opened this issue Mar 10, 2024 · 6 comments
Open

Unable to make progress running work with empty buildSrc #28407

mandrachek opened this issue Mar 10, 2024 · 6 comments
Labels
a:bug has:reproducer DON'T USE in:composite-builds including BuildIdentifier in:execution-engine incremental, up-to-date, overlapping outputs

Comments

@mandrachek
Copy link

mandrachek commented Mar 10, 2024

Current Behavior

When Android Studio Iguana or later attempts to rebuild the project, the build fails with:
Unable to make progress running work. There are items queued for execution but none of them can be started.

Expected Behavior

The build doesn't fail.

Context (optional)

This has broken our builds in Android Studio Iguana and later, as we're using buildSrc. It is not clear however that this is the fault of Gradle - I'm not sure what the purpose of calling :buildSrc:testClasses is. This was not being called when doing a rebuild on Android Studio Hedgehog.

This can be worked around by excluding the :buildSrc:testClasses task in the top level settings.gradle file, via:

gradle.startParameter.excludedTaskNames.addAll(listOf(":buildSrc:testClasses"))`

Steps to Reproduce

Extract the reproducer, then run the same set of tasks in the same order as Android Studio's Build -> Rebuild menu option:

./gradlew :app:clean :buildSrc:clean :app:assembleDebug :app:assembleDebugUnitTest :app:assembleDebugAndroidTest :buildSrc:assemble :buildSrc:testClasses

Gradle version

8.4, 8.5, 8.6, 8.7-rc2

Build scan URL (optional)

No response

Your Environment (optional)

No response

@mandrachek
Copy link
Author

Broken.zip
Updated reproducer (without binaries)

@ov7a ov7a self-assigned this Mar 11, 2024
@ov7a
Copy link
Member

ov7a commented Mar 11, 2024

The issue can be simplified down to an empty buildSrc and ./gradlew :buildSrc:clean :buildSrc:testClasses.
See the simplified reproducer here and the output here.


The issue is in the backlog of the relevant team and is prioritized by them.

@ov7a ov7a added in:composite-builds including BuildIdentifier in:execution-engine incremental, up-to-date, overlapping outputs has:reproducer DON'T USE and removed to-triage labels Mar 11, 2024
@ov7a ov7a removed their assignment Mar 11, 2024
@ov7a ov7a changed the title Unable to make progress running work Unable to make progress running work with empty buildSrc Mar 11, 2024
@CristianMG
Copy link

Same error, same workaround.

Android Studio: Iguana | 2023.2.1
Gradle Distribution: https://services.gradle.org/distributions/gradle-8.4-bin.zip
Gradle Plugin: com.android.tools.build:gradle:8.3.0

@mandrachek Thankss for the workaround.

@scott-pollom
Copy link

@digrec
Copy link

digrec commented Apr 10, 2024

I'm facing the same issue in my Flutter plugin project with :gradle:testClasses task when doing Build > Rebuild Project.

Adding this workaround to top level settings.gradle helped:
gradle.startParameter.excludedTaskNames.addAll([":gradle:testClasses"])

Android Studio Iguana | 2023.2.1 Patch 1 and 2
Gradle 8.4, AGP 8.3.1 and 8.3.2

@jjohannes
Copy link
Contributor

This seems to be the same issue. Reproducer:

./gradlew :aggregation:clean :app:clean :bespin:clean :corellia:clean :coruscant:clean :kamino:clean :kashyyyk:clean :naboo:clean :tatooine:clean :plugins:clean :aggregation:assemble :aggregation:testClasses :app:assembleDebug :app:assembleDebugUnitTest :app:assembleDebugAndroidTest :bespin:assemble :bespin:testClasses :corellia:assemble :corellia:testClasses :coruscant:assemble :coruscant:testClasses :kamino:assembleDebug :kamino:assembleDebugUnitTest :kamino:assembleDebugAndroidTest :kashyyyk:assembleDebug :kashyyyk:assembleDebugUnitTest :kashyyyk:assembleDebugAndroidTest :naboo:assemble :naboo:testClasses :tatooine:assemble :tatooine:testClasses :plugins:assemble :plugins:testClasses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug has:reproducer DON'T USE in:composite-builds including BuildIdentifier in:execution-engine incremental, up-to-date, overlapping outputs
Projects
None yet
Development

No branches or pull requests

6 participants