databricks-cli/libs/process
Gleb Kanterov 57a5a65f87
Add ApplyPythonMutator (#1430)
## Changes
Add ApplyPythonMutator, which will fork the Python subprocess and
process pipe bundle configuration through it.

It's enabled through `experimental` section, for example:

```yaml
experimental:
  pydabs: 
    enable: true
    venv_path: .venv
```

For now, it's limited to two phases in the mutator pipeline:

- `load`: adds new jobs
- `init`: adds new jobs, or modifies existing ones

It's enforced that no jobs are modified in `load` and not jobs are
deleted in `load/init`, because, otherwise, it will break existing
assumptions.

## Tests
Unit tests
2024-06-20 08:43:08 +00:00
..
background.go Added process stubbing for easier testing of launched subprocesses (#963) 2023-11-09 14:24:05 +00:00
background_test.go Fix flaky test in `libs/process` (#1314) 2024-03-26 07:57:48 +00:00
forwarded.go Added process stubbing for easier testing of launched subprocesses (#963) 2023-11-09 14:24:05 +00:00
forwarded_test.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
opts.go Add ApplyPythonMutator (#1430) 2024-06-20 08:43:08 +00:00
opts_test.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
stub.go Stub out Python virtual environment installation for `labs` commands (#1057) 2023-12-11 16:30:19 +00:00
stub_test.go Added process stubbing for easier testing of launched subprocesses (#963) 2023-11-09 14:24:05 +00:00