-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
compose plugin id #14063
compose plugin id #14063
Conversation
Can one of the admins verify this PR? |
ci-build |
...-workspace/src/main/java/org/eclipse/che/api/workspace/server/wsplugins/model/ChePlugin.java
Outdated
Show resolved
Hide resolved
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.
In general, looks good.
Please consider adding java doc to PluginFqn, ExtendedFqn and describe that getId() and other methods may return null and when.
Also, since getId() may return null, maybe it makes sense to add null check in invocation places, like this https://github.com/eclipse/che/blob/f601f1652795048641001387c1ef13192f38a224/wsmaster/che-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile/convert/component/editor/EditorComponentToWorkspaceApplier.java#L102?
@sleshchenko both |
@sparkoo Could you provide Runtime JSON? |
Runtime JSON"runtime": {
"machines": {
"theia-idecdb": {
"attributes": {
"memoryLimitBytes": "512000000",
"memoryRequestBytes": "512000000",
"source": "tool",
"plugin": "eclipse/che-theia/next"
},
"servers": {
"theia-dev": {
"url": "http://servers0k6t8yp-theia-idecdb-server-3130.192.168.99.105.nip.io/",
"attributes": {
"internal": "false",
"type": "ide-dev",
"port": "3130",
"discoverable": "false"
},
"status": "UNKNOWN"
},
"theia": {
"url": "http://servers0k6t8yp-theia-idecdb-server-3100.192.168.99.105.nip.io/",
"attributes": {
"internal": "false",
"port": "3100",
"discoverable": "false",
"cookiesAuthEnabled": "true",
"type": "ide",
"secure": "true"
},
"status": "RUNNING"
},
"theia-redirect-3": {
"url": "http://servers0k6t8yp-theia-idecdb-server-13133.192.168.99.105.nip.io/",
"attributes": {
"internal": "false",
"port": "13133",
"discoverable": "false"
},
"status": "UNKNOWN"
},
"theia-redirect-2": {
"url": "http://servers0k6t8yp-theia-idecdb-server-13132.192.168.99.105.nip.io/",
"attributes": {
"internal": "false",
"port": "13132",
"discoverable": "false"
},
"status": "UNKNOWN"
},
"theia-redirect-1": {
"url": "http://servers0k6t8yp-theia-idecdb-server-13131.192.168.99.105.nip.io/",
"attributes": {
"internal": "false",
"port": "13131",
"discoverable": "false"
},
"status": "UNKNOWN"
}
},
"status": "RUNNING"
},
"vscode-javain7": {
"attributes": {
"memoryLimitBytes": "1572864000",
"memoryRequestBytes": "1572864000",
"source": "tool",
"plugin": "redhat/java/latest"
},
"status": "RUNNING"
},
"che-machine-execxhu": {
"attributes": {
"memoryLimitBytes": "134217728",
"memoryRequestBytes": "134217728",
"source": "tool",
"plugin": "eclipse/che-machine-exec-plugin/0.0.1"
},
"servers": {
"che-machine-exec": {
"url": "ws://serverw6uxhkan-che-machine-execxhu-server-4444.192.168.99.105.nip.io/",
"attributes": {
"internal": "false",
"type": "terminal",
"port": "4444",
"discoverable": "false"
},
"status": "UNKNOWN"
}
},
"status": "RUNNING"
},
"mysql": {
"attributes": {
"memoryLimitBytes": "268435456",
"memoryRequestBytes": "268435456",
"source": "recipe"
},
"status": "RUNNING"
},
"tools": {
"attributes": {
"memoryLimitBytes": "734003200",
"memoryRequestBytes": "734003200",
"source": "recipe"
},
"servers": {
"8080/tcp": {
"url": "http://serveriaa5xtix-tools-server-8080.192.168.99.105.nip.io/",
"attributes": {
"port": "8080"
},
"status": "UNKNOWN"
}
},
"status": "RUNNING"
}
},
"activeEnv": "default",
"commands": [
{
"commandLine": "mvn clean install",
"name": "maven build",
"attributes": {
"componentAlias": "tools",
"machineName": "tools",
"workingDir": "${CHE_PROJECTS_ROOT}/web-java-spring-petclinic"
},
"type": "exec"
},
{
"commandLine": "SPRING_DATASOURCE_URL=jdbc:mysql://db/petclinic SPRING_DATASOURCE_USERNAME=petclinic SPRING_DATASOURCE_PASSWORD=password java -jar -Dspring.profiles.active=mysql target/*.jar\n",
"name": "run webapp",
"attributes": {
"componentAlias": "tools",
"machineName": "tools",
"workingDir": "${CHE_PROJECTS_ROOT}/web-java-spring-petclinic"
},
"type": "exec"
},
{
"commandLine": "/opt/rh/rh-mysql57/root/usr/bin/mysql -u root < ${CHE_PROJECTS_ROOT}/web-java-spring-petclinic/src/main/resources/db/mysql/schema.sql &&\necho -e \"\\e[32mDone.\\e[0m Database petclinic was configured!\"\n",
"name": "prepare database",
"attributes": {
"componentAlias": "mysql",
"machineName": "mysql"
},
"type": "exec"
},
{
"commandLine": "echo hello",
"name": "testtest",
"attributes": {
"componentAlias": "theia-editor",
"plugin": "eclipse/che-theia/next",
"machineName": "theia-idecdb"
},
"type": "exec"
}
],
"machineToken": ""
}, |
ci-build |
ci-test |
1 similar comment
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
ci-test |
I've updated PR to compose plugin id at it's creation time rather than in getter. I'd rather keep entity class clean as possible. |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
...ce/src/main/java/org/eclipse/che/api/workspace/server/wsplugins/model/ExtendedPluginFQN.java
Outdated
Show resolved
Hide resolved
Do not merge to master, the related issue is added to milestone |
Do we have an estimate when 7.0.0 will happen? It would be unfortunate if we have many PRs in this "do not merge yet" state. |
@sparkoo we will do the release as soon as all blockers with milestone But otherwise we should stick to the process. For your info the issue was labelled |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
LGTM. Is there a way to add a unit test? |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
…e doc Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
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.
LGTM
@sleshchenko, @sparkoo: FYI: |
Signed-off-by: Michal Vala mvala@redhat.com
What does this PR do?
Compose plugin id in
ExtendedPluginFQN
andChePlugin
when all parts are known. First caused NPE, second that task was not properly configured to one particular component, but was present in all components.What issues does this PR fix or reference?
#13842
How to test
here's simple devfile
che-server image with PR changes
quay.io/mvala/che-server:npefix