123 Commits

Author SHA1 Message Date
Nikolay Chashnikov
53ff4b070b [remote dev] update logic which runs the frontend process in dev launcher (RDCT-1194)
It now uses IDE-specific frontend and the module-based loader to make the behavior more similar to running from a real installation.

GitOrigin-RevId: 7fb6f910e938fe815167e7519ea495b56a4f113d
2024-10-14 23:05:51 +00:00
Vladimir Lagunov
991159855f IJent + RD/CWM tests: add VM Options for IJent WSL FS
GitOrigin-RevId: 33927083707d4752b2f15a9b6907974ab46cfdd9
2024-08-27 16:44:29 +00:00
Anastasia Katsman
272ead5603 [rdct-tests] introduce a port provider that makes sure the random port is requested from different diapasons
that is useful when several ports are requested in one test before they are actually used

GitOrigin-RevId: 0481897e66caec455aa932cff182d4a3afced49d
2024-07-18 20:14:54 +00:00
Nikolay Chashnikov
f68ef66b57 [rdct] rename modules in the remote-dev part accordingly to the new naming schema (RDCT-1417)
The following conventions are now used:
 * modules with frontend functionality have the 'frontend' word in their names;
 * modules with backend functionality have the 'backend' word in their names;
 * modules used when running backend and frontend in separate processes only have the 'split' word in their names.

 `integrity of non-standard root packages list` test is temporarily commented to avoid merge conflicts.

GitOrigin-RevId: 67487ef9224d3007eb7aff6f3a4c9fd3fe848e5f
2024-06-24 15:37:42 +00:00
Alexander Koshevoy
8ed64a7dcb [launcher] show welcome screen instead of opening "spring-petclinic" project in LaunchIde
GitOrigin-RevId: 16734e22b8e314a98ff9e095321be473b26f0320
2024-06-22 01:11:32 +00:00
Alexander Koshevoy
fd4ccba050 [launcher] correct naming of code entities and log records when launching IDE from sources via dedicated Kotlin DSL
GitOrigin-RevId: cb7f9e6bf10a226826ab4e3ba09bc6516680e94c
2024-06-22 01:11:32 +00:00
Anastasia Katsman
4d166e4919 [rdct-tests] enable kotlinx.coroutines.debug in tests
GitOrigin-RevId: 0d48a88a2d750a6dabbfe4b135aa71d9408e28cc
2024-06-20 17:04:44 +00:00
Alexander Koshevoy
6fb5b8efcb [rd launcher] improve stability of backend output parsing
GitOrigin-RevId: 437a4aec9dc941bd73b879558df865b493ed3081
2024-06-19 01:42:26 +00:00
Alexander Koshevoy
a2abb0933f [rd launcher] allow specifying JBR for launching IDE backend
GitOrigin-RevId: 10f211b5f554c32ff9d46237b773d6ba42e3a474
2024-06-19 01:42:26 +00:00
Anastasia Katsman
47e0c1d9ea [rdct-tests]: revert using fixed JBR-7276 after new jbr was released
GitOrigin-RevId: 557bf42d757057c3c59c756913bc0515eca113e8
2024-06-18 21:02:36 +00:00
Alexander Koshevoy
1b6ef6a9b0 [launcher] improve RemoteDev launcher DSL implementation
GitOrigin-RevId: 899c2c1d918384d1e1a2e80ede8f8060714a87b1
2024-06-18 03:51:45 +00:00
Alexander Koshevoy
f459c72425 [launcher] reformat code
GitOrigin-RevId: 24c8d41503c15979ac228d190778a955252f5d18
2024-06-18 03:51:45 +00:00
Yuriy Artamonov
3c37d1cf20 [tips] Default of "ide.show.tips.on.startup.default.value" for all products changed to false
GitOrigin-RevId: 91faa279c0a1da440a07ce58277c3f88eb50bbbb
2024-06-15 12:19:20 +00:00
Anastasia Katsman
ebfa882c5d JdkDownloader: add ability to download specific jdk number
Needed to be able to quickly avoid JBR-7276 and not to wait until next week with randomly failing rdct tests

GitOrigin-RevId: 26ec5543e6f0070b55a55ae791bac062beea3671
2024-06-11 14:59:28 +00:00
Anastasia Katsman
4d994bb1bd [rdct-tests] fix start with debug
GitOrigin-RevId: 6851c327aa35f7441f6f6264f4023bc36cb43b4b
2024-05-07 21:33:40 +00:00
Alexander Koshevoy
5940944025 [launcher] do not clutter output with excessive classpath logging
GitOrigin-RevId: c0a55f021a0710880a1d94e5799355a36de7d2c7
2024-05-07 11:52:30 +00:00
Alexander Koshevoy
278da14f3d [launcher] workaround "handshake failed - connection prematurally closed" debugger error by additional waiting
GitOrigin-RevId: cb753f5d4304f9b153894c9a5a61445831d7ebc9
2024-05-07 11:52:27 +00:00
Alexander Koshevoy
43b140b0ac [launcher] do not use UnixSystem class on Windows
GitOrigin-RevId: 9e08c2f5c733296342e072534cd5ac47f53ebc76
2024-05-07 11:52:24 +00:00
Alexander Koshevoy
cea24cebfc [launcher] use single quotation marks when quoting argument with special characters on Windows
GitOrigin-RevId: 01ad6c9541e8b0fe09c68b86d1c9b4b0657717d9
2024-05-07 11:52:21 +00:00
Alexander Koshevoy
373a09fb44 [launcher] pass correct path separator when generating classpath arg file for running IDE in Docker on Windows
GitOrigin-RevId: 1ce1f914ca8110905adbbd224c66d1c4a016ec45
2024-05-07 11:52:18 +00:00
Alexander Koshevoy
e5359356a5 [launcher] introduce DSL for launching Remote Dev from source code
- Introduce `launchRemoteDev` entry point to configure Remote Dev launch
- Introduce `intellij.idea.ultimate.build.devenvExperimental` module and `LaunchRemoteDev` in it as an example of using the DSL

GitOrigin-RevId: d2c21ba82939f0ef7ee9c7d373f44dc6444e0b07
2024-05-06 20:37:49 +00:00
Alexander Koshevoy
2f17e3d6d1 [chore] refactor IDE launching logic
GitOrigin-RevId: 4bf64a8cdd44a452fb8fced448a2ab919ce8bcea
2024-05-06 20:37:49 +00:00
Alexander Koshevoy
2fc1c0494d [chore] move DockerLauncher to com.intellij.tools.launch.ide.environments.docker
GitOrigin-RevId: c8ddcd7add40c1c10180f9f176668f510ada6de8
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
8679edc00b [chore] move utility methods from DockerLauncher to DockerCli
GitOrigin-RevId: 99bca59eb8a54a77d2a7722d15033a273e174d32
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
1a0ffa473a [chore] extract utility methods from DockerLauncher.runInContainer to DockerCliUtil
GitOrigin-RevId: 01bb638385d3efe1057566536359bd6945e558cb
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
2443ae1605 [chore] move utility methods to com.intellij.tools.launch.os
GitOrigin-RevId: dcf5feb113d64cead1f18dbf63c9bd9d08324269
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
003cad172e [chore] move modulesToScopes from ProcessLauncher to ClassPathBuilder
GitOrigin-RevId: f3308ccc5e1001952d2895f28c35b255bdc32afd
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
5b6c4caf3b [chore] move ClassPathBuilder to com.intellij.tools.launch.ide package
GitOrigin-RevId: 6d09457ac35c907408110cb7e2752f1588a1e941
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
41bac790be [launcher] use canonical home directory for root user
GitOrigin-RevId: 78d9a46d80a50d0180b38f184d160a1005d13bfc
2024-05-06 20:37:48 +00:00
Alexander Koshevoy
8fa6fe57f1 [cleanup] extract DockerCli with utility calls to docker from DockerLauncher
GitOrigin-RevId: 87f7a1b9ec9f969d03260cc9d57e8d165a33c1fb
2024-05-06 20:37:48 +00:00
Nikolay Chashnikov
b7beb3dac8 [tests] pass the home path to the IDE process explicitly (RDCT-773)
It's more reliable when computing it inside the IDE process by walking through parent directories (especially if the IDE process is started inside a Docker container).

GitOrigin-RevId: 76f5fded2c0d3fe3c5c9f2774a98daae9b725813
2024-03-21 04:41:54 +00:00
Nikolay Chashnikov
544690e825 [rdct tests] fix running test in Docker with module-based loader (RDCT-773)
GitOrigin-RevId: 5f9c919b785282a5a20e8df766585bab21ab60c8
2024-03-19 10:23:26 +00:00
Roman Shevchenko
1409dd6438 [project] getting rid of outdated 'idea.jre.check' system property
GitOrigin-RevId: 9efd749fb8ae8294ee47e62b0e354549e02be4f6
2024-02-29 00:59:19 +00:00
Mikhail Filippov
3b4f2a80d8 GTW-7744 Fix IDE home path detection in CWM tests inside docker.
GitOrigin-RevId: c4c068a1ff5e9b55b5d5e8dfc3ec9a1cffbcb580
2024-02-16 19:58:51 +00:00
Nikolay Chashnikov
f4812edb7e [modular loader] refactoring: extract ProductModules API to a separate module (IJPL-128)
ProductModules and related API aren't needed for the initial startup procedure in IntellijLoader, they are used later from ProductLoadingStrategy. So they are now moved from 'intellij.platform.runtime.repository' module to a new 'intellij.platform.runtime.product' module. This reduces the amount of code located in platform-loader.jar included in the initial classpath. Also, it allows to use code from other modules and libraries in the implementation of ProductModules (e.g., write code in Kotlin).

GitOrigin-RevId: 86bbab20f217b91104df20d546dc6bda376fb63c
2024-02-15 09:57:49 +00:00
Nikolay Chashnikov
5446959701 [rdct tests] refactoring: provide a way to launch IDE with module-based loader (RDCT-773)
'productMode' property is added to LauncherOptions.

GitOrigin-RevId: fa7247def9281b53c1faf8c78941b6fbc431a333
2024-02-12 19:47:35 +00:00
Anastasia Katsman
c08c074d31 [rdct-tests]: docker run: add temp folder as writable
GitOrigin-RevId: e5295c69d6e8fb5b6fae6df9c9a3bbf2e52c830d
2024-02-09 19:08:38 +00:00
Anastasia Katsman
8612903fc9 [rdct-tests]: Collect logs tests
- add CWM collect logs test from client and from host
- add no connection collect logs test
- add ability to send shortcuts directly to the component
- collect logs from gw and from client in real remote dev scenario

GitOrigin-RevId: f15033fbb9920acfc4de1370e70de7ec2b6b31cd
2024-01-18 22:12:34 +00:00
Anastasia Katsman
c8f792ecd2 [rdct-tests]: rename variable to correspond the actual data
GitOrigin-RevId: 3957843997a2faf5c9188d34d94f4b028822a014
2024-01-09 21:32:28 +00:00
Anastasia Katsman
3436c3177a [rdct-tests]: fix modules to make sure not needed modules are not in the classpath due to always including test dependencies
GitOrigin-RevId: 104232f491f623e3fef098efb28217d3389303fd
2024-01-09 21:32:21 +00:00
Vladimir Krivosheev
dbe4587948 Revert "remove -XX:+UseG1GC as it is default since JDK 9, remove -XX:CICompilerCount=2 as 2 is the default value already"
This reverts commit 011d5065163766138449591155f5555416f56add.

GitOrigin-RevId: 742677bff76451b1299767b88c3f0950a4c22d11
2024-01-08 19:33:14 +00:00
Vladimir Krivosheev
c024294df9 remove -XX:+UseG1GC as it is default since JDK 9, remove -XX:CICompilerCount=2 as 2 is the default value already
GitOrigin-RevId: 011d5065163766138449591155f5555416f56add
2024-01-08 18:08:03 +00:00
Anastasia Katsman
58956eaf22 [rdct-tests]: always set custom buildInServerPort
GitOrigin-RevId: 02598de96690a79e010b43fa568b13db5f72ec0d
2024-01-03 00:09:29 +00:00
Anastasia Katsman
1e6485a6bd [rdct-tests]: do not set default exposed ports
GitOrigin-RevId: 62dc77dd6016593e3b5d8c26c44e3baba991aa24
2024-01-03 00:09:29 +00:00
Anastasia Katsman
5d86fb708a [rdct-tests]: GTW-6478: we should not spoil jetstat, which relies on update requests: distributed tests
GitOrigin-RevId: fe545983ff7688063fe94119975e21953072a062
2023-10-13 15:04:07 +00:00
Anastasia Katsman
278b900dc9 [rdct-tests]: make docker tests work
GitOrigin-RevId: e31fa5abd87f6b5386944a8493ddabba3c14ca89
2023-10-02 17:52:27 +00:00
Anastasia Katsman
d33f61b316 [rdct-tests]: do not override output
GitOrigin-RevId: 2d109c57cc9a8fc7044b0bd5695e6e65726737c9
2023-09-15 00:10:32 +00:00
Anastasia Katsman
4894f0bf7e [rdct-tests]: docker javapath fix
GitOrigin-RevId: f1273c5af35f6cb1dc95a7d5837a5c0b0d0ea548
2023-09-15 00:10:27 +00:00
Ivan Pashchenko
78d5ec5b27 [rdct] CWM-5027 add system property to run the in-docker tests process under strace to diagnose classpath issue
GitOrigin-RevId: 2256e5c44a3353606bc6b82eef60b47096df609d
2023-09-14 17:26:40 +00:00
Leonid Shalupov
cfb1e9fbf0 rdct: tests: fix some docker tests on build agents
make directory with .m2 caches available in dockerized intellij runs

CWM-5027 Setup and support new local latency tests

GitOrigin-RevId: 33d8abd777246fc69c982810406ba6f3f4cf2998
2023-09-12 23:37:05 +00:00