-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[supervisor] localify struct of ports sort #14070
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
Conversation
started the job as gitpod-build-hw-sort-local.1 because the annotations in the pull request description changed |
/werft run 👍 started the job as gitpod-build-hw-sort-local.2 |
continue | ||
} | ||
res = append(res, portStatus) | ||
res = append(res, pm.getPortStatus(port)) |
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.
Filtering maybe is alright just we need to keep public ports always
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.
It means, port will be gone if user switches a public not served port to private. 🤔
see also #13788 (comment)
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.
Ok, let’s keep it.
Another approach it is to filter ports which can be only local, ie nodejs debug ports. But I’m not sure how it can achieved on supervisor level. VS Code extensions certainly know it.
9525cd0
to
3b70fd7
Compare
@mustard-mh Did we add unit tests for sorting? Why don't they catch cases when configured ports are changing? |
@akosyakov It should work now after the last commit. cc @iQQBot this fixes the issue you faced |
/hold To squash commits |
/werft run 👍 started the job as gitpod-build-hw-sort-local.6 |
To reduce conflict, I created a temp PR #14079 (see its last commit) to remove Conflict i.e. ports ( We can only respond with ports that exist in the current instance's @akosyakov Is it good for you? then I will cherry-pick it in this PR, squash commits, and mark this PR as ready |
Don't understand. This PR fixes unnecessary changes to Gitpod protocol? And we fix order with another PR? It is fine with me. |
@akosyakov We have watched (
That means, if we have a branch, with port 3000 defined in So, we can remove everything related to I don't quite sure if you agree with it (remove |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Related Issue(s)
Fixes #
How to test
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide