Fix UX issue when exec command fails to run as part of a deploy command#6673
Merged
openshift-merge-robot merged 1 commit intoredhat-developer:mainfrom Mar 23, 2023
Conversation
For the context, before the changes, the "Execution output" message was displayed on the same line as the spinner, e.g.: ``` ↪ Executing command: ◓ Executing command in container (command: exec-deploy)Execution output: /bin/sh: line 1: helm: command not found ✗ Executing command in container (command: exec-deploy) [8s] ✗ failed to execute (command: exec-deploy) ``` This is now fixed by ending the spinner as soon as possible, and then displaying the command output: ``` ↪ Executing command: ✗ Executing command in container (command: exec-deploy) [8s] Execution output: /bin/sh: line 1: helm: command not found ✗ failed to execute (command: exec-deploy) ```
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
|
Kudos, SonarCloud Quality Gate passed!
|
feloy
approved these changes
Mar 23, 2023
Member
Author
Flaky E2E test - reported in #6582 /override windows-integration-test/Windows-test |
|
@rm3l: Overrode contexts on behalf of rm3l: windows-integration-test/Windows-test DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








What type of PR is this:
/kind bug
/area UX
/area deploy
What does this PR do / why we need it:
I stumbled upon this issue while reviewing #6672.
Before the changes, the
Execution output:message was displayed on the same line as the spinner, like so:This is now fixed by ending the spinner as soon as the command is done, and then displaying the command output. Example output:
Which issue(s) this PR fixes:
Related to #5701
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: