-
Notifications
You must be signed in to change notification settings - Fork 244
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
Cannot run odo init
interactively with custom verbosity level flag
#5513
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
rm3l
changed the title
Cannot run 'odo init' interactively with custom verbosity level flag
Cannot run Mar 3, 2022
odo init
interactively with custom verbosity level flag
rm3l
added a commit
to rm3l/odo
that referenced
this issue
Mar 3, 2022
This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513
rm3l
added a commit
to rm3l/odo
that referenced
this issue
Mar 3, 2022
This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513
rm3l
added a commit
to rm3l/odo
that referenced
this issue
Mar 4, 2022
This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513
rm3l
added a commit
to rm3l/odo
that referenced
this issue
Mar 4, 2022
This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513
rm3l
added a commit
to rm3l/odo
that referenced
this issue
Mar 7, 2022
This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513
rm3l
added a commit
to rm3l/odo
that referenced
this issue
Mar 7, 2022
This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513
openshift-merge-robot
pushed a commit
that referenced
this issue
Mar 7, 2022
* Add test specs meeting the acceptance criteria * Add welcoming messages to odo init * Purposely set the log level to 0 in the integration tests This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] #5513 * Make helper.RunInteractive log the command output in case unexpected errors occur This should hopefully help debug the CI issues * Initialize the test interactive command sub-process env with a copy of the current process env Otherwise, as was the case here, we might end up with cases where the first prompt displayed by an interactive command is the telemetry consent (unless the appropriate env var is set).
3 tasks
Repository owner
moved this from For Review
to Done
in odo v3-alpha1
Mar 29, 2022
cdrage
pushed a commit
to cdrage/odo
that referenced
this issue
Aug 31, 2022
* Add test specs meeting the acceptance criteria * Add welcoming messages to odo init * Purposely set the log level to 0 in the integration tests This is to check that the welcoming messages are the first to be displayed to the end users. Ideally, changing the log level would be done right at the command level in each of those tests (e.g.:, odo init -v 0), but this unfortunately cannot be done at this time due to [1]. [1] redhat-developer#5513 * Make helper.RunInteractive log the command output in case unexpected errors occur This should hopefully help debug the CI issues * Initialize the test interactive command sub-process env with a copy of the current process env Otherwise, as was the case here, we might end up with cases where the first prompt displayed by an interactive command is the telemetry consent (unless the appropriate env var is set).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/kind bug
What versions of software are you using?
Operating System:
Output of
odo version
:How did you run odo exactly?
odo init -v 4
Actual behavior
Expected behavior
Stumbled upon this while trying to debug a test for #5494. I tried to increase the verbosity level of the
odo init
command in interactive mode, but this returned an error.Unless I've missed something, I guess additional flags like
-v, --v Level
should be ignored when deciding which backend (interactive, flag or Alizer) to leverage.A workaround I found to be working at this time is to set the
ODO_LOG_LEVEL
environment variable instead, like so:Any logs, error output, etc?
There is no issue when running
odo init
in the non-interactive mode and a custom verbosity level flag set.The text was updated successfully, but these errors were encountered: