-
Notifications
You must be signed in to change notification settings - Fork 12
runner: improve error logging #72
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
Conversation
b065b75 to
36f78c9
Compare
Pull Request Test Coverage Report for Build 14782896141Details
💛 - Coveralls |
b1368ed to
0f7c283
Compare
ran-arigur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Sam!
| e.runPass() | ||
| if err != nil && ctx.Err() != context.Canceled { | ||
| return err | ||
| return oops.Wrapf(err, "Executor failed to run task") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we try this out, and see what it looks like now when a task fails — preferably both in TUI mode and in non-TUI mode — just in case it turns out to be weird/bad/confusing in some way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this - this error will only show up in the non UI version of Taskrunner
github.com/samsarahq/taskrunner.(*Executor).runPass.(*Executor).runPass.func1.func2: Executor failed to run task "tr-error-test"
github.com/taskrunner/executor.go:648
golang.org/x/sync/errgroup.(*Group).Go.func1
/home/ubuntu/co/backend/go/pkg/mod/golang.org/x/sync@v0.0.0-20200317015054-43a5402ce75a/errgroup/errgroup.go:57
github.com/samsarahq/taskrunner.Run.func4: running executor
This clarifies some error messages, and provides the stack trace when taskrunner fails on execution.
0f7c283 to
4754024
Compare
ran-arigur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 🍋
This clarifies some error messages, and provides the stack trace when taskrunner fails on execution.