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

Improve logging and error handling #888

Open
12 tasks
matejchalk opened this issue Dec 5, 2024 · 0 comments
Open
12 tasks

Improve logging and error handling #888

matejchalk opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
🧩 cli 🧩 utils 🤓 UX UX improvement for CLI users

Comments

@matejchalk
Copy link
Collaborator

matejchalk commented Dec 5, 2024

The problem

Users have a hard time setting up our CLI and plugins on their own.

Error handling

  • Users have a hard time understanding errors from the CLI.
  • Errors don't give hints on how to fix them.
  • It often isn't clear in which step an error occurred.
  • Debugging errors using --verbose flag is of very little help, as this log level is barely used.
  • Some errors are unnecessarily verbose (e.g. Zod schema validation).
  • Output and error streams from executed processes are often silenced unless there's an error, hiding potentially valuable information.

Logging

  • The only progress indicator is a progress bar which is supposed to update discretely whenever a plugin is finished running (but has actually been broken for a long time, so it just skips to 100% immediately).
  • For long-running plugin execution, there's no way for a user to tell if something is still happening or if it's hanging.
  • Aside from the final report, very little information is logged about what the CLI is doing. This lack of transparency contributes to users struggling to understand where an error came from, as well as how the CLI is supposed to work in general.
  • The progress bar also causes strange UI side-effects (scrolling logs out of viewport), is difficult to test and isn't suitable for logging in CI pipelines.

Proposed solution

Inspiration

stdout.webm
@matejchalk matejchalk added 🤓 UX UX improvement for CLI users 🧩 cli 🧩 utils labels Dec 5, 2024
@matejchalk matejchalk self-assigned this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧩 cli 🧩 utils 🤓 UX UX improvement for CLI users
Projects
None yet
Development

No branches or pull requests

1 participant