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

0.13: [Bug]: "garden run task" displays no output from the command unless verbose log level #4983

Closed
alexkuretz opened this issue Aug 24, 2023 · 1 comment · Fixed by #5059
Assignees
Labels
0.13 bug devex Developer experience and ease of use. papercut

Comments

@alexkuretz
Copy link

Garden Bonsai (0.13) Bug

Current Behavior

garden run task <taskname> shows no output from the command unless log level verbose or higher

Expected behavior

garden run task <taskname> shows output when run in garden 0.12.63

Reproducible example

kind: Module
type: exec
name: tests
include: []
tasks:
  - name: test
    command:
      - echo
      - "Hey there"
garden run task test
Running task fb-test 
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌍  Running in namespace user-alex in environment dev
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✔ garden-cloud              → Authorizing... → Done
✔ garden-cloud              → Initializing... → Ready
✔ providers                 → Getting status... → Cached
   ℹ Run with --force-refresh to force a refresh of provider statuses.
✔ graph                     → Resolving 11 modules... → Done
✔ fb-test                   → Checking result... → Done
✔ fb-scripts                → Building version v-1061e65cc7... → Done (took 0 sec)
✔ fb-test                   → [echo]: Hey there → Done (took 0.1 sec)

Task output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Hey there
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Done! 
garden run task fb-test
Run 
ℹ garden               → Running in Garden environment dev.user-alex
ℹ garden-cloud         → View command results at: https://andersonopt.app.garden/go/command/sNXxldmNU4

The run task command will be removed in Garden 0.14. Please use the run command instead.
ℹ providers            → Getting status...
✔ providers            → Cached (took 0.5 sec)
ℹ providers            → Run with --force-refresh to force a refresh of provider statuses.
ℹ graph                → Resolving actions and modules...
✔ graph                → Done (took 0.5 sec)
✔ build.tests     → Done (took 0 sec)
ℹ run.test          → Running...
✔ run.test          → Done (took 0.2 sec)

Done! 

Workaround

garden run task <taskname> --log-level 3

Suggested solution(s)

Show output when the task is run.

Additional context

Verbose is too noisy just to get the output from the task run.

stderr does appear to be displayed but not stdout.

I also tried converting our tasks to run actions and they work but still show no output.

Your environment

  • OS: WSL2 ubuntu 20.04
  • How I'm running Kubernetes: EKS but not relevant to this

Garden version

0.13.12

@vvagaytsev
Copy link
Collaborator

Thanks for reporting this @alexkuretz! We'll take a look.

@vvagaytsev vvagaytsev added bug regression A return to a previous and less advanced or worse state papercut labels Sep 4, 2023
@vvagaytsev vvagaytsev self-assigned this Sep 11, 2023
@vvagaytsev vvagaytsev added devex Developer experience and ease of use. and removed regression A return to a previous and less advanced or worse state labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.13 bug devex Developer experience and ease of use. papercut
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants