Commit Graph

8 Commits

Author SHA1 Message Date
Vitaly Legchilkin
9babc6fe37 [python][exec service] add executeInteractive (PY-60410)
To work with stdin/stdout execute interactive allows direct access to the EelProcess.

(cherry picked from commit 81cfbded1a9e547bdecdd6224d13cd4bc7184892)

GitOrigin-RevId: f1089d8b3bf309f64d69e685e3497277b12e1970
2025-03-13 19:20:41 +00:00
Ilya.Kazakevich
d0b2de84bb Python: test renamed
GitOrigin-RevId: ede87b0b16f644a2d8663d541ec5bb8c23130d04
2025-02-20 00:26:25 +00:00
Ilya.Kazakevich
d066a2f02d Python: test renamed to be included into TC tests
GitOrigin-RevId: bdc70d54638f411ccffc4b45fcf003eb9d469317
2025-02-19 21:27:25 +00:00
Vitaly Legchilkin
d1bac97eb8 [python] ExecService / PyError adjustments (PY-60410)
+ replace processDescription and timeout fields with ExecOptions
+ add workingDirectory and env variables to exec options
+ support ProcessOutputTransformer for cases when both stdout/stderr and custom error handling is needed
+ make PyError classes open to have custom business errors

GitOrigin-RevId: 99c969e730cdbf23df4c9b176a43f78ede43001a
2025-02-12 21:19:30 +00:00
Vladimir Krivosheev
b8245e1370 IJ-CR-146078 update bazel files
GitOrigin-RevId: 3bcfd10f71c84283bded464e142ead99edc6a278
2025-02-02 15:20:11 +00:00
Ilya.Kazakevich
e0e38a7314 Python: ExecService: clean-up test and include into idea-main tests to be run in aggregator
GitOrigin-RevId: 52cacd8b0626a9ca13c29c08d6a60574bae0ed01
2025-02-02 05:05:52 +00:00
Ilya.Kazakevich
1bb2332f0c Python: ExecService API clean-up: it can only return ExecException, not PyError
GitOrigin-RevId: ca635cc7b5b639cb5d6434f7f360d6ddf1de0eb1
2025-01-31 23:16:54 +00:00
Ilya.Kazakevich
9d33ede5a9 Python: introduce ExecService.
This service should be used to execute one-shot processes (when you are only interested in execute-and-get-result).
It also supports simple helpers.

Code is fully Eel-compatible.

See `ExecService` and its showcase as an entry.

GitOrigin-RevId: 38f04914667b9b6c979c3cfe5acdd48718a75229
2025-01-31 06:21:41 +00:00