-
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
[WIP] Hackathon merge #3013
[WIP] Hackathon merge #3013
Conversation
Change-Id: I8383847bbba3b8932e4a10492642c67d37d4efb8 Signed-off-by: Florent BENOIT <[email protected]>
Change-Id: Ie21c57bf60bd482b2752e00bc1a8b08db5e71afd Signed-off-by: Florent BENOIT <[email protected]>
…r "mounted" path Change-Id: I5004b5344a708dc6985e76ded80edd033a747fc6 Signed-off-by: Florent BENOIT <[email protected]>
Change-Id: I4f1c3474387fe90f07a30a1af036773883e6c67e Signed-off-by: Florent BENOIT <[email protected]>
Signed-off-by: Oleksii Kurinnyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
import static java.lang.String.format; | ||
|
||
/** | ||
* @author Alexander Garagatyi |
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.
There is nothing about what this class does
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.
Yes, I'll fix that. It is because this PR is still in WIP
@@ -44,10 +44,10 @@ public AgentImpl(String id, | |||
this.name = name; | |||
this.version = version; | |||
this.description = description; | |||
this.dependencies = dependencies; | |||
this.properties = properties; | |||
this.dependencies = dependencies != null ? dependencies : new ArrayList<>(); |
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.
getters are doing this check so it looks odd to have it at both places
if it's immutable it should be Collection.emptyList()
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.
firstNotNull?
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.
Getters have a bug, I'll rewrite them. The bug is that they return mutable collection that doesn't influence their state.
Build # 951 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/951/ to view the results. |
Signed-off-by: Alexander Garagatyi <[email protected]>
@skabashnyuk @evoevodin @mshaposhnik @sleshchenko Please review |
// check and replace only occurrence of ":" after disk label on Windows host (e.g. C:/) | ||
// but keep other occurrences it can be marker for docker mount volumes | ||
// (e.g. /path/dir/from/host:/name/of/dir/in/container ) | ||
esc = path.replaceFirst(":", "").replace('\\', '/'); |
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.
Doesn't like File.separator :) ?
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's not my code. And I don't want to introduce here additional changes in this PR because it will delay merge significantly.
CHE-2454: add replacing of double underscores Add replacing of double underscores in environment variable name with single underscore in che application variable name. Signed-off-by: Alexander Garagatyi <[email protected]>
@@ -139,6 +139,10 @@ | |||
<Host name="localhost" appBase="webapps" | |||
unpackWARs="true" autoDeploy="false"> | |||
|
|||
|
|||
<!-- Provide Che Agent binaries (like workspace agent, terminal) --> | |||
<Context docBase="${che.home}/lib" path="/agent-binaries" /> |
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.
I propose to use separate folder for that. Let's call it /agent-binaries
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.
separate folder by duplicating the existing binaries ? because agents are inside CHE_HOME/lib for now
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.
I suppose that we can move agents binaries to any folder, no?
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.
I propose to move agents away from /lib
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.
I'm ok but it might take some time to validate this change no ?
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.
@skabashnyuk are you ok if we postpone that and do after merging that PR?
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.
yes
package org.eclipse.che.commons.lang.os; | ||
|
||
/** | ||
* Escapes Windows path to unix-style path. |
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.
what for?
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 is used in several places in around docker usage in both Che and Codenvy. I think it is time to move that code in a single place since it is bad practice to use the same private methods in several classes.
@@ -44,10 +44,10 @@ public AgentImpl(String id, | |||
this.name = name; | |||
this.version = version; | |||
this.description = description; | |||
this.dependencies = dependencies; | |||
this.properties = properties; | |||
this.dependencies = dependencies != null ? dependencies : new ArrayList<>(); |
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.
firstNotNull?
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/957/ |
Build # 962 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/962/ to view the results. |
Signed-off-by: Alexander Garagatyi <[email protected]>
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/966/ |
Signed-off-by: Vitalii Parfonov <[email protected]>
Build # 976 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/976/ to view the results. |
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Signed-off-by: Alexander Garagatyi <[email protected]>
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/977/ |
Signed-off-by: Alexander Garagatyi <[email protected]>
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/983/ |
Signed-off-by: Alexander Garagatyi <[email protected]>
Build # 997 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/997/ to view the results. |
Refactors workspace bootstrapping code: Addition of projects volumes to ws-machines and applying of agents moved to infrastructure provisioner. It can be overwritten in any implementation of Che and will be responsible for providing all infrastructure needed for Che implementation functioning. Allow to configure environment network driver. Allow to add Agents from the code instead of special files. These agents can override agents configured in files if identifiers are equal. Adds possibility to host agents binaries from CHE master. Reworks agents in a way when they can be downloaded from CHE master if they are not found on FS. Adds workspace ID to internal representation of environment to allow to use it for internal purposes of machine bootstrapping. Renames some properties. Refactors AgentConfigApplier to encapsulate additional code that was used with this class before. Signed-off-by: Alexander Garagatyi <[email protected]>
What does this PR do?