uber-compose 2.2.2__tar.gz → 2.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-2.2.2 → uber_compose-2.3.0}/PKG-INFO +1 -1
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/helpers/scenario_ordering.py +6 -1
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/plugin.py +2 -4
- uber_compose-2.3.0/uber_compose/version +1 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose.egg-info/PKG-INFO +1 -1
- uber_compose-2.2.2/uber_compose/version +0 -1
- {uber_compose-2.2.2 → uber_compose-2.3.0}/LICENSE +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/README.md +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/setup.cfg +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/setup.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/constants.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/docker_compose.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/docker_compose_shell/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/docker_compose_shell/interface.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/docker_compose_shell/types.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/sequence_run_types.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/system_docker_compose.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/compose_files.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/compose_instance_cfg.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/env_files.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/process_command_output.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/shell_process.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/core/utils/state_waiting.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/env_description/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/env_description/env_tools.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/env_description/env_types.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/errors/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/errors/migrations.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/errors/up.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/broken_services.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/bytes_pickle.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/countdown_counter.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/exec_record.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/exec_result.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/health_policy.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/jobs_result.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/labels.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/singleton.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/helpers/state_keeper.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/output/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/output/console.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/output/styles.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/uber_compose.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/utils/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/utils/docker_compose_files_path.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/utils/docker_compose_service_deps.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/utils/search_docker_compose_files.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/utils/services_construction.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/base_structures/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/base_structures/common_json_cli.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/helpers/__init__.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/helpers/scenario_tag_processing.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/helpers/test_env_vars_setter.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/version.py +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose.egg-info/SOURCES.txt +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose.egg-info/dependency_links.txt +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose.egg-info/requires.txt +0 -0
- {uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose.egg-info/top_level.txt +0 -0
{uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/helpers/scenario_ordering.py
RENAMED
|
@@ -11,7 +11,12 @@ class EnvTagsOrderer(ScenarioOrderer):
|
|
|
11
11
|
async def sort(self, scenarios: List[VirtualScenario]) -> List[VirtualScenario]:
|
|
12
12
|
copied = scenarios[:]
|
|
13
13
|
|
|
14
|
+
keys = {}
|
|
15
|
+
for scenario in copied:
|
|
16
|
+
config = await extract_scenario_config(scenario)
|
|
17
|
+
keys[id(scenario)] = base64_pickled(config)
|
|
18
|
+
|
|
14
19
|
return sorted(
|
|
15
20
|
copied,
|
|
16
|
-
key=lambda x:
|
|
21
|
+
key=lambda x: keys[id(x)]
|
|
17
22
|
)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from collections import OrderedDict
|
|
1
2
|
import sys
|
|
2
3
|
from typing import Type
|
|
3
4
|
from typing import Union
|
|
@@ -73,6 +74,7 @@ class VedroUberComposePlugin(Plugin):
|
|
|
73
74
|
|
|
74
75
|
def on_config_loaded(self, event: ConfigLoadedEvent) -> None:
|
|
75
76
|
self._global_config: ConfigType = event.config
|
|
77
|
+
self._global_config.Registry.ScenarioOrderer.register(EnvTagsOrderer, self)
|
|
76
78
|
|
|
77
79
|
async def handle_prepare_scenarios(self, event: StartupEvent) -> None:
|
|
78
80
|
if self._uber_compose_client is None:
|
|
@@ -89,10 +91,6 @@ class VedroUberComposePlugin(Plugin):
|
|
|
89
91
|
if not needed_configs:
|
|
90
92
|
return
|
|
91
93
|
|
|
92
|
-
# If no parallelism allowed, reorder scenarios by env tags
|
|
93
|
-
if len(needed_configs) > self._compose_choice.parallel_env_limit:
|
|
94
|
-
self._global_config.Registry.ScenarioOrderer.register(EnvTagsOrderer, self)
|
|
95
|
-
|
|
96
94
|
# Up all needed env simultaneously if parallelism allowed
|
|
97
95
|
try:
|
|
98
96
|
if self._compose_choice.parallel_env_limit >= len(needed_configs):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.2
|
|
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-2.2.2 → uber_compose-2.3.0}/uber_compose/core/docker_compose_shell/__init__.py
RENAMED
|
File without changes
|
{uber_compose-2.2.2 → uber_compose-2.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
|
{uber_compose-2.2.2 → uber_compose-2.3.0}/uber_compose/vedro_plugin/base_structures/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uber_compose-2.2.2 → uber_compose-2.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
|