vantage6 4.11.0rc3__tar.gz → 4.12.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.
Potentially problematic release.
This version of vantage6 might be problematic. Click here for more details.
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/PKG-INFO +1 -1
- vantage6-4.12.0/vantage6/cli/__build__ +1 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/_version.py +1 -1
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/context/server.py +1 -1
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/prometheus/monitoring_manager.py +4 -3
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/start.py +2 -2
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/stop.py +1 -1
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/algo_test_scripts/algo_test_script.py +3 -4
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/client_script.py +5 -2
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6.egg-info/PKG-INFO +1 -1
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6.egg-info/requires.txt +2 -2
- vantage6-4.11.0rc3/vantage6/cli/__build__ +0 -1
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/setup.cfg +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/setup.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/tests_cli/__init__.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/tests_cli/test_client_script.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/tests_cli/test_example.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/tests_cli/test_node_cli.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/tests_cli/test_server_cli.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/tests_cli/test_wizard.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/__init__.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algorithm/create.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algorithm/update.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/attach.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/files.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/list.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/new.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/remove.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/start.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/algostore/stop.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/cli.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/common/decorator.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/common/start.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/common/utils.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/configuration_manager.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/configuration_wizard.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/context/__init__.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/context/algorithm_store.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/context/base_server.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/context/node.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/create.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/data/km_dataset.csv +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/data/olympic_athletes_2016.csv +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/remove.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/start.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/stop.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/dev/utils.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/globals.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/attach.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/clean.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/common/__init__.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/create_private_key.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/files.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/list.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/new.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/remove.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/restart.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/set_api_key.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/start.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/stop.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/node/version.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/prometheus/prometheus.yml +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/rabbitmq/__init__.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/rabbitmq/definitions.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/rabbitmq/queue_manager.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/rabbitmq/rabbitmq.config +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/attach.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/common/__init__.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/files.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/import_.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/list.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/new.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/remove.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/shell.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/server/version.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/template/algo_store_config.j2 +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/template/node_config.j2 +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/template/server_config.j2 +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/template/server_import_config.j2 +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/algo_test_scripts/algo_test_arguments.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/common/diagnostic_runner.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/feature_tester.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/integration_test.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/utils.py +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6.egg-info/SOURCES.txt +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6.egg-info/dependency_links.txt +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6.egg-info/entry_points.txt +0 -0
- {vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
|
@@ -7,7 +7,7 @@ with open(os.path.join(here, "__build__")) as fp:
|
|
|
7
7
|
__build__ = json.load(fp)
|
|
8
8
|
|
|
9
9
|
# Module version
|
|
10
|
-
version_info = (4,
|
|
10
|
+
version_info = (4, 12, 0, "final", __build__, 0)
|
|
11
11
|
|
|
12
12
|
# Module version stage suffix map
|
|
13
13
|
_specifier_ = {"alpha": "a", "beta": "b", "candidate": "rc", "final": ""}
|
|
@@ -69,7 +69,7 @@ class ServerContext(BaseServerContext):
|
|
|
69
69
|
str
|
|
70
70
|
Prometheus container name, unique to this server instance.
|
|
71
71
|
"""
|
|
72
|
-
return f"{APPNAME}-prometheus"
|
|
72
|
+
return f"{APPNAME}-{self.name}-{self.scope}-prometheus"
|
|
73
73
|
|
|
74
74
|
@property
|
|
75
75
|
def prometheus_dir(self) -> Path:
|
|
@@ -37,7 +37,7 @@ class PrometheusServer:
|
|
|
37
37
|
self.network_mgr = network_mgr
|
|
38
38
|
self.docker = docker.from_env()
|
|
39
39
|
self.image = image if image else DEFAULT_PROMETHEUS_IMAGE
|
|
40
|
-
self.config_file = Path(
|
|
40
|
+
self.config_file = Path(__file__).parent / PROMETHEUS_CONFIG
|
|
41
41
|
self.data_dir = self.ctx.prometheus_dir
|
|
42
42
|
|
|
43
43
|
def start(self):
|
|
@@ -96,8 +96,9 @@ class PrometheusServer:
|
|
|
96
96
|
server_address = f"{server_hostname}:{prometheus_exporter_port}"
|
|
97
97
|
|
|
98
98
|
info(
|
|
99
|
-
f"Using Docker container hostname '{server_hostname}' for Prometheus
|
|
100
|
-
"Ensure Prometheus is in the same Docker network to resolve
|
|
99
|
+
f"Using Docker container hostname '{server_hostname}' for Prometheus "
|
|
100
|
+
"target. Ensure Prometheus is in the same Docker network to resolve "
|
|
101
|
+
"this address."
|
|
101
102
|
)
|
|
102
103
|
|
|
103
104
|
with open(self.config_file, "r") as f:
|
|
@@ -153,9 +153,9 @@ def cli_server_start(
|
|
|
153
153
|
):
|
|
154
154
|
info("Starting Prometheus container")
|
|
155
155
|
_start_prometheus(ctx, prometheus_image, server_network_mgr)
|
|
156
|
-
elif ctx.config.get("prometheus"):
|
|
156
|
+
elif ctx.config.get("prometheus", {}).get("enabled"):
|
|
157
157
|
info(
|
|
158
|
-
"Prometheus is
|
|
158
|
+
"Prometheus is enabled but is set not to be started by vantage6. "
|
|
159
159
|
"Assuming this service is up and running."
|
|
160
160
|
)
|
|
161
161
|
else:
|
|
@@ -118,7 +118,7 @@ def _stop_server_containers(
|
|
|
118
118
|
f"{Style.RESET_ALL} container."
|
|
119
119
|
)
|
|
120
120
|
|
|
121
|
-
if ctx.config.get("prometheus", {}).get("
|
|
121
|
+
if ctx.config.get("prometheus", {}).get("start_with_server"):
|
|
122
122
|
remove_container_if_exists(client, name=ctx.prometheus_container_name)
|
|
123
123
|
info(
|
|
124
124
|
f"Stopped the {Fore.GREEN}{ctx.prometheus_container_name}"
|
{vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/algo_test_scripts/algo_test_script.py
RENAMED
|
@@ -71,10 +71,9 @@ def run_test(custom_args: dict | None = None):
|
|
|
71
71
|
|
|
72
72
|
else:
|
|
73
73
|
# Run the task for each algorithm in the arguments file
|
|
74
|
-
for algo in arguments.args:
|
|
75
|
-
logging.info(
|
|
76
|
-
|
|
77
|
-
task_args = arguments.args[algo]
|
|
74
|
+
for algo, task_args in arguments.args.items():
|
|
75
|
+
logging.info("Running task for %s", algo)
|
|
76
|
+
logging.info("Task arguments: %s", task_args)
|
|
78
77
|
create_and_run_task(client, task_args, algo)
|
|
79
78
|
|
|
80
79
|
|
|
@@ -11,6 +11,7 @@ from vantage6.cli.dev.create import create_demo_network
|
|
|
11
11
|
from vantage6.cli.dev.remove import remove_demo_network
|
|
12
12
|
from vantage6.cli.dev.start import start_demo_network
|
|
13
13
|
from vantage6.cli.dev.stop import stop_demo_network
|
|
14
|
+
from vantage6.cli.utils import prompt_config_name
|
|
14
15
|
from vantage6.common.globals import Ports
|
|
15
16
|
|
|
16
17
|
TEST_FILE_PATH = Path(__file__).parent / "algo_test_scripts" / "algo_test_script.py"
|
|
@@ -69,8 +70,8 @@ TEST_FILE_PATH = Path(__file__).parent / "algo_test_scripts" / "algo_test_script
|
|
|
69
70
|
@click.pass_context
|
|
70
71
|
def cli_test_client_script(
|
|
71
72
|
click_ctx: click.Context,
|
|
72
|
-
script: Path,
|
|
73
|
-
task_arguments: str,
|
|
73
|
+
script: Path | None,
|
|
74
|
+
task_arguments: str | None,
|
|
74
75
|
name: str,
|
|
75
76
|
server_url: str,
|
|
76
77
|
create_dev_network: bool,
|
|
@@ -95,6 +96,8 @@ def cli_test_client_script(
|
|
|
95
96
|
except json.JSONDecodeError:
|
|
96
97
|
raise click.UsageError("task-arguments must be a valid JSON string.")
|
|
97
98
|
|
|
99
|
+
name = prompt_config_name(name)
|
|
100
|
+
|
|
98
101
|
# create the network
|
|
99
102
|
if create_dev_network:
|
|
100
103
|
click_ctx.invoke(
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3
|
|
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
|
|
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
|
{vantage6-4.11.0rc3 → vantage6-4.12.0}/vantage6/cli/test/algo_test_scripts/algo_test_arguments.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
|