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

Hide duplicate exit code log message #6203

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Aug 20, 2023

Implementation of proposal 2 from #6192

Changing a log message from Error to Debug to prevent it from being printed twice.

I tested this with the following resource:

  • local - does not appear to run this code path, the error output from a failure has not changed
  • local_resource - was printing the error twice, and now only prints it once
  • custom_build - was printing the error twice, and now only prints it once
  • k8s_custom_deploy - still prints the full command and stdout, not sure if it changed

The call graph looks something like this:

flowchart TD
cmd.Controller.Reconcile --> cmd.Controller.runInternal
cmd.Controller.ForceRun --> cmd.Controller.runInternal
cmd.Controller.runInternal --> 
processExecer.Start --> processExecer.processRun
Loading

runInternal handles the status from processRun by calling processStatuses, which updates CmdStatus.Terminated.

Is there anything else I can do to track down which other functions use the cmd.Controller ? So far it seems like everything still prints the result correctly.

@dnephin dnephin force-pushed the remove-extra-exit-code-log branch from 81d3a0b to 38f4143 Compare August 20, 2023 19:41
@dnephin
Copy link
Contributor Author

dnephin commented Aug 20, 2023

k8s_custom_deploy is the other one that may use this code path.

Copy link
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nicks nicks merged commit acb948b into tilt-dev:master Aug 25, 2023
@dnephin dnephin deleted the remove-extra-exit-code-log branch August 25, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants