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

Removing unused flags in link command #5070

Merged

Conversation

mohammedzee1000
Copy link
Contributor

What type of PR is this?
/kind cleanup

What does this PR do / why we need it:
See title

Which issue(s) this PR fixes:

Fixes #4889

PR acceptance criteria:

How to test changes / Special notes to the reviewer:
WIP

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. kind/cleanup labels Sep 14, 2021
@mohammedzee1000 mohammedzee1000 force-pushed the link_unused_flags branch 2 times, most recently from ea66099 to b4d91e2 Compare September 20, 2021 06:10
@mohammedzee1000 mohammedzee1000 changed the title WIP Removing unused flags in link command Removing unused flags in link command Sep 20, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Sep 20, 2021
@@ -97,25 +91,10 @@ func (o *commonLinkOptions) complete(name string, cmd *cobra.Command, args []str
return o.completeForOperator()
Copy link
Contributor

Choose a reason for hiding this comment

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

As an envSpecificInfo is now expected in all cases, you could write instead:

if o.Context.EnvSpecificInfo == nil {
		return fmt.Errorf("failed to find environment info")
}

return o.completeForOperator()

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 20, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

@mohammedzee1000
Copy link
Contributor Author

[ssh:Fedora-32-minikube] ------------------------------
[ssh:Fedora-32-minikube] • Failure in Spec Setup (BeforeEach) [6.293 seconds]
[ssh:Fedora-32-minikube] odo devfile push command tests
[ssh:Fedora-32-minikube] /home/fedora/amqp_ci_rcv_odo-minikube-pr-build_PR_5070/LoIpj/repo/tests/integration/devfile/cmd_devfile_push_test.go:18
[ssh:Fedora-32-minikube]   when creating a nodejs component
[ssh:Fedora-32-minikube]   /home/fedora/amqp_ci_rcv_odo-minikube-pr-build_PR_5070/LoIpj/repo/tests/integration/devfile/cmd_devfile_push_test.go:35
[ssh:Fedora-32-minikube]     when project and clonePath is present in devfile and doing odo push [BeforeEach]
[ssh:Fedora-32-minikube]     /home/fedora/amqp_ci_rcv_odo-minikube-pr-build_PR_5070/LoIpj/repo/tests/integration/devfile/cmd_devfile_push_test.go:245
[ssh:Fedora-32-minikube]       should sync to the correct dir in container
[ssh:Fedora-32-minikube]       /home/fedora/amqp_ci_rcv_odo-minikube-pr-build_PR_5070/LoIpj/repo/tests/integration/devfile/cmd_devfile_push_test.go:253
[ssh:Fedora-32-minikube] 
[ssh:Fedora-32-minikube]       No future change is possible.  Bailing out early after 0.235s.
      
[ssh:Fedora-32-minikube]       Running odo with args [odo create nodejs --project cmd-devfile-push-test253rln smeatl]
[ssh:Fedora-32-minikube]       Expected
[ssh:Fedora-32-minikube]           <int>: 1
[ssh:Fedora-32-minikube]       to match exit code:
[ssh:Fedora-32-minikube]           <int>: 0
[ssh:Fedora-32-minikube] 
[ssh:Fedora-32-minikube]       /home/fedora/amqp_ci_rcv_odo-minikube-pr-build_PR_5070/LoIpj/repo/tests/helper/helper_cmd_wrapper.go:99
[ssh:Fedora-32-minikube] ------------------------------
[ssh:Fedora-32-minikube] •

fail seems unrelated to changes
/retest

@openshift-ci
Copy link

openshift-ci bot commented Sep 21, 2021

@mohammedzee1000: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/psi-k8s-ibmc-integration-e2e e139de9 link false /test psi-k8s-ibmc-integration-e2e

Full PR test history. Your PR dashboard.

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.

@feloy
Copy link
Contributor

feloy commented Sep 21, 2021

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Sep 21, 2021
@openshift-ci
Copy link

openshift-ci bot commented Sep 21, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feloy

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Sep 21, 2021
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 75f1be6 into redhat-developer:main Sep 21, 2021
@rm3l rm3l added the area/refactoring Issues or PRs related to code refactoring label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. area/refactoring Issues or PRs related to code refactoring lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove unused flags under odo link and odo unlink commands
5 participants