uber-compose 3.2.0__tar.gz → 3.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {uber_compose-3.2.0/uber_compose.egg-info → uber_compose-3.3.0}/PKG-INFO +1 -1
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/CLI_USAGE.md +4 -1
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/exec_strategies.py +18 -2
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/base_structures/common_json_cli.py +10 -12
- uber_compose-3.3.0/uber_compose/version +1 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0/uber_compose.egg-info}/PKG-INFO +1 -1
- uber_compose-3.2.0/uber_compose/version +0 -1
- {uber_compose-3.2.0 → uber_compose-3.3.0}/LICENSE +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/MANIFEST.in +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/README.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/E2E_CONTAINER_SETUP.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/ENV_LOCKS_FEATURE_REQUEST.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/EXEC_STRATEGIES.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/HOOKS.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/LLM_RULES.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/PARALLELISM.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/PLAN_CONSISTENCY.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/README.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/RELEASE_TAGS.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/UBER_COMPOSE_VEDRO_CONFIG.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/X_MIGRATION.md +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/docs/common.puml +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/requirements.txt +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/setup.cfg +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/setup.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/constants.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/interface.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/types.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/sequence_run_types.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/system_docker_compose.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/compose_files.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/compose_instance_cfg.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/env_files.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/process_command_output.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/shell_process.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/utils/state_waiting.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/env_description/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/env_description/env_tools.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/env_description/env_types.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/errors/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/errors/migrations.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/errors/mounted_files.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/errors/up.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/broken_services.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/bytes_pickle.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/countdown_counter.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/current_env.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/env_id.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/exec_record.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/exec_result.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/health_policy.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/hooks.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/jobs_result.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/labels.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/live_env.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/parameterization.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/singleton.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/state_keeper.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/helpers/workers_per_env.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/output/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/output/console.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/output/styles.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/details.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/grouper.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/grouping.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/planner.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/plugin.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/runner.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/types.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/worker_api.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/parallel_plugin/worker_filter.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/uber_compose.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/utils/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/utils/docker_compose_files_path.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/utils/docker_compose_service_deps.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/utils/search_docker_compose_files.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/utils/services_construction.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/base_structures/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/helpers/__init__.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/helpers/scenario_ordering.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/helpers/scenario_tag_processing.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/helpers/test_env_vars_setter.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/plugin.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/version.py +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose.egg-info/SOURCES.txt +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose.egg-info/dependency_links.txt +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose.egg-info/requires.txt +0 -0
- {uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose.egg-info/top_level.txt +0 -0
|
@@ -85,13 +85,16 @@ By default, `exec()` waits until the process exits.
|
|
|
85
85
|
|---|---|---|---|---|
|
|
86
86
|
| Wait until exit (default) | `wait` omitted (`wait=ProcessExit()` by default) | actual `int` | `True` | `exit_code == 0` and `stderr == []` |
|
|
87
87
|
| Wait until exit, timeout | `wait` omitted, `timeout=...` | `None` | `False` | `False` |
|
|
88
|
-
| Detached, don't wait | `wait=None`, `kill_after_command_still_running=False` | `None` | `True` | `False` — exit code is unknown |
|
|
88
|
+
| Detached, don't wait | `wait=None`, `kill_after_command_still_running=False` | `None` | `True` — wait was skipped on purpose, not failed | `False` — exit code is unknown;<br>check log errors explicitly: `result.stderr == []` |
|
|
89
|
+
| Detached with `&` | command ends with `&` (same as `wait=None`) | `None` | `True` — wait was skipped on purpose, not failed | `False` — exit code is unknown;<br>check log errors explicitly: `result.stderr == []` |
|
|
89
90
|
| Wait condition met, process stopped | callable returns `True` while process runs | `TerminatedByCondition(143/137/0)` | `True` | `True` if `stderr == []` |
|
|
90
91
|
| Wait condition met, process exited by itself | callable returns `True` after exit | actual `int` | `True` | `exit_code == 0` and `stderr == []` |
|
|
91
92
|
| Wait condition not met | callable returns `False` | `None` | `False` | `False` |
|
|
92
93
|
|
|
93
94
|
`stderr != []` makes `has_no_errors()` fail in every mode.
|
|
94
95
|
|
|
96
|
+
A trailing `&` also switches to detached mode, including inside `sh -c`:
|
|
97
|
+
|
|
95
98
|
```python
|
|
96
99
|
from time import sleep
|
|
97
100
|
from uber_compose import ExecLifeCyclePolicy
|
{uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/exec_strategies.py
RENAMED
|
@@ -91,8 +91,9 @@ class StatusFileExecStrategy(ExecStrategy):
|
|
|
91
91
|
wait = context.wait
|
|
92
92
|
timeout = self._resolve_timeout(context.timeout)
|
|
93
93
|
|
|
94
|
-
if
|
|
95
|
-
|
|
94
|
+
if self._is_background_command(command):
|
|
95
|
+
if command.endswith('&'):
|
|
96
|
+
command = command[:-1].strip()
|
|
96
97
|
wait = None
|
|
97
98
|
|
|
98
99
|
cmd_name = parse_process_command_name(command) if command else ''
|
|
@@ -183,6 +184,21 @@ class StatusFileExecStrategy(ExecStrategy):
|
|
|
183
184
|
stdout=stdout, cmd=command, exit_code=TerminatedByCondition(exit_code),
|
|
184
185
|
)
|
|
185
186
|
|
|
187
|
+
@staticmethod
|
|
188
|
+
def _is_background_command(command: str) -> bool:
|
|
189
|
+
stripped = command.strip()
|
|
190
|
+
if stripped.endswith('&'):
|
|
191
|
+
return True
|
|
192
|
+
|
|
193
|
+
try:
|
|
194
|
+
parts = shlex.split(stripped)
|
|
195
|
+
except ValueError:
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
if len(parts) >= 3 and parts[0] == 'sh' and parts[1] == '-c':
|
|
199
|
+
return StatusFileExecStrategy._is_background_command(parts[2])
|
|
200
|
+
return False
|
|
201
|
+
|
|
186
202
|
@staticmethod
|
|
187
203
|
def _resolve_timeout(timeout: TimeOutCheck | None) -> TimeOutCheck:
|
|
188
204
|
if timeout is not None:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
|
+
from dataclasses import fields
|
|
2
3
|
import json
|
|
3
4
|
import re
|
|
4
5
|
from typing import Callable
|
|
@@ -87,19 +88,16 @@ class CommandResult:
|
|
|
87
88
|
return prefix + repr(value)
|
|
88
89
|
|
|
89
90
|
def __str__(self):
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
self._format_value("exit_code", self.exit_code),
|
|
99
|
-
self._format_value("waiting_done_successfully", self.waiting_done_successfully),
|
|
100
|
-
]
|
|
91
|
+
formatted_fields = []
|
|
92
|
+
for field in fields(self):
|
|
93
|
+
key = field.name
|
|
94
|
+
if key == "stderr" and self.stderr != []:
|
|
95
|
+
key = "❌ stderr"
|
|
96
|
+
formatted_fields.append(
|
|
97
|
+
self._format_value(key, getattr(self, field.name)),
|
|
98
|
+
)
|
|
101
99
|
|
|
102
|
-
return f"{self.__class__.__name__}(\n" + ",\n".join(
|
|
100
|
+
return f"{self.__class__.__name__}(\n" + ",\n".join(formatted_fields) + "\n)"
|
|
103
101
|
|
|
104
102
|
def _has_no_errors(self) -> bool:
|
|
105
103
|
if self.stderr != []:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.3.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/__init__.py
RENAMED
|
File without changes
|
{uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/core/docker_compose_shell/interface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/base_structures/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/helpers/scenario_ordering.py
RENAMED
|
File without changes
|
|
File without changes
|
{uber_compose-3.2.0 → uber_compose-3.3.0}/uber_compose/vedro_plugin/helpers/test_env_vars_setter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|