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

Support Alizer-based automatic port detection with odo init interactive mode #6365

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Nov 30, 2022

What type of PR is this:
/kind feature
/area init

What does this PR do / why we need it:
This bumps the Alizer library to a more recent commit, in order to benefit from automatic port detection when running odo init interactively from a directory with source code.
More details and context in #5863

Which issue(s) this PR fixes:
Fixes #5863

PR acceptance criteria:

How to test changes / Special notes to the reviewer:

How port detection works is explained in detail in this document.

@openshift-ci openshift-ci bot added 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 Nov 30, 2022
@openshift-ci
Copy link

openshift-ci bot commented Nov 30, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@netlify
Copy link

netlify bot commented Nov 30, 2022

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit e82b0a0
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/638e462ef250c000080a0bf7
😎 Deploy Preview https://deploy-preview-6365--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@rm3l rm3l added kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation area/init Issues or PRs related to `odo init` labels Nov 30, 2022
@rm3l rm3l changed the title Support Alizer-based automatic port detection with 'odo init' interactive mode Support Alizer-based automatic port detection with odo init interactive mode Nov 30, 2022
@rm3l rm3l force-pushed the 5863-odo-init-interactive-mode-automatic-port-detection-based-on-alizer-detection branch from 9bf3883 to 2063b32 Compare November 30, 2022 17:13
@odo-robot
Copy link

odo-robot bot commented Nov 30, 2022

Validate Tests on commit 0208931 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Nov 30, 2022

NoCluster Tests on commit 0208931 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Nov 30, 2022

Unit Tests on commit 0208931 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Nov 30, 2022

Kubernetes Tests on commit 0208931 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Nov 30, 2022

Windows Tests (OCP) on commit 0208931 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Nov 30, 2022

OpenShift Tests on commit 0208931 finished successfully.
View logs: TXT HTML

@rm3l rm3l force-pushed the 5863-odo-init-interactive-mode-automatic-port-detection-based-on-alizer-detection branch from 2063b32 to 4f0b8ed Compare December 1, 2022 07:06
@rm3l rm3l marked this pull request as ready for review December 1, 2022 09:30
@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 Dec 1, 2022
@rm3l rm3l requested a review from valaparthvi December 1, 2022 09:31
Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this work.
Just a little note below

pkg/init/backend/applicationports.go Outdated Show resolved Hide resolved
@rm3l rm3l requested a review from feloy December 1, 2022 16:02
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 1, 2022
@feloy feloy closed this Dec 1, 2022
@feloy feloy reopened this Dec 1, 2022
@feloy feloy closed this Dec 1, 2022
@feloy feloy reopened this Dec 1, 2022
@rm3l rm3l closed this Dec 1, 2022
@rm3l rm3l reopened this Dec 1, 2022
@rm3l rm3l closed this Dec 5, 2022
@rm3l rm3l reopened this Dec 5, 2022
@valaparthvi valaparthvi closed this Dec 5, 2022
@valaparthvi valaparthvi reopened this Dec 5, 2022
@feloy feloy closed this Dec 5, 2022
@feloy feloy reopened this Dec 5, 2022
@feloy feloy closed this Dec 5, 2022
@feloy feloy reopened this Dec 5, 2022
@rm3l
Copy link
Member Author

rm3l commented Dec 5, 2022

/hold

Waiting for #6378 to be merged. It bumped Alizer to a more recent commit.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Dec 5, 2022
This is because we specifically need to display the ports
at the same moment when the language, project type and Devfile
are displayed to the end user (when source code is present)
…prior to asking for its customization

The case of multi-container components will be handled in [1].
Otherwise, the container component ports (all but the Debug ports) are replaced with the right application ports.

[1] redhat-developer#6264
This allows such ports to be port-forwarded first, before the Debug ones.
@rm3l rm3l force-pushed the 5863-odo-init-interactive-mode-automatic-port-detection-based-on-alizer-detection branch from ff4083c to e82b0a0 Compare December 5, 2022 19:27
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 5, 2022
@sonarcloud
Copy link

sonarcloud bot commented Dec 5, 2022

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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rm3l
Copy link
Member Author

rm3l commented Dec 5, 2022

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Dec 5, 2022
@feloy feloy self-requested a review December 6, 2022 07:46
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 6, 2022
@feloy
Copy link
Contributor

feloy commented Dec 6, 2022

/override ci/prow/v4.11-integration-e2e
Pass on IBM Cloud

@openshift-ci
Copy link

openshift-ci bot commented Dec 6, 2022

@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.11-integration-e2e

In response to this:

/override ci/prow/v4.11-integration-e2e
Pass on IBM Cloud

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.

@openshift-merge-robot openshift-merge-robot merged commit 3c87ecd into redhat-developer:main Dec 6, 2022
@rm3l rm3l deleted the 5863-odo-init-interactive-mode-automatic-port-detection-based-on-alizer-detection branch December 6, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/init Issues or PRs related to `odo init` kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation 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.

odo init interactive mode: Automatic port detection based on Alizer detection
4 participants