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

Regression: computeActualUsage throws 'Node IncludedBuildCoordinates(...) is not an element of this graph' #1364

Open
jjohannes opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working toolchain:java
Milestone

Comments

@jjohannes
Copy link
Collaborator

Build scan link
https://scans.gradle.com/s/unbm6xn2brvfo

Plugin version
2.7.0 (works in 2.6.0)

Gradle version
8.12 (also reproduced with 8.8)

JDK version
21.0.5

Describe the bug
In a certain included builds setup (see reproducer) the computeActualUsage* tasks fail with:

A failure occurred while executing com.autonomousapps.tasks.ComputeUsagesTask$ComputeUsagesAction
   > Node IncludedBuildCoordinates(...) is not an element of this graph.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout https://github.com/hashgraph/pbj at commit 40b25f7
  2. cd pbj-integration-tests
  3. Run ./gradlew computeActualUsageMain

Expected behavior

Task should not fail with an error and work as in 2.6.0

Additional context

The included build setup of the project linked above is too complex. The included build is used both as a Gradle plugin and as a component. Which causes some confusing effects already. Nevertheless, the dependency analysis worked previously. But it may be something special in the setup causing this and it may not be a general issue with included builds.

There do not seem to be that many changes between 2.6.0 and 2.7.0
This change in the "graph support" part sounds like it could be related:

# Version 0.5
* [New] `Graphs` has new overloads of `reachableNodes()` that accepts a predicate for node-matching.
@autonomousapps autonomousapps added bug Something isn't working toolchain:java labels Feb 9, 2025
@autonomousapps autonomousapps added this to the next milestone Feb 9, 2025
@autonomousapps
Copy link
Owner

Thanks for the issue! If you're able to take a look, PRs are of course welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working toolchain:java
Projects
None yet
Development

No branches or pull requests

2 participants