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

Fix odo create interactive mode #3437

Conversation

johnmcollier
Copy link
Member

@johnmcollier johnmcollier commented Jun 26, 2020

Signed-off-by: John Collier John.J.Collier@ibm.com

What type of PR is this?
/kind bug

What does does this PR do / why we need it:
This PR fixes interactive mode for devfiles. It seems a recent change that was delivered used a short assignment operator (:=) to assign a value to the catalogDevfileList variable, which caused a local-scoped version of it to get created in the if-block. This meant the value of catalogDevfileList couldn't be seen outside of the if-statement (despite the variable being declared outside it)

Which issue(s) this PR fixes:

Fixes #3436

How to test changes / Special notes to the reviewer:
odo create

Signed-off-by: John Collier <John.J.Collier@ibm.com>
Signed-off-by: John Collier <John.J.Collier@ibm.com>
@johnmcollier
Copy link
Member Author

/hold cause this directly conflicts with @maysunfaisal's command group PR #3291

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Jun 26, 2020
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign cdrage
You can assign the PR to them by writing /assign @cdrage in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@GeekArthur
Copy link
Contributor

Good catch, I can review and approve this once #3291 merges in.

@openshift-ci-robot
Copy link
Collaborator

@johnmcollier: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/v4.2-integration-e2e 680b29c link /test v4.2-integration-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@maysunfaisal
Copy link
Contributor

@johnmcollier this is actually getting fixed with #3291

@johnmcollier
Copy link
Member Author

@maysunfaisal Ah, good catch. But, interactive mode is broken on your PR it seems:
Screen Shot 2020-06-26 at 5 53 44 PM

@johnmcollier
Copy link
Member Author

johnmcollier commented Jun 26, 2020

@maysunfaisal I've updated the PR description for #3291 to include #3436 as a fixed issue.

@maysunfaisal
Copy link
Contributor

@johnmcollier yeah I should have opened issues earlier to keep track. There was one more issue with interactive mode that I am forgetting but its fixed by #3291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

odo create interactive mode is broken for devfiles
4 participants