You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When using Dagger interactively, feedback about what is happening could reduce confusion. #4820
There's also a DX issue in that there's nothing in the logs that's telling you what dagger is doing. It just look like it hangs. I get half a gigabit so the delay in feedback only lasts a few seconds at most, but for my colleague it was a minute + of nothing and then 💥. Try throttling your download speed to something uber low and you'll see what I mean
I have a hypothesis (now confirmed a bit ☝️) that lack of feedback for multi-second spans of time is confusing for users and that they'd benefit from feedback like
@helderco has already implemented a progress spinner in the Python SDK:
Making it available on all SDKs would be a first step towards a better DX. WDYT ?
It might also become obsolete if dagger run becomes the de-facto entry point when running a pipeline cc @vito
That spinner isn't implemented by the Python SDK, it's just using a third-party library: rich. Like Mage (Go) and Typer (Python) on making an entrypoint, every SDK would need to come up with their own solution.
So the rich example shown can be used for progress during provisioning (which doesn't happen with dagger run), and it can be improved. However to include also progress from the engine, we would need structured logging.
This has been reported here (not specific to Python actually, it could be generalized):
As a short-term solution, we should print the lines that @jpadams is suggesting in all SDKs. When entrypoints / dagger run lands, this will not be a problem anymore, but from the perspective of a small improvement, this is still worth doing.
As a short-term solution, we should print the lines that @jpadams is suggesting in all SDKs. When entrypoints / dagger run lands, this will not be a problem anymore, but from the perspective of a small improvement, this is still worth doing.
When running with the CLI, you already have early feedback with Progrock (dagger run, Zenith, etc...). The lack of early feedback comes from using automatic provisioning in the SDKs. So I'd say #5488 isn't just a short-term solution, it's a fix for this issue.
Additionally, this is actually a duplicate of #4456 so we should close this one, and link the PR to the earlier one.
EDIT: Or the inverse. This one is newer but is more accurately described.
Activity
grouville commentedon Apr 17, 2023
@helderco has already implemented a progress spinner in the Python SDK:
Making it available on all SDKs would be a first step towards a better DX. WDYT ?
It might also become obsolete if
dagger runbecomes the de-facto entry point when running a pipeline cc @vitohelderco commentedon Apr 17, 2023
That spinner isn't implemented by the Python SDK, it's just using a third-party library: rich. Like Mage (Go) and Typer (Python) on making an entrypoint, every SDK would need to come up with their own solution.
So the rich example shown can be used for progress during provisioning (which doesn't happen with
dagger run), and it can be improved. However to include also progress from the engine, we would need structured logging.This has been reported here (not specific to Python actually, it could be generalized):
However let's see if
dagger runcan be good enough for this.gerhard commentedon May 16, 2023
As a short-term solution, we should print the lines that @jpadams is suggesting in all SDKs. When entrypoints /
dagger runlands, this will not be a problem anymore, but from the perspective of a small improvement, this is still worth doing.helderco commentedon Jul 28, 2023
When running with the CLI, you already have early feedback with Progrock (
dagger run, Zenith, etc...). The lack of early feedback comes from using automatic provisioning in the SDKs. So I'd say #5488 isn't just a short-term solution, it's a fix for this issue.Additionally, this is actually a duplicate of #4456 so we should close this one, and link the PR to the earlier one.
EDIT: Or the inverse. This one is newer but is more accurately described.
TomChv commentedon Jul 28, 2023
@helderco The PR is ready btw, if you to merge the fix :)
feat: improve engine session loading
feat: improve engine session loading logging (#5488)
helderco commentedon Jul 31, 2023
@jpadams can you confirm that these changes solve this issue?
TomChv commentedon Aug 18, 2023
@jpadams I'm closing this issue for now since we add nice improvement to the logging, feel free to reopen it if you have new suggestions of logging 🚀