-
Notifications
You must be signed in to change notification settings - Fork 92
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
Declare missing debug endpoints #122
Conversation
Hi @rm3l. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
558aaf4
to
9ca3a12
Compare
cc @kadel |
/ok-to-test |
366c6d0
to
adca148
Compare
Any idea why the
|
7a02745
to
b30c890
Compare
b30c890
to
e267bfe
Compare
@rm3l: The following test failed, say
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. |
/retest |
e267bfe
to
b5da4b2
Compare
@rm3l can you rebase please when you get the chance? |
This adds missing debug endpoints in Devfiles where a debug command is declared and expected to be listening on the debug port (injected via the DEBUG_PORT environment variable). This is required in tools like odo, so the endpoint can be detected and port-forwarded using "odo dev --debug". Also, Che is already having such endpoint for debug as well. See https://github.com/devspaces-samples/quarkus-quickstarts/blob/devspaces-3-rhel-8/devfile.yaml?rgh-link-date=2022-09-14T08%3A11%3A25Z#L12-L15 Signed-off-by: Armel Soro <asoro@redhat.com>
Signed-off-by: Armel Soro <asoro@redhat.com>
b5da4b2
to
742559b
Compare
…priate endpoints Signed-off-by: Armel Soro <asoro@redhat.com>
742559b
to
eed66a4
Compare
@ajm01 @BethGriggs Can you please review the stacks you own in this PR that were changed. Thanks |
Noticed the following errors reported by the
@kadel Do you think it makes sense to make |
yes that makes sense, I was also considering simply excluding all ports named |
#139 should address failing odo v3 failing tests. |
Signed-off-by: Tomas Kral <tkral@redhat.com>
@BethGriggs @scottkurz @ajm01 just following up one last time for reviews. If there's no reviews by end of week, we'll merge this PR in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, just noticed this. For Liberty, LGTM. I haven't tried it or followed the conversation, but just on face value it certainly seems to line up with the underlying command: -DdebugPort=${DEBUG_PORT}
(for Maven), etc.
@scottkurz: changing LGTM is restricted to collaborators In 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BethGriggs, kadel, rm3l, scottkurz 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 |
What does this PR do?:
This adds missing debug endpoints in Devfiles where a debug command is declared and expected to be listening on the debug port (injected via the
DEBUG_PORT
environment variable).This is required in tools like
odo
, so the endpoint can be detected and port-forwarded usingodo dev --debug
. See redhat-developer/odo#5988I've tested this in other tools like Dev Spaces, where I noticed that some of the Devfiles used there are already declaring such endpoints, e.g.: https://github.com/devspaces-samples/quarkus-quickstarts/blob/devspaces-3-rhel-8/devfile.yaml#L12-L15
Which issue(s) this PR fixes:
Fixes redhat-developer/odo#5988
PR acceptance criteria:
Have you read the devfile registry contributing guide and followed its instructions?
Does this repository's tests pass with your changes?
Does any documentation need to be updated with your changes?
Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)
How to test changes / Special notes to the reviewer:
I manually ran the
tests/test.sh
script (usingodo
2.5.1) against both Minikube and OpenShift clusters. I had to adapt the logic that callsodo url create
to dynamically find the endpoints ports, instead of hardcoding for some stacks, or lettingodo
determine the port (which it would not be able to do because we may now have multiple endpoints).