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

Incomplete TaskExecutionGraph.allTasks reported in included build #21351

Open
blindpirate opened this issue Jul 26, 2022 · 2 comments
Open

Incomplete TaskExecutionGraph.allTasks reported in included build #21351

blindpirate opened this issue Jul 26, 2022 · 2 comments
Labels
a:bug in:composite-builds including BuildIdentifier

Comments

@blindpirate
Copy link
Collaborator

blindpirate commented Jul 26, 2022

Context

The tasks reported in gradle.taskGraph.whenReady { println("AllTasks: ${allTasks.map { it.path }}") } are incomplete if running as an included build.

Steps to reproduce

  • In gradle/gradle repo root.
  • echo 'gradle.taskGraph.whenReady { println("AllTasks: ${allTasks.map { it.path }}") }' >> build-logic/build.gradle.kts
  • ./gradlew :build-logic:check --dry-run | tee output.txt

You can see a lot of tasks executed, but not displayed in TaskExecutionGraph.allTasks, for example, :build-logic:basics:ktlintTestSourceSetCheck.

@big-guy
Copy link
Member

big-guy commented Jul 26, 2022

This is expected because the task graphs are for a single build and not for the entire set of included builds.

Are you trying to get test failures/code quality failures from the included builds?

@blindpirate
Copy link
Collaborator Author

the task graphs are for a single build and not for the entire set of included builds

What does single build mean here? We can get the Gradle instance of included build, but the Gradle.taskGraph is complete, this is expected?

@jbartok jbartok added in:composite-builds including BuildIdentifier and removed to-triage labels Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug in:composite-builds including BuildIdentifier
Projects
None yet
Development

No branches or pull requests

3 participants