Skip to content

When using Dagger interactively, feedback about what is happening could reduce confusion. #4820

Closed

Description

@jpadams

From user:

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

Dagger Engine downloading...
Dagger Engine starting...
...
Existing Dagger Engine found...
...

Activity

  1. grouville commented on Apr 17, 2023

    @grouville
    Member

    @helderco has already implemented a progress spinner in the Python SDK:

    Image

    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

  2. helderco commented on Apr 17, 2023

    @helderco
    Contributor

    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 run can be good enough for this.

  3. gerhard commented on May 16, 2023

    @gerhard
    Contributor

    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.

  4. self-assigned this
    on Jul 3, 2023
  5. helderco commented on Jul 28, 2023

    @helderco
    Contributor

    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.

  6. TomChv commented on Jul 28, 2023

    @TomChv
    Member

    @helderco The PR is ready btw, if you to merge the fix :)

  7. helderco commented on Jul 31, 2023

    @helderco
    Contributor
  8. TomChv commented on Aug 18, 2023

    @TomChv
    Member

    @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 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions