Commit Graph

858 Commits (3af8a5b0902e2eefc1940e96fd39d673c6d2c154)

Author SHA1 Message Date
Vitalii Parfonov e5d31ff913
RELEASE: Set next development version (#15141) 2019-11-07 17:14:27 +02:00
Yevhen Vydolob b91572a336 #14756 fix typescript dto generator
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2019-11-05 09:56:43 +02:00
Sergii Kabashniuk 29d5f17027
Fixed MeteredExecutorServiceWrapperTest that is failing some Linux system (#15034)
* Fixed MeteredExecutorServiceWrapperTest that are failing some Linux system
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-10-30 17:07:03 +01:00
Sergii Kabashniuk 3de4e7ffac
Monitoring & Tracing capability for multiple Thread pools of Che Server (#14727)
* Monitoring & Tracing capability for multiple Thread pools of Che Server
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-10-30 14:11:02 +01:00
Sergii Kabashniuk 947f4d259b
Remove deprecated docker infrastructure (#14951)
* Remove deprecated docker infrastructure
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-10-29 08:08:02 +01:00
Michal Vala 5d38d7a715
Preview url server support (#14713)
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-10-24 11:39:56 +02:00
Sergii Kabashniuk 7a4757973a
Upgrade metrics and tracing dependencies (#14923)
* Upgrade metrics and tracing dependencies
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-10-21 11:44:31 +02:00
Vitalii Parfonov 41d48bf2de
RELEASE: Set next development version (#14904) 2019-10-17 15:45:06 +03:00
Mykola Morhun 420d4ea34c
Add sparseCheckoutDir parameter into devfile spec (#14823)
Add sparseCheckoutDir parameter into devfile spec

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2019-10-17 12:01:21 +03:00
Max Shaposhnik a969f69946
Validation of devfiles on workspace update 2019-10-09 20:01:32 +03:00
Max Shaposhnik 720aab0051 Revert "Devfile validation via message entity provider" (#14812)
This reverts commit fc531ea015.
2019-10-08 22:29:20 +03:00
Max Shaposhnik fc531ea015
Devfile validation via message entity provider 2019-10-08 14:10:15 +03:00
Max Shaposhnik 88033a05b7
Serialize/deseialize list of DTO using same mechanism as single DTO object
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-10-08 10:43:35 +03:00
Vitalii Parfonov 4e1492b08f
RELEASE: Set next development version (#14690) 2019-09-27 22:52:26 +03:00
Max Shaposhnik 83f07e4570
Add component alias into runtime machine if present in origin devfile (#14610)
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-09-24 17:36:52 +03:00
Mykhailo Kuznietsov 1907b041c1
Remove installer registry service (#14193) 2019-09-23 12:11:33 +03:00
Mykhailo Kuznietsov ec76c532ff Fix devfile component preferences deserialization through GSON
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-09-10 15:25:09 +03:00
Roman Iuvshyn 87056fe29e RELEASE: Set next development version 2019-09-05 14:54:52 +02:00
Sergii Kabashniuk 06017df278
Make code & test independent from environment and time of execution (#14207)
* Make code & test independent from environment and time of execution

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-08-27 08:14:24 +02:00
Michal Vala 4413e2bd8d Add `generateName` to devfile metadata (#14157)
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-08-22 14:04:55 +03:00
Max Shaposhnik ba1c521e32
Allow chePlugin preferences to be string, int or boolean type 2019-08-16 15:36:17 +03:00
Vitalii Parfonov ae8fedc411
RELEASE: Set next development version (#14238) 2019-08-14 19:32:18 +03:00
Vitalii Parfonov 03da1e24e4
RELEASE: Set next development version (#14026) 2019-07-25 15:43:30 +03:00
Sergii Kabashniuk 79c6ec0703
Initial cleanup of che6 legacy code (#13788)
cleanup of che6 legacy code

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>

* Remove/disable GWT-related code in Java selenium E2E tests (#13829)

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2019-07-23 15:12:27 +02:00
Vitalii Parfonov ccc8e38823
RELEASE: Set next development version (#13711) 2019-07-05 13:08:59 +03:00
Mykhailo Kuznietsov 8d3cc8054a
Deprecate workspaces with Devfile stored as workspace config (#13588) 2019-07-03 15:34:23 +03:00
Vitalii Parfonov 385c21284d
Set version 7.0.0-rc-3.0-SNAPSHOT (rc in lowercase) (#13655)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 17:40:14 +03:00
Vitalii Parfonov 65bb7943a0
Set new version 7.0.0-RC-3.0-SNAPSHOT (#13651)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 14:02:19 +03:00
Vitalii Parfonov 70c3e5b091
RELEASE: Set next development version (#13564) 2019-06-19 12:55:16 +03:00
Mykhailo Kuznietsov 84df6f9cde
Do not serialize DTO fields with empty or null objects and arrays (#13515) 2019-06-18 13:10:48 +03:00
Lukas Krejci caae00e21b
K8s-like devfile naming (#13490)
`specVersion` is now `apiVersion` and is bumped to 1.0.0
`name` is now nested under the new `metadata` element.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-06-10 23:23:45 +02:00
Max Shaposhnik f601f16527
Add possibility to specify reference or registry url for chePlugin/cheEditor type components
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-06-10 17:34:41 +03:00
Mykhailo Kuznietsov b2b92b5463
Rework dynamodule exclusion regexps to match nested WARs as well (#13464)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2019-06-04 09:59:01 +03:00
Vitalii Parfonov 64129a8d44
RELEASE: Set next development version (#13460) 2019-06-03 16:28:42 +03:00
Lukas Krejci ee4461b2fd
Merge api-devfile and api-workspace together (#13417)
Merge api-devfile and api-workspace together and put the infrastructure-dependent code behind injectable interfaces.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-05-31 12:43:45 +02:00
Roman I dd1d9b5a58
switch to RC version scheme (#13424) 2019-05-28 13:52:49 +03:00
Sergii Leshchenko c94c3acc03
Add preferences to plugin component of devfile (#13341)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-05-24 08:59:29 +03:00
Roman I ffb8a3e013
RELEASE: Set next development version (#13377) 2019-05-22 09:52:28 +03:00
Lukas Krejci 0ce7b1ddac
Content references in command actions for editor specific action definitions. (#13273)
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-05-21 10:04:11 +02:00
Roman Iuvshyn 53cb2c53fa
RELEASE: Set next development version (#13264) 2019-05-05 12:24:42 -04:00
Max Shaposhnik a3c56c9f40
Switch to Justify json schema validator
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-05-02 14:56:43 +03:00
Oleksandr Garagatyi 35ce3544f7
Adapt UD and wsmaster to new plugin notation (#13204)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-05-02 09:50:01 +03:00
Sergii Leshchenko e4e12df1be Add REST method to create a workspace from Devfile
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-24 15:33:46 +03:00
Lukas Krejci f725bb0316 Merge remote-tracking branch 'upstream/master' into name-to-alias
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-04-16 14:12:04 +02:00
Lukas Krejci 09ccc0db26 Rename component "name" to "alias", make it optional and add a new
validation to require the alias when 2 components are otherwise
indistinguishable by their identifying attributes (like image name of
the dockerimage component).

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-04-16 11:12:00 +02:00
Sergii Leshchenko 046552f4e5
Make Devfile part of a workspace (#13122)
It includes only model objects changes. Devfile can not be used as part
of workspace yet.

Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-15 11:53:58 +03:00
Roman Iuvshyn e60598bdaf
RELEASE: Set next development version (#13102) 2019-04-10 17:13:01 +03:00
Lukas Krejci 1852642c68 Remove refspec and add more fine-grained checkout-after-clone control
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-04-08 10:08:55 +02:00
Sergii Leshchenko e3281718a7 Add model objects for Devfile
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-03 14:03:20 +03:00
Lukas Krejci 4e3e7c3cb5 Support `refspec` in the devfile to specify what should be checked out
after a clone.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-04-01 09:58:05 +02:00
Mykhailo Kuznietsov e4763e1dac
Add ability to provide additional build-info in Che (#12919) 2019-03-28 15:46:32 +02:00
Angel Misevski 1263f06945 Add tracing to broker phases
Trace the prepare storage, deploy, and wait broker result phases of
plugin brokering.

Additionally clean up start tracing code slightly:
- Move span names to a separate file
- Move TracingUtil functionality into TracingTags

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-03-28 02:22:51 -04:00
Angel Misevski 15a7f9da6f Rework workspace start tracing
- Group machine start traces under a separate span
- Move wait running and check servers spans out of start machines span
  since the start machine span ends before check servers is complete
- Track wait running async and check servers spans separately
- Add tracing to bootstrap servers

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-03-28 02:22:51 -04:00
Angel Misevski 2c4ef3a60f Allow enabling DB tracing separately from regular tracing
When enabled, tracing database calls fills each span with dozens of
hard-to-parse, ~1-100 ms spans. This commit allows enabling database
tracing separately, using the CHE_DB_TRACING_ENABLED environment
variable.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-03-28 02:22:51 -04:00
Gerben Oolbekkink c5498c2ac5 Improve ZipUtils tests. (#12946)
Fix ZipUtilsWriteTest for Windows, slashes get converted inside
ZipUtils.

Add test for unzipping. This was not explicitely tested.

Signed-off-by: Gerben Oolbekkink <g.j.w.oolbekkink@gmail.com>
2019-03-23 15:46:56 +02:00
Roman Iuvshyn 0abdc77ea0
RELEASE: Set next development version (#12922) 2019-03-19 15:56:30 +02:00
Sergii Kabashniuk 315767ea5d
NopTracer is used if tracing is not enabled (#12897)
* NopTracer is used in tracing is not enabled

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-03-19 09:44:49 +02:00
Mykhailo Kuznietsov fdc1b0dcf0
Expose Traces as metrics for Prometheus (#12823) 2019-03-14 16:00:53 +02:00
Lukas Krejci b52ee401c8 Handle the containerCommand and containerArgs attributes of the machine
defined with the dockerimage recipe.

Note that this only works in kubernetes and openshift environments.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-03-05 15:04:18 +01:00
Sergii Kabashniuk 391c30e495
Provide more informative error message (#12814)
* Provide more informative error message in case of rejection on major websocket endpoint of JSON RPC stack

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-03-04 22:27:28 +02:00
Roman Iuvshyn 0881493644
RELEASE: Set next development version (#12777) 2019-02-27 16:02:33 +02:00
Sergii Kabashniuk a5b06d444f
Introduced two web-socket endpoints for workspace master to split JSON-RPC messages (#12673)
* Introduced two web-socket endpoints for workspace master to split JSON-RPC messages
Based on Dmytro's Kulieshov  work https://github.com/eclipse/che/pull/12252

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-02-27 13:29:43 +02:00
Roman Iuvshyn 3778f01220
RELEASE: Set next development version (#12768) 2019-02-27 11:50:40 +02:00
Sergii Kabashniuk 577eba85ea
Add ProcessMemoryMetrics ProcessThreadMetrics (#12749)
* Add ProcessMemoryMetrics ProcessThreadMetrics

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-02-26 14:47:41 +02:00
Lukas Krejci 9a8a4f8660 * Don't try to remove already removed element during removeFirstIndependent
* Presize the LinkedHashMap correctly

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-02-25 13:52:56 +01:00
Lukas Krejci f66e967339 Make variable expansion work for environment variables in k8s.
K8s does the expansion only if it already knows about the variable being
expanded.

This means we have to sort the environment variable list prior to sending
it to k8s in such a way that vars that reference others always follow the
referenced ones.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-02-25 13:18:32 +01:00
Mykhailo Kuznietsov 3bef71020f
Adding tracing tags to workspace related operations (#12652)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2019-02-25 12:11:25 +02:00
Max Shaposhnik 88959d006f
API info service to use meta-info from war-s manifest instead of jar
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-02-19 15:47:18 +02:00
Roman Iuvshyn a694c4f971
RELEASE: Set next development version (#12596) 2019-02-06 18:22:35 +02:00
Sergii Leshchenko 99017c4553 Move 'machineName' and 'plugin' attributes definition to Command class
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-02-01 16:41:00 +02:00
Sergii Kabashniuk 82b6ea432e
Add ability to dump values that is bind by CheBootstrap (#12556)
* Add ability to dump values that is bind by CheBootstrap

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-01-31 09:37:32 +02:00
Masaki Muranaka 9f5a7980c7 Fix resource leaks. (#12407)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-01-29 13:02:59 +02:00
Sergii Kabashniuk 84b5a68bd9 Correctly determine server from which IDE was loaded
Provider of "cors.allowed.origins" setting for CORS Filter of WS Agent. Provides the value such  algorithm:
        1. If set che.wsagent.cors.allowed_origins
        2. Server with "ide" attribute in workspace config
        3. Server from url of "ide" link in workspace config
        4. che.api

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-01-16 16:01:52 +02:00
Roman Iuvshyn 4ad10f2218
RELEASE: Set next development version (#12441) 2019-01-16 11:51:02 +02:00
Masaki Muranaka 07ceab7754 Remove redundant elements (<groupId> and <version>) (#12406)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-01-14 13:07:42 +02:00
Mykhailo Kuznietsov 3574455d8e
Add filter to track 5xx errors for Prometheus (#12284) 2019-01-10 09:37:26 +02:00
Sergii Leshchenko 2f7f726b83
Fix logged messages in commons schedule module (#12283) 2018-12-27 14:54:16 +02:00
Roman Iuvshyn b872b317cb
RELEASE: Set next development version (#12277) 2018-12-26 13:04:51 +02:00
Yevhen Vydolob 345d1b7e62
Add '.d.ts' DTO generator (#12250)
#12132 Add '.d.ts' DTO generator

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2018-12-26 11:15:06 +02:00
Mykhailo Kuznietsov bac76ac5ee Fix WS Agent not setting appropriate CORS allowed origin on Docker (#12265) 2018-12-24 13:49:46 +02:00
Mykhailo Kuznietsov 69288516c8
Upgrade Tomcat and change default CORS configuration (#12144) 2018-12-22 10:56:27 +02:00
Mykhailo Kuznietsov b7e1918e32
Upgrade dependencies (#11944) 2018-12-11 11:34:48 +02:00
Max Shaposhnik 3a14bacda1
Devfile local features implenentation with schema validation and automated model build. 2018-12-06 16:19:21 +02:00
Roman Iuvshyn 45490d2a3b
RELEASE: Set next development version (#12115) 2018-12-05 18:33:02 +02:00
Mykhailo Kuznietsov 3d366a1c19
Add ability to change CORS configuration on Che Server through env vars (#12046) 2018-12-04 14:56:38 +02:00
Sergii Kabashniuk 2d0915bf14
Fix MetricsServer deployment (#12072) 2018-11-29 20:52:24 +02:00
Sergii Kabashniuk da3eefe237
Metrics POC (#11990)
With CHE_METRICS_ENABLED env variable enable Prometheus metrics endpoint
2018-11-27 23:47:24 +02:00
Sergii Leshchenko 25f76803db Add commands to InternalEnvironment and Runtime 2018-11-27 09:19:28 +02:00
Masaki Muranaka d309ef4b83 Remove redundant <version> elements. (#12023)
As they will be inherited from `parent.version`.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2018-11-25 21:17:08 +02:00
Lukas Krejci 9109cf37c5 Workspace tracing (#11924)
* Adding support for @Traced annotation to enable whole method tracing
* Trace the creation and removal of workspace
* Trace the start of async start of the workspace
Note that this does not actually trace the async operations but merely
the "kick off" of those. For tracing the async operations, we need to
introduce support for propagating the span ids over the thread boundaries
using opentracing-concurrent.
* Enable tracing across the thread boundaries by augmenting the
WorkspaceSharedPool threadpool with tracing support.
Note that this does not add any new traces, merely enables the async
tracing.
* Add support for adding tags to @Traced methods.
The interceptor also reports the actual invoked class and method
(cleansed of Guice subclass name garbage)
* Trace the startup of pods during workspace startup.
* Trace stop of a workspace
* Introduce utility methods for tracing parts of methods.
* Trace provisioning of k8s objects (in both Kubernetes and Openshift
infrastructures).
* Create a common set of tags and enable strongly typed tags
* Apply the standard tags instead of hardcoded strings.
* Adding @Beta annotations for the tracing-related classes.
This needs to stabilize first.
* Replacing the "Traces" machinery with just annotated package private methods.
This way the code is easier to ready while we also keep all the flexibility
needed for the tag definitions.
* Rename CheTags to more descriptive TracingTags.
* Evaluate the tag values lazily.
This will reduce the load when tracing is switched off.
* Simplify the machine startup tracing logic and distinguish between
true error and mere cancellation due to prior errors.
* Trivial - applying formatting.
* Use getContext().getEnvironment().getMachines().size() to get the precise
number of machines that will be starting up.
* Trivial - change the name of the machine creation tag
* Use a formatted message instead of string concat.
* Update to the latest parent so that che-core-commons-tracing is correctly
incorporated into the full build.
* Fix tracing of the asynchronous stop of a workspace.
* Don't fall over when tracing is not available.
2018-11-22 21:51:12 +02:00
Oleksandr Garagatyi aaa8f424cd
Make a workspace run without any user env (#11890)
Allows running Che 7 workspace without any user environment but with Che 7 tooling set.
Workspace without environment has an empty list of environments and null value in `defaultEnv` field.
Field `activeEnv` is supposed to be `null` too.
What is changed:
- Migration of DB
- make defaultEnv nullable
- remove env_name from runtimes primary key
- make env_name in runtimes nullable
- Make code respect the fact that there are workspaces with no env
- settings API that returns the list of supported environment types returns no-environment type that - indicates that infrastructure support workspace with no environment at all.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-11-21 16:39:54 +02:00
Sergii Kabashniuk f742047a89
Delegate toString to wrapped class (#11959)
Delegate toString to wrapped class (#11959)
2018-11-19 09:27:30 +02:00
Sergii Leshchenko 18e408854c Add info message about aplied logger config 2018-11-15 14:43:51 +02:00
Roman Iuvshyn 99afaef87f
RELEASE: Set next development version (#11930) 2018-11-14 12:29:03 +02:00
Sergii Kabashniuk 0b16268dcf
Jdbc tracing support (#11905)
Jdbc tracing support (#11905)
2018-11-14 11:37:47 +02:00
Sergii Kabashniuk 8a38002dd9
Basic tracing support for OpenShift (#11844)
Basic tracing support for OpenShift (#11844)
2018-11-09 14:42:52 +02:00
Roman Iuvshyn 365d25f275
RELEASE: Set next development version (#11710) 2018-10-24 16:38:03 +03:00
Sergii Kabashniuk be8a867c4e
More information for ServerSideRequestProcessor.RejectedExecutionHandler (#11681)
More information for ServerSideRequestProcessor.RejectedExecutionHandler (#11681)
2018-10-24 11:27:30 +03:00
Thomas Mäder f925d2b631 Fix resource leak in ZipUtils (#10815)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2018-10-17 15:05:02 +02:00
Thomas Mäder ac1478eda0 Fix parent path handling when importing test projects (#10785)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2018-10-17 15:05:02 +02:00