uber-compose 3.0.0a8__tar.gz → 3.0.0a9__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.0.0a8/uber_compose.egg-info → uber_compose-3.0.0a9}/PKG-INFO +1 -1
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/PARALLELISM.md +2 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/uber_compose.py +17 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/plugin.py +25 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9/uber_compose.egg-info}/PKG-INFO +1 -1
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/LICENSE +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/MANIFEST.in +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/README.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/CLI_USAGE.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/E2E_CONTAINER_SETUP.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/HOOKS.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/LLM_RULES.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/PLAN_CONSISTENCY.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/README.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/RELEASE_TAGS.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/UBER_COMPOSE_VEDRO_CONFIG.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/X_MIGRATION.md +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/docs/common.puml +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/requirements.txt +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/setup.cfg +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/setup.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/constants.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose_shell/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose_shell/interface.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose_shell/types.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/sequence_run_types.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/system_docker_compose.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/compose_files.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/compose_instance_cfg.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/env_files.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/process_command_output.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/shell_process.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/state_waiting.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/env_description/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/env_description/env_tools.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/env_description/env_types.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/errors/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/errors/migrations.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/errors/up.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/broken_services.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/bytes_pickle.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/countdown_counter.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/current_env.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/env_id.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/exec_record.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/exec_result.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/health_policy.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/hooks.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/jobs_result.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/labels.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/parameterization.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/singleton.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/state_keeper.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/helpers/workers_per_env.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/output/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/output/console.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/output/styles.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/details.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/grouper.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/grouping.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/planner.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/plugin.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/runner.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/types.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/worker_api.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/parallel_plugin/worker_filter.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/docker_compose_files_path.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/docker_compose_service_deps.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/search_docker_compose_files.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/services_construction.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/base_structures/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/base_structures/common_json_cli.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/helpers/__init__.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/helpers/scenario_ordering.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/helpers/scenario_tag_processing.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/helpers/test_env_vars_setter.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/version +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/version.py +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose.egg-info/SOURCES.txt +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose.egg-info/dependency_links.txt +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose.egg-info/requires.txt +0 -0
- {uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose.egg-info/top_level.txt +0 -0
|
@@ -100,6 +100,7 @@ lists, or `--uc-mt-plan=2` for full test paths.
|
|
|
100
100
|
| `worker_timeout` | parallel plugin config | Kill a worker after N seconds |
|
|
101
101
|
| `--uc-mt` | CLI | Enable parallel worker processes |
|
|
102
102
|
| `--uc-workers-per-env=N`, `--uc-wpe=N` | CLI | Override `workers_per_env` for every env, for this run only |
|
|
103
|
+
| `--uc-melt-down`, `--uc-mt-md` | CLI | Down extra replicas of planned envs above the required worker count |
|
|
103
104
|
| `--uc-mt-plan[=LEVEL]` | CLI | Print the execution plan without starting containers or workers |
|
|
104
105
|
|
|
105
106
|
`workers_per_env` keys are environment descriptions. You can use the
|
|
@@ -335,6 +336,7 @@ tests cannot isolate.
|
|
|
335
336
|
|---|---|---|
|
|
336
337
|
| `--uc-mt` | Master switch: create parallel worker processes | Always, when you want any parallelism |
|
|
337
338
|
| `--uc-workers-per-env=N`, `--uc-wpe=N` | Override `workers_per_env` for every env, for this run only | Temporary experiments or CI override |
|
|
339
|
+
| `--uc-melt-down`, `--uc-mt-md` | Down extra replicas above the required worker count | Clean up after reducing workers per env |
|
|
338
340
|
| `--uc-mt-plan[=LEVEL]` | Print the execution plan without starting anything | Preview workers, envs, and test assignment |
|
|
339
341
|
| `--uc-ju` | Start environment(s) and exit without running tests | CI warm-up, debugging |
|
|
340
342
|
| `--uc-fr` | Force restart of services | After changing compose/env config |
|
|
@@ -255,6 +255,23 @@ class SystemUberCompose:
|
|
|
255
255
|
await self._down_extra_replicas(resolved_template, compose_files, desired_env_ids)
|
|
256
256
|
return ready_envs
|
|
257
257
|
|
|
258
|
+
async def melt_down_extra_replicas(
|
|
259
|
+
self,
|
|
260
|
+
config_template: Environment | None,
|
|
261
|
+
compose_files: str | None = None,
|
|
262
|
+
desired_env_ids: list[str] | None = None,
|
|
263
|
+
services_override: list[OverridenService] | None = None,
|
|
264
|
+
) -> None:
|
|
265
|
+
compose_files = self._resolve_compose_files(compose_files)
|
|
266
|
+
resolved_template = self._resolve_config_template(
|
|
267
|
+
config_template, compose_files, services_override
|
|
268
|
+
)
|
|
269
|
+
await self._down_extra_replicas(
|
|
270
|
+
resolved_template,
|
|
271
|
+
compose_files,
|
|
272
|
+
list(desired_env_ids or []),
|
|
273
|
+
)
|
|
274
|
+
|
|
258
275
|
def _env_replicas(
|
|
259
276
|
self,
|
|
260
277
|
config_template: Environment | None,
|
|
@@ -74,6 +74,7 @@ class VedroUberComposePlugin(Plugin):
|
|
|
74
74
|
|
|
75
75
|
self._force_restart = False
|
|
76
76
|
self._just_up = False
|
|
77
|
+
self._melt_down = False
|
|
77
78
|
self._logging_policy = None
|
|
78
79
|
self._health_policy = config.health_policy
|
|
79
80
|
self._logger = Logger(self._logging_policy, Constants())
|
|
@@ -132,6 +133,8 @@ class VedroUberComposePlugin(Plugin):
|
|
|
132
133
|
if plan is not None:
|
|
133
134
|
try:
|
|
134
135
|
await self._up_plan_environments(plan)
|
|
136
|
+
if self._melt_down:
|
|
137
|
+
await self._melt_down_plan_environments(plan)
|
|
135
138
|
except Exception as e:
|
|
136
139
|
self._logger.stage(
|
|
137
140
|
Text(
|
|
@@ -247,6 +250,20 @@ class VedroUberComposePlugin(Plugin):
|
|
|
247
250
|
env_id=env_id,
|
|
248
251
|
)
|
|
249
252
|
|
|
253
|
+
async def _melt_down_plan_environments(self, plan) -> None:
|
|
254
|
+
desired_by_group: dict[str, set[str]] = {}
|
|
255
|
+
for assignment in plan.assignments:
|
|
256
|
+
for group_key, env_id in assignment.namespace_map.items():
|
|
257
|
+
desired_by_group.setdefault(group_key, set()).add(env_id)
|
|
258
|
+
|
|
259
|
+
for group_key, desired_env_ids in desired_by_group.items():
|
|
260
|
+
await self._uber_compose_client.melt_down_extra_replicas(
|
|
261
|
+
config_template=plan.env_templates.get(group_key),
|
|
262
|
+
compose_files=self._compose_choice.compose_files,
|
|
263
|
+
desired_env_ids=sorted(desired_env_ids),
|
|
264
|
+
services_override=self._uc_external_services,
|
|
265
|
+
)
|
|
266
|
+
|
|
250
267
|
async def handle_pre_run_scenario(self, event: ScenarioRunEvent):
|
|
251
268
|
scenario = event.scenario_result.scenario
|
|
252
269
|
env_config = await extract_scenario_config(scenario)
|
|
@@ -320,6 +337,12 @@ class VedroUberComposePlugin(Plugin):
|
|
|
320
337
|
type=str,
|
|
321
338
|
help="Filter by environment name/description")
|
|
322
339
|
|
|
340
|
+
group.add_argument("--uc-melt-down", "--uc-mt-md",
|
|
341
|
+
dest="uc_melt_down",
|
|
342
|
+
action='store_true',
|
|
343
|
+
default=False,
|
|
344
|
+
help="Down extra parallel env replicas above the required count")
|
|
345
|
+
|
|
323
346
|
group.add_argument("--uc-mt-plan",
|
|
324
347
|
type=int,
|
|
325
348
|
nargs='?',
|
|
@@ -366,6 +389,8 @@ class VedroUberComposePlugin(Plugin):
|
|
|
366
389
|
if event.args.uc_ju:
|
|
367
390
|
self._just_up = event.args.uc_ju
|
|
368
391
|
|
|
392
|
+
self._melt_down = bool(getattr(event.args, 'uc_melt_down', False))
|
|
393
|
+
|
|
369
394
|
if event.args.uc_env:
|
|
370
395
|
self._uc_env = event.args.uc_env
|
|
371
396
|
|
|
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.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose_shell/__init__.py
RENAMED
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose_shell/interface.py
RENAMED
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/docker_compose_shell/types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/compose_instance_cfg.py
RENAMED
|
File without changes
|
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/core/utils/process_command_output.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
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/docker_compose_files_path.py
RENAMED
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/docker_compose_service_deps.py
RENAMED
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/utils/search_docker_compose_files.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/base_structures/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uber_compose-3.0.0a8 → uber_compose-3.0.0a9}/uber_compose/vedro_plugin/helpers/scenario_ordering.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
|