Commit Graph

433 Commits

Author SHA1 Message Date
Anastasia Katsman
845d1ddf90 [rdct-tests] add troubleshooting coroutine dump
GitOrigin-RevId: f72c0092ffdbf81a5c4f53870fa9c6e6b48e7877
2024-12-24 16:58:06 +00:00
Anastasia Katsman
aac80c5a19 [rdct-tests] better notifications api usage
GitOrigin-RevId: 4d4c3fa7814db49c6ba8f31a67df30be64dc11e4
2024-12-24 16:58:06 +00:00
Anastasia Katsman
4643e7331a [rdct-tests] more consistent naming
# Conflicts:
#	community/platform/remoteDev-util/src/com/intellij/remoteDev/tests/impl/DistributedTestHost.kt

GitOrigin-RevId: a5b024a7a7389b882ecc03344733b19b4434c2be
2024-12-24 16:58:06 +00:00
Anastasia Katsman
8f8b2ae2d3 [rdct-tests] always include exception cause in failure stacktrace
GitOrigin-RevId: a9006c0f60439b01d3efbd360bb59349480f23f3
2024-12-24 16:58:06 +00:00
Anastasia Katsman
9c88d9696a [rdct-tests] dump heap when the exception is received from agent directly
GitOrigin-RevId: d9ef43b8151c9e91d8fc9828a6be2af61d1e3a36
2024-12-24 16:58:06 +00:00
Anastasia Katsman
2d157fdb49 [rdct-tests] improve troubleshooting logging for focus requests with no projects
(cherry picked from commit b29244d1300e2a37a1b1d70818ac6858835b0399)

IJ-CR-148486

GitOrigin-RevId: 22937d238c77f85d2f274de781253c3584daac54
2024-11-04 22:36:20 +00:00
Nikolay Chashnikov
245ca0d9af [remove dev] fix starting the embedded client on macOS (GTW-10038)
The code was broken in 0589e19a0923a34, 'return' statement was removed, so on macOS the embedded client was started using a fallback variant with running the java process directly, and it doesn't use proper icons.


(cherry picked from commit 48dbc8874b4747b403d5ba1206097a627963e0cb)

IJ-CR-148038

GitOrigin-RevId: 628e15a4ed695a87181b384adc6550c7e11f1f2b
2024-10-30 13:15:05 +00:00
Mihail Buryakov
246027b550 IDES-6286 make an extension point for provisioner to patch vmoptions and plugins
- avoid using constructor default value since gson doesn't handle it correctly
- use custom command in product-info to read path to vmOptions
- use product_info to read path to vmOptions

Merge-request: IJ-MR-145822
Merged-by: Mihail Buryakov <Mihail.Buryakov@jetbrains.com>

GitOrigin-RevId: db9e578424918aa25a2096caa2c88c47f7b77658
2024-10-10 19:44:14 +00:00
Alexander.Glukhov
489b41688d [tracing][IJPL-163198] introduced a single source of truth about OTLP configuration
GitOrigin-RevId: d8204fa3fcfa23583466a30417754f6e616d7d75
2024-10-01 11:54:59 +00:00
Nikolay Chashnikov
d4352bae98 [remote dev] use the IDE's launcher when starting the frontend process from IDE distribution on Windows and Linux (GTW-9824)
GitOrigin-RevId: 0589e19a0923a341e580289550b665afcc08a048
2024-09-25 16:12:55 +00:00
Nikolay Chashnikov
390fcaf12c [remote dev] use the native launcher when running the frontend process on Linux (GTW-9619)
It's possible to switch back to the old sh script via 'rdct.use.native.client.launcher.on.linux' registry option.

GitOrigin-RevId: 07766a7b4d4ffc81de4d09abac81df16c1c2ba86
2024-09-25 16:12:55 +00:00
Nikolay Chashnikov
b3c0f4d21f [remote dev] refactoring: use BuildNumber instead of String in code related to downloading of clients
This improves type safety and will make it easier to include product code in the build number (this will be needed for RDCT-235).

(Changes in spaceport were reviewed in IJ-MR-145468.)

GitOrigin-RevId: 1a2137f0f0b1861fdba6df1bda60ebc2ddf2884d
2024-09-25 16:12:55 +00:00
Nikolay Chashnikov
63454e5ae9 [remote dev] refactor representation of downloaded frontend
Before we used ExtractedJetBrainsClientData to represent both standalone separate JetBrains Client distributions and a distribution embedded in a monolith IDE. This may cause confusion because the frontend process is started differently in these cases. So to simplify code and make it easier to migrate to the new launcher for JetBrains Client (GTW-9619), a sealed 'FrontendInstallation' interface with separate implementations is introduced.

(Changes in spaceport were reviewed in IJ-MR-145468.)

GitOrigin-RevId: c2355c517b65bfaf4e34b5c4b25cd55870a7ec58
2024-09-25 16:12:55 +00:00
Anastasia Katsman
24496d9254 [rdct-tests] agentId -> agentInfo as it is actually RdAgentInfo
GitOrigin-RevId: 69b1f76a87eca064de44dba27a527e23e1affaef
2024-09-23 23:24:51 +00:00
Anastasia Katsman
302ca65ed7 [rdct-tests] fix the situation when the focus is globally gone, and we are waiting for it: use robot
GitOrigin-RevId: 667cf7fe735b315eba200772cba149ce50c040cc
2024-09-17 20:57:23 +00:00
Nikolay Chashnikov
f85e6d238f [remote dev] don't mark backend and frontend processes as 'isLightEdit'
This is a workaround for IJPL-161632: until a proper condition for setting this flag is implemented, let's explicitly mention that it shouldn't be set if a known command for starting a backend or a frontend is used.

'nosplash' property is now set explicitly for the frontend process to keep previous behavior.

GitOrigin-RevId: 9654279f09ba79d34fdc92660497917f34c2824c
2024-09-04 11:42:43 +00:00
Anastasia Katsman
796dba884f [rdct-tests] use custom focus request logic for windows
On windows project window has `isFocused` = true

when on the recording there could be a start window or some app update window is opened. That's why we are trying as much as we can to actually request focus and it helps with update window, but doesn't help with the start menu yet.

GitOrigin-RevId: c0ab3b8a86344a0540052092e05ed5aa74c47e65
2024-08-19 17:27:49 +00:00
Anastasia Katsman
fdc978b277 [rdct-tests] allways request focus on windows: we can't propely detect if we are really focused
GitOrigin-RevId: c8a5f142a7390d5654e8e4ce4f2c0cb87916b28c
2024-08-16 08:54:05 +00:00
Nikolay Chashnikov
968ae2429c [gateway] use the proper client build number when launching the client for a backend with a snapshot version (GTW-6851)
When a backend has a snapshot version, CodeWithMeClientDownloader.createSessionInfo computes the latest available build of the client, and it is downloaded. However, code which launches the client used 'xxx.SNAPSHOT' version and failed to run it. Now the exact version of the client is propagated via JetBrainsClientDownloadInfo.clientBuildNumber and ExtractedJetBrainsClientData.version and used to run the downloaded client.

GitOrigin-RevId: bfceb6fc4e40ef4b7177ba109615a1250b355eb7
2024-08-14 17:15:46 +00:00
Vladimir Krivosheev
86b23d40f1 IJPL-197 introduce core-only or allowlist-only ApplicationActivity
GitOrigin-RevId: cb3631d0748100134dc8a6021dac1a2f57859121
2024-08-14 13:08:53 +00:00
Lev Serebryakov
64913b449a IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in platform tests.

GitOrigin-RevId: 95ca5f83e9768b1e304be99c7f71ab351e09f286
2024-08-13 17:24:46 +00:00
Vladimir Krivosheev
caf660475b IJPL-158075 SingleEdtTaskScheduler as a safe and efficient solution for old UI code
we cannot create child scope as not all clients pass disposable and/or call `Alarm.dispose`

GitOrigin-RevId: 6513eff48043a5c8ced15c9b5449eaab2842a0af
2024-07-24 19:28:11 +00:00
Anastasia Katsman
0511dccf14 [rdct-tests] refactor focus requests on DistributedTestHost side
more logs
returning true Boolean
using Window.IsFocused, which works better in RemoteDev

GitOrigin-RevId: 8b30e8494b7fc085586effc502c3fe7d686d2ea5
2024-07-24 13:33:35 +00:00
Anastasia Katsman
72647c37c5 [rdct-tests]: properly wait till modal dialogs are closed
GitOrigin-RevId: 5d5296c78989c6f677e2731090080efd1c7f366c
2024-07-10 19:09:57 +00:00
Anastasia Katsman
94c172feac [rdct-tests] add performGetComponentData
GitOrigin-RevId: 5e0392c7973cf29cd37f9423bc1f3a11e375c931
2024-07-03 22:27:59 +00:00
Nikita Volchegorskii
1f6b96696a RIDER-106987 separate settings for semantic search classes and symbols for rider
GitOrigin-RevId: 7c8b532a98d4629541c149ee17dee53b242045e4
2024-07-03 22:14:54 +00:00
Nikita Volchegorskii
e9b443c9e0 RIDER-106987 added semantic search in rider
GitOrigin-RevId: e457329c117bdcd7281e22fe4bd11d104190a6c4
2024-07-03 22:14:54 +00:00
Aleksey Rostovskiy
62438e2602 [Educational] Implement frontend customization for Remote Idea Edu
The code changes add the frontend customization module for Remote Idea Edu. This includes the creation of new configuration files,
reorganization of certain modules, and updates to the plugin descriptions. The changes will allow for specific customizations
in the frontend variant of Remote Idea Edu.


IJ-MR-137840

GitOrigin-RevId: 28171386ef01281bdde3ece01b1e0e701272d1ab
2024-06-26 23:46:22 +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
Anastasia Katsman
57c5f8953f [rdct-tests] CWM-9448: always provide ClientId even if only local one is needed
GitOrigin-RevId: a62ff0338ca57358a29e060ff576234ccd8beb57
2024-06-21 13:05:23 +00:00
Nikolay Chashnikov
a532a0e244 [rdct] refactoring: rename PerProcessPathCustomizer to FrontendProcessPathCustomizer
This is needed for clarity, since we have a separate P3PathCustomizer now. The common code which was reused by P3PathCustomizer is moved to a separate PerProcessPathCustomization class.

GitOrigin-RevId: bee9775ff2f5790239a6c1b55283ffbadb11f39f
2024-06-20 18:28:24 +00:00
Anastasia Katsman
2cb5d98844 [rdct-tests]: fix 'Failed to request the focus.' by waiting until the focus is actually gained
GitOrigin-RevId: 7917aaff10469acfd5823674445b557f72caef89
2024-06-19 16:58:18 +00:00
Anastasia Katsman
70c81f2b47 [rdct-tests]: make sure failMessageProducer is called on original Dispatchers context to avoid non EDT asserts
GitOrigin-RevId: bfed090a8df3ed2ffee7a3bf99c52f8cf1704a00
2024-06-19 16:58:18 +00:00
Anastasia Katsman
833da8d490 [rdct-tests]: make sure that unexpected modal state on shutdown causes a separate exception and is noticeable
GitOrigin-RevId: 5712491980da2cac2c0e80ded2606389640f5d39
2024-06-17 22:21:01 +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
88b5858f75 [rdct-tests] fix context computation on startup
GitOrigin-RevId: f8346c72c211f6277b63d6b8fe09f9376b63c686
2024-06-10 18:38:00 +00:00
Roman Shevchenko
c2d45de93e [project] moving LocalUserSettings to a more appropriate module
GitOrigin-RevId: 4c2d4d1149c88ee8637cb52aa9408ec4f7a87ab4
2024-06-07 11:17:28 +00:00
Anastasia Katsman
1bdc420dac [rdct-tests] disable threaddump printout on timeout failure: can't read logs on TC, threaddump should be saved to the file
GitOrigin-RevId: 7259015cfab256e756fec88186d2c5f12cc31335
2024-05-28 13:31:08 +00:00
Nikolay Chashnikov
bd969592f7 [rdct] refine the build number where new config/system paths for the frontend process become enabled (GTW-2077)
GitOrigin-RevId: df13f87f19678bab650e1725081c81ae2a5da2ce
2024-05-27 09:31:41 +00:00
Nikolay Chashnikov
0ba14beee0 [rdct] use the same config path for the frontend process as for the local IDE (GTW-2077)
GitOrigin-RevId: 0d3f1a9251eeb09f0d84c0f94169a8b7e40c3983
2024-05-24 18:04:52 +00:00
Nikita Kudrin
e5e1e5a6f3 [rdct] Do not throw exception if a file wasn't downloaded
GitOrigin-RevId: 43ba2b77c99897723ae03f5ed5d54c406c37b1bb
2024-05-24 10:49:13 +00:00
Nikita Kudrin
d2d597eca3 [dev containers] Deployment tests broke on bfa1a1ab24cf602ac9759ad27509c177aa020a1c. Fix to support SNAPSHOT installers.
GitOrigin-RevId: a9e89ccf9429ba3728c641fcf8426fb2a97041b7
2024-05-24 10:49:07 +00:00
Anton Deriabin
d76a4a00f4 Gateway and CWM. Do not parse product version via regex.
Regex wasn't working for this kind of valid versions: 241.14494.SNAPSHOT
BuildNumber parses works correctly for them.

GitOrigin-RevId: bfa1a1ab24cf602ac9759ad27509c177aa020a1c
2024-05-22 21:58:22 +00:00
Nikolay Chashnikov
2876ac2ae4 [rdct] take 'JETBRAINS_CLIENT_PROPERTIES' env variable into account when starting the embedded client not via launcher (RDCT-1375)
GitOrigin-RevId: 683a76f4acdb75e6f3bdf5af9a01beca142fb873
2024-05-22 19:18:27 +00:00
Nikita Kudrin
d97483de05 [dev containers] AT-934 Build remdev backend and client and pass it to the dev container deployment process
GitOrigin-RevId: 23401f334cf04c5cf27e58bbeb4c73ac7643b93c
2024-05-21 17:48:36 +00:00
Nikolay Chashnikov
0f3588a0fe [rdct] refactoring: move code which computes path selector to ProductPaths (GTW-2077)
This is needed to reuse it in tests.

GitOrigin-RevId: 383a8aba9514def49c4e0cdab66677eb248c42c2
2024-05-13 12:26:07 +00:00
Sergei Dubov
60347787bc [rdct] RDCT-1307. Add optional parameters to distributed test perform method
- There are some cases when you need to pass parameters from a "perform" block when running a distributed test. It might be needed for reverse port forwarding tests when one part starts an HTTP server and needs to pass a random reserved port to the opposite side. This change modifies the "perform" method signature to pass optional parameters.
- Add test to verify parameters for perform action

(cherry picked from commit 69e30cfbb02bac5857073233585c13e33c495aec)

IJ-CR-134120

GitOrigin-RevId: c804bad92853b03f30ded71ed26f6447de496c85
2024-05-13 12:20:28 +00:00
Ivan Pashchenko
628a8d3531 GTW-6833: implement registerBackendLocationForGateway command
origin: remote dev shell launcher
reason: no reason to implement this in launchers, they don't have anything to do with the IDE default locations

GitOrigin-RevId: d489bd30e10a71b02d7662530458fde6d87c5108
2024-05-08 20:14:09 +00:00
Daniil Ovchinnikov
63058d231c IJPL-149498 rename namedChildScope -> childScope
GitOrigin-RevId: 8eb7b8706902a812aa9e6267e73b9884a9e127fe
2024-05-08 19:45:10 +00:00
Nikolay Chashnikov
ee4b366784 [rdct] snapshot builds don't use the same config for local IDE and frontend yet (GTW-2077)
GitOrigin-RevId: 7d7fb2354d2f0dc5224d5ed6f6af7882cb110164
2024-05-08 16:17:35 +00:00