Summary
The user is asking about how the graph-view in Earthly Cloud generates its graph and what triggers the creation of new nodes. They have a project with multiple targets, where +chef-planner
is supposed to run once on the native platform, while +chef-cook
depends on it and runs across multiple platforms. However, the graph shows +chef-planner
being executed for each platform, leading the user to question their Earthfile configuration. They are struggling to understand why there are multiple +chef-planner
targets in the cloud UI and also inquire why +base
appears four times in the graph.
mortenjo
Also, why is +base
shown four times in the graph?
mortenjo
I'm wondering how the graph-view in earthly cloud builds the graph? Specifically what creates a new node?
I have a project where I have multiple targets. One target, +chef-planner
is supposed to run only once, on the native platform. Then another target, +chef-cook
depends on +chef-planner
, but runs for multiple platforms. From the graph, it looks like +chef-planner
is run for each platform. It's entirely possible that is what is happening, if I have missed something in my Earthfile for instance, but it's hard to tell from the cloud UI exactly why there are two +chef-planner
targets ...
Link to the build: https://cloud.earthly.dev/builds/5e521775-6470-425a-a356-fcf928ab0547 Link to the Earthfile: https://github.com/mortenlj/yakup/blob/dependabot/cargo/opentelemetry-29a0f41c19/Earthfile