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

Launchpad reset debug level output interferes with command output #555

Open
james-nesbitt opened this issue Feb 4, 2025 · 3 comments
Open

Comments

@james-nesbitt
Copy link
Collaborator

james-nesbitt commented Feb 4, 2025

That DEBU getting launchpad release information for version v1.5.8 seems to be interfering with where one would expect to be entering either y or n.

After entering y and hitting enter, this is what the user sees:

❯ launchpad_1.5.9-alpha1 reset -d
DEBU checking for a launchpad upgrade
DEBU getting launchpad tag list
? Going to reset all of the hosts, which will destroy all configuration and data, Are you sure? (y/N) DEBU getting launchpad release information for version v1.5.8
? Going to reset all of the hosts, which will destroy all configuration and data, Are you sure? Yes

reported: @quadespresso
internal: PRODENG-2706

@james-nesbitt
Copy link
Collaborator Author

james-nesbitt commented Feb 7, 2025

The issue is caused by the fact that the version check for launchpad is split into an early goroutine with a late comparison. The early goroutine message overlaps with the main thread's check for force.

The issue can be worked around by one of the following options:

  1. disable the upgrade check using the command line argument
  2. run launchpad with the force option (the confirmation message doesn't show up)
  3. don't run launchpad in verbose/debug mode.

The issue can be resolved through one of the following:

  1. change the order of "Before" Operations for the reset command to run the "force check" before the "upgrade check" so that the confirmation message appears before the upgrade check messages are created
  2. disable the automatic version upgrade check (default to off)
  3. disable the version check debug output

Breakdown:

@james-nesbitt
Copy link
Collaborator Author

Most likely I will go for the first resolution.

I won't worry about re-ordering for all of the commands, as this is the only command with such an early confirmation.

@james-nesbitt
Copy link
Collaborator Author

#556 is an attempt to deliver the 1st solution.

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

No branches or pull requests

1 participant