Skip to content

dagger plan command #2335

Closed as not planned
Closed as not planned

Description

@aluzzardi

I think a command to introspect the plan would be very useful (e.g. similar to terraform plan).

This would:

  • Load and validate the plan
  • Print the DAG and its dependencies

This would help:

  • Navigating the plan: dagger do --help kinda does that, but it's one dimensional
  • Figure out action dependencies
  • Potentially output different formats (e.g. dot file use with graphviz)

cc @dagger/maintainers thoughts?

Activity

  1. jlongtine commented on Apr 29, 2022

    @jlongtine
    Contributor

    I like this idea. A bit concerned about dynamically generated actions (once we figure out how to do that nicely with cue/flow), because I don't see how we could do this well in that case.

    But being able to see what is going to run, including having visual representations of it... would be sick.

  2. jpluscplusm commented on May 8, 2022

    @jpluscplusm
    Contributor

    As useful as dagger plan would be, I think a lot of the benefit could be won for (I /think/!) somewhat less effort: adding a --all or --recursive flag to dagger do --help, that walks the tree and pretty-prints all the runnable actions+doc-comments that are present in the Plan.

    I.e. exactly as dagger do [action] --help does right now, but /not/ stopping at the level of the DAG that the user indicated.

  3. samalba commented on May 10, 2022

    @samalba
    Contributor

    I agree with need something like this to introspect the DAG without running it. As an alternative, it could be a simple dagger do [action] --dry-run instead of a new command. The plan will need an optional action name since technically, each action is a distinct DAG.

  4. shykes commented on May 10, 2022

    @shykes
    Contributor

    Could this be part of #2331 ?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions