Skip to content

Commit

Permalink
Give launcher interactive enough time to run during doctor (#1958)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Nov 15, 2024
1 parent ff59366 commit b97f6a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ee/debug/checkups/checkups.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func RunDoctor(ctx context.Context, k types.Knapsack, w io.Writer) {
warningCheckups := []string{}

for _, c := range checkupsFor(k, doctorSupported) {
ctx, cancel := context.WithTimeout(context.TODO(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.TODO(), 20*time.Second)
defer cancel()

doctorCheckup(ctx, c, w)
Expand Down
2 changes: 1 addition & 1 deletion ee/debug/checkups/osquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (o *osqueryCheckup) interactive(ctx context.Context) error {
out, err := cmd.CombinedOutput()
o.executionTimes[cmd.String()] = fmt.Sprintf("%d ms", time.Now().UnixMilli()-startTime)
if err != nil {
return fmt.Errorf("running %s interactive: err %w, output %s", launcherPath, err, string(out))
return fmt.Errorf("running %s interactive: err %w, output %s; ctx err: %+v", launcherPath, err, string(out), cmdCtx.Err())
}

return nil
Expand Down

0 comments on commit b97f6a9

Please sign in to comment.