Commit Graph

38 Commits

Author SHA1 Message Date
Konstantin Nisht
b6d3690b12 [threading] IJPL-149765: Rename writeAction to edtWriteAction #6
GitOrigin-RevId: 635c50933068a86ac0bf62608185bd359c7ac98c
2025-02-19 22:13:13 +00:00
Vladimir Krivosheev
b8245e1370 IJ-CR-146078 update bazel files
GitOrigin-RevId: 3bcfd10f71c84283bded464e142ead99edc6a278
2025-02-02 15:20:11 +00:00
Ilya.Kazakevich
1be9caaac9 Python tests: separate conda from vanilla python env types for tests.
With this change we can move conda into the separate module to decouple test framework from community.impl

GitOrigin-RevId: 589dc29f39d9d46252681c8f31b8fe482e63595f
2025-02-02 07:05:23 +00:00
Ilya.Kazakevich
88dc070d16 Python: move classes to access pythons created by setup-env script into right module.
We now store classes to access pythons installed by tests setup env right next to the script

GitOrigin-RevId: 922e5cfbb89e1e550679796e02deb24553ad6852
2025-02-02 07:05:23 +00:00
Ilya.Kazakevich
eab4466488 Python: move VirtualEnvReader out of psi-impl module
GitOrigin-RevId: c4d7bd0bf0c5592b13a2ccffcd217c1bae819637
2025-01-29 21:40:40 +00:00
Mikhail Golubev
b2271f0b0c [python][tests] Don't pollute test logs with stacktraces for absent tags.txt
GitOrigin-RevId: 284f7e4489f8232a2cf4ba6d07fc6f6cb231587e
2025-01-13 21:33:58 +00:00
Mikhail Golubev
85aa425068 [python][tests] Remove a username from an absolute path in a comment
GitOrigin-RevId: 648a01f3c4ac2e0bfed03fad865cf8da0bde1607
2025-01-13 21:33:58 +00:00
Mikhail Golubev
cdba7d9a15 [python][tests] Filter out README.txt inside setup-test-environment/build/pythons when looking for venvs
Now it's in sync with the logic in EnvTestSettings.getPythons.

GitOrigin-RevId: b8f2036484ff107b879b2383923488c6c28556fa
2025-01-13 21:33:58 +00:00
Ilya.Kazakevich
74393e4899 Python tests: move mock console to reuse it in different places
GitOrigin-RevId: efb2f54ef7b6c8e1f52f7bd64a54955f294b7dc5
2025-01-10 20:22:04 +00:00
Aleksandr Sorotskii
d7283df66c fixup py test setup in case no env variables are set
GitOrigin-RevId: fa4a50d7b34e6c49ffe0227e0931ef17f7136b76
2025-01-08 23:51:32 +00:00
Vladimir Krivosheev
0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
68d99c6550 cleanup
GitOrigin-RevId: 9cb238c220249088bfc75a448eb310b93c7fc45c
2024-12-26 14:56:01 +00:00
Vladimir Krivosheev
a522f96d66 do not export deps blindly (part 3)
GitOrigin-RevId: 7277ece9ded25f1111febc8dccaba9ac8cc75c21
2024-12-22 20:28:42 +00:00
Ilya.Kazakevich
f54ea8affd Python: Make version-specific methods static is PythonSdkFlavor: they aren't flavor-specific.
It is always `--version` and `Python [version]`, no need to have virtual overridable methods.
One doesn't need to know the flavor to get a python version.


(cherry picked from commit 63b16768f1dd299cb4cefb5fd935c44614d6ffb6)

IJ-CR-151990

GitOrigin-RevId: ebc2eb5428c10048cc6f17a6e5c99632b3f7d2cc
2024-12-19 20:53:06 +00:00
Ilya.Kazakevich
af1d6003b7 python tests: get all py3 tests (not only 312 which has "python3" test).
was: get only python3 tags (which happens to be python3.12 only)
now: get all pythons except conda and 2, sort them to the 3.12 goes first.

this change reflects `getTestEnvironments` contract better

GitOrigin-RevId: 448b5f67006028a73bfa60e87bd12b31ce032689
2024-12-18 22:25:59 +00:00
Ilya.Kazakevich
6f0f9cc8eb Python: move PythonBinary to reuse across the modules
GitOrigin-RevId: 4e79a8fd330e95eca09d81386ab6e143f8ad2c4a
2024-12-17 20:01:59 +00:00
Vladimir Krivosheev
87671ad22c extract intellij.platform.ide.observable (required to extract UI DSL)
GitOrigin-RevId: cf1e7fc1e73a9a6cfb29041d48dfd6f3286ef890
2024-12-16 19:34:14 +00:00
Ilya.Kazakevich
c66f31ae5c Python tests: move all reusable code to the framework module.
Other modules shouldn't depend on python tests module, but on framework only

GitOrigin-RevId: a8862f6734601c6218777493f9829136a8f4203a
2024-12-15 18:37:46 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Ilya.Kazakevich
30b1a110eb Python tests: move loadEnvs to the framework module to lose coupling.
Python tests module is for tests only.
Other modules shouldn't depend on it, they should depend on the framework module instead.

GitOrigin-RevId: 51bda8339ab8197f49bab6e9350e0334fe2a3ae8
2024-12-15 15:46:47 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Aleksandr Sorotskii
bd73ac7b00 cleanup dead code
GitOrigin-RevId: ca6caaa2f221c3f7e37c61335d0e685b8c44ea47
2024-09-16 23:14:05 +00:00
Ilya.Kazakevich
b1a4c55771 Python: VirtualEnvReader refactoring: move the same module as PythonSdkUtil, and substitute a couple of methods.
`PythonSdkUtil` duplicates VER logic. One Jython-specific thing was also removed as we do not need Jython anymore

GitOrigin-RevId: 658fc42b485ac074a6d89fce3c7408e51cdc8f95
2024-08-12 20:54:06 +00:00
Ilya.Kazakevich
6c7ce9ade4 Refactor setupSdk not to catch errors.
Errors have to be processed by caller, not by logging nor swing messages in a function itself.

GitOrigin-RevId: b617810835f41c6874c776a2a5762d7402123336
2024-07-12 19:18:13 +00:00
Ilya.Kazakevich
dbe26ecab3 [python] Fix env tests with conda.
If environment is conda, we must configure SDK in appropriate way (as bare python path is not enough for conda)

Also: no need to reset currently set additional data

GitOrigin-RevId: 663aa7f24cad138f2c06db711f6af602f68a780b
2024-02-02 18:35:48 +00:00
Ilya.Kazakevich
3b8b513936 Fix tests and prevent bugs in the future: commit SDK under write action only
GitOrigin-RevId: fda21f17f8a68005b0299fed33b9daecafa8bcc9
2023-12-07 20:24:03 +00:00
Elena Shaverdova
2a399e98ca Fix PyCharm perf tests with "setSdk: sdk is not registered in ProjectJdkTable"
GitOrigin-RevId: 0e2cd067a6836d9b3f30760c5f6aa59ef04761b9
2023-02-28 16:07:38 +00:00
Elena Shaverdova
f74b80d2bb Make setModuleSdk() behaviour same for tests and production
GitOrigin-RevId: b9684370761c8387b5b54111840cd853cfa557e1
2023-01-24 11:12:17 +00:00
Elena Shaverdova
2342683398 Improvements for CR-99206 PY-53631 PyCharm 2021.3 indexing files/folders/symlinks in excluded folder
GitOrigin-RevId: f92409ac5906ea7c3178b72090e76594d5ec0972
2022-12-14 01:39:49 +00:00
Ilya.Kazakevich
a4dcfdd16e PY-35978: Improve Conda support and refactor other parts to support it.
Each sdk has additional data with flavor and flavor-specific data. For target-based SDK there is also target information. ``PySdkExt`` has extension method that uses this data to execute code on some SDK. For Conda we store path to conda binary and env name.

GitOrigin-RevId: c63b57aac9b5a267b3a6710902670bfe7d10c722
2022-10-12 17:55:25 +00:00
Tagir Valeev
9038e3f77b Remove empty and irrelevant javadoc tags
GitOrigin-RevId: dcbbb8cff7ef267525129c464769f761d92c2120
2022-08-09 09:41:49 +00:00
Ilya.Kazakevich
b06e9cd7cb Fix perf test: `first` can't be null
GitOrigin-RevId: ab1d150d493bc49f14737eb7f4aeb43295a1cd4c
2021-07-21 17:21:11 +00:00
Dmitry Batkovich
9931d1f8d8 drop prebuilt indexes support
GitOrigin-RevId: ab8f7e277db2f56f518dc6546caba2fcfcd30926
2021-05-06 12:31:36 +00:00
Vladimir Krivosheev
a5b0712650 reduce usages of internal impl ApplicationInfoImpl class (to be able to hide it / move out from core to use JDK 11)
GitOrigin-RevId: f1f872290e46585aa2dedd74b8452d15ae958f56
2021-03-27 09:13:45 +00:00
Alexey Kudravtsev
caebf692ce fix project leak in light tests
GitOrigin-RevId: 55251f17c86427cdeafb373eaefc841740b2768b
2020-11-18 17:03:26 +00:00
Semyon Proshev
9109ab3521 Use editable copy of sdk instead of sdk modificator (PY-39477)
SdkModificator is not well supported in PythonSdkUpdater and editable copy could play its role instead.
The consequence is that changes are applied only after OK is clicked in `Show All` dialog.
Previously it could be came over by creating sdk modificator for original sdk.

GitOrigin-RevId: 5415eb3bb6c971342b1c1ff576c44bc4571d0bde
2020-11-05 18:58:08 +00:00
Stanislav Utikeev
3607636422 LAB-31 Move skeleton util methods from PythonSdkType to PythonSdkUtil
GitOrigin-RevId: 28433a354e92f57bdcfe589b18de05eb03ff2be4
2020-02-10 11:03:00 +00:00
Andrey Vlasovskikh
d055d648b2 Introduced intellij.python.community.testFramework instead of depending on intellij.python.tools
Module intellij.python.tools depends explicitly on PyCharm Community which leads to errors when
you try to run Python Community tests in the context of any other IDE. This commit introduces
a testFramework module for Python that now contains code from intellij.python.tools necessary
for running tests.

GitOrigin-RevId: 9789469edc396a8b0f7408d453017a5b4e1eebc2
2019-11-18 19:07:46 +00:00