vantage6 4.11.0rc2__py3-none-any.whl → 4.11.0rc4__py3-none-any.whl
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/cli/__build__ +1 -1
- vantage6/cli/dev/data/km_dataset.csv +2401 -0
- vantage6/cli/prometheus/monitoring_manager.py +4 -3
- vantage6/cli/prometheus/prometheus.yml +5 -0
- vantage6/cli/server/start.py +1 -1
- vantage6/cli/test/algo_test_scripts/algo_test_script.py +3 -4
- vantage6/cli/test/client_script.py +12 -5
- {vantage6-4.11.0rc2.dist-info → vantage6-4.11.0rc4.dist-info}/METADATA +3 -3
- {vantage6-4.11.0rc2.dist-info → vantage6-4.11.0rc4.dist-info}/RECORD +12 -10
- {vantage6-4.11.0rc2.dist-info → vantage6-4.11.0rc4.dist-info}/WHEEL +0 -0
- {vantage6-4.11.0rc2.dist-info → vantage6-4.11.0rc4.dist-info}/entry_points.txt +0 -0
- {vantage6-4.11.0rc2.dist-info → vantage6-4.11.0rc4.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
vantage6/cli/server/start.py
CHANGED
|
@@ -155,7 +155,7 @@ def cli_server_start(
|
|
|
155
155
|
_start_prometheus(ctx, prometheus_image, server_network_mgr)
|
|
156
156
|
elif ctx.config.get("prometheus"):
|
|
157
157
|
info(
|
|
158
|
-
"Prometheus is provided in the config file as external service."
|
|
158
|
+
"Prometheus is provided in the config file as external service. "
|
|
159
159
|
"Assuming this service is up and running."
|
|
160
160
|
)
|
|
161
161
|
else:
|
|
@@ -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(
|
|
@@ -135,9 +138,13 @@ def cli_test_client_script(
|
|
|
135
138
|
console = Console()
|
|
136
139
|
console.print(msg)
|
|
137
140
|
|
|
138
|
-
# clean up the test resources
|
|
141
|
+
# clean up the test resources. Keep the network if --keep is set, or if the network
|
|
142
|
+
# was created for this test. If the network was started for this test, stop it but
|
|
143
|
+
# do not remove it.
|
|
139
144
|
if not keep:
|
|
140
|
-
|
|
141
|
-
|
|
145
|
+
if create_dev_network or start_dev_network:
|
|
146
|
+
click_ctx.invoke(stop_demo_network, name=name)
|
|
147
|
+
if create_dev_network:
|
|
148
|
+
click_ctx.invoke(remove_demo_network, name=name)
|
|
142
149
|
|
|
143
150
|
return result.returncode
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vantage6
|
|
3
|
-
Version: 4.11.
|
|
3
|
+
Version: 4.11.0rc4
|
|
4
4
|
Summary: vantage6 command line interface
|
|
5
5
|
Home-page: https://github.com/vantage6/vantage6
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -16,8 +16,8 @@ Requires-Dist: questionary==1.10.0
|
|
|
16
16
|
Requires-Dist: rich==13.5.2
|
|
17
17
|
Requires-Dist: schema==0.7.5
|
|
18
18
|
Requires-Dist: SQLAlchemy==1.4.46
|
|
19
|
-
Requires-Dist: vantage6-common==4.11.
|
|
20
|
-
Requires-Dist: vantage6-client==4.11.
|
|
19
|
+
Requires-Dist: vantage6-common==4.11.0rc4
|
|
20
|
+
Requires-Dist: vantage6-client==4.11.0rc4
|
|
21
21
|
Provides-Extra: dev
|
|
22
22
|
Requires-Dist: coverage==6.4.4; extra == "dev"
|
|
23
23
|
Requires-Dist: black; extra == "dev"
|
|
@@ -4,7 +4,7 @@ tests_cli/test_example.py,sha256=0fw_v-lgZEacshWSDwLNyLMA1_xc48bKUGM3ll-n1L0,146
|
|
|
4
4
|
tests_cli/test_node_cli.py,sha256=XAKRS1-SXdeBRz3ob25q467soCIB178pKVz8MJVZbCQ,17534
|
|
5
5
|
tests_cli/test_server_cli.py,sha256=DLcOWM0ZCRTs-XMNsNKCOEELUMh22Ayow1FvAFLI0aA,5879
|
|
6
6
|
tests_cli/test_wizard.py,sha256=NIj59eiCBuVNJXwhofrWLmLIKAsD45gSOzqOFWLmWhY,4916
|
|
7
|
-
vantage6/cli/__build__,sha256=
|
|
7
|
+
vantage6/cli/__build__,sha256=SyJ3d9TdH8Ycb4hPSGQdArTRIdP9Moywi1Ux_Kzav4o,1
|
|
8
8
|
vantage6/cli/__init__.py,sha256=ZXbeQ_-g2-M4XYteWZkoO5lMFYhqjm5doQgGy1fq8i0,125
|
|
9
9
|
vantage6/cli/_version.py,sha256=7g1VYEN766Mf9wGlm8bPgQO8QzE0d-l9gt02DbZwjWE,701
|
|
10
10
|
vantage6/cli/cli.py,sha256=L_t0sHUwVkEumkYg6MsXm_sdAEWEjiz5DkUa51ihGtU,6318
|
|
@@ -34,6 +34,7 @@ vantage6/cli/dev/remove.py,sha256=R_OU_LXLDCnoD-2xnegg4lh0B3t8EgpqzDqueLx16io,37
|
|
|
34
34
|
vantage6/cli/dev/start.py,sha256=fUMoPAEpmXoDAJidAmjIziaHZX1yqEErcrTKEXqPik8,4471
|
|
35
35
|
vantage6/cli/dev/stop.py,sha256=gPy87r8T3nqe7RFJjlYE9Bns8N3RiPPcdzNIFCoqGRY,1430
|
|
36
36
|
vantage6/cli/dev/utils.py,sha256=DOTwPVXKZWhJfto9FG7EFgMhMaFJHXuhLDSlBCUCR1o,888
|
|
37
|
+
vantage6/cli/dev/data/km_dataset.csv,sha256=OrYF2ympb2QndiUOX_nTFGGB1HbAp2eOvZzrQ_PqJs4,31283
|
|
37
38
|
vantage6/cli/dev/data/olympic_athletes_2016.csv,sha256=WGycwcwMKEyOyJc3aEo4EhrnBJiTSE0kZAr50j2qzGk,77699
|
|
38
39
|
vantage6/cli/node/attach.py,sha256=6VADWJb4NTXu-TK_XR8It8J7OJ8f_xE2P8cpSd3vAzQ,2326
|
|
39
40
|
vantage6/cli/node/clean.py,sha256=uCty2GNuwoTybs1nIOygQLxtbleQ-rnnS6_4ieWVmCw,1199
|
|
@@ -48,7 +49,8 @@ vantage6/cli/node/start.py,sha256=mV4vDBBtFcxva4MJdg5ymsstefDM4bV4pmhSsVX1o4k,12
|
|
|
48
49
|
vantage6/cli/node/stop.py,sha256=-jw0DChIoUScVVwY4SBi_AvmdXT0XlMsGVuO9_vrpJI,4085
|
|
49
50
|
vantage6/cli/node/version.py,sha256=X921xyIvIPYObPac2Si5msZ2tay5ySidnPWmGj1ilZw,1959
|
|
50
51
|
vantage6/cli/node/common/__init__.py,sha256=ziGS3skkX6Kf4uvFqe22kdFbSck7mubNK5a-KgDAxX8,3467
|
|
51
|
-
vantage6/cli/prometheus/monitoring_manager.py,sha256=
|
|
52
|
+
vantage6/cli/prometheus/monitoring_manager.py,sha256=tNvguLonbVILqCDnHRizef5NwKnEOV0DuzTx0Bhd2HU,4906
|
|
53
|
+
vantage6/cli/prometheus/prometheus.yml,sha256=Q4i9lVknITBodHUMgarRnEsXfXTNuSdI6a-9pW4YCoI,98
|
|
52
54
|
vantage6/cli/rabbitmq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
53
55
|
vantage6/cli/rabbitmq/definitions.py,sha256=CcS9jG7ZGB6LjzHQqZ2FliDurPItUvNSjHrOYptORZg,637
|
|
54
56
|
vantage6/cli/rabbitmq/queue_manager.py,sha256=KGDGHy4NBN8O9xhjzfI7mh65i9lOQIqQwrOFqvGFdHI,7545
|
|
@@ -60,7 +62,7 @@ vantage6/cli/server/list.py,sha256=_kVBe7TrtUfT2ZLWPkVvKj4xx5AvS17e99Bwp0ajc_E,4
|
|
|
60
62
|
vantage6/cli/server/new.py,sha256=JnUMMD0UUSCOdO0K7v19l5HOV7vnMd9D38WUoEJ2F00,2094
|
|
61
63
|
vantage6/cli/server/remove.py,sha256=6tfKfVa5dYnZAKQYo_VlGZTuiugi7sh2F3U2cZ7mCmQ,1627
|
|
62
64
|
vantage6/cli/server/shell.py,sha256=7cSdBOwvloWyCz3RXHaFZUnxgNRV4gZUDmIFecV8Hks,1589
|
|
63
|
-
vantage6/cli/server/start.py,sha256=
|
|
65
|
+
vantage6/cli/server/start.py,sha256=K_AacVvUOYovHGCXghllqZKh6rkmvoKPrHSP84au6Pc,9615
|
|
64
66
|
vantage6/cli/server/stop.py,sha256=CP8WtMLkxRhKRr6PnATkCzjJoSVzy9XR9B1ETWtarmU,4422
|
|
65
67
|
vantage6/cli/server/version.py,sha256=aXAztHEky_F2jPbfPdHPfsAY7rdTurl0_3S6bL94_QQ,1318
|
|
66
68
|
vantage6/cli/server/common/__init__.py,sha256=htv0mFYa4GhIHdzA2xqUUgKhHcMh09UQERlIjIgrwOM,2062
|
|
@@ -68,14 +70,14 @@ vantage6/cli/template/algo_store_config.j2,sha256=XR-ly-47p6egH8lVh4lZZDh3YSV4kF
|
|
|
68
70
|
vantage6/cli/template/node_config.j2,sha256=1uK21oLan2r48-v_HyIW2TeO5bR9ER_Wy0PICHQ-xXo,781
|
|
69
71
|
vantage6/cli/template/server_config.j2,sha256=3gEPY8YlqUMAQEgfR7a1HTU8WaCRhVzTS-IwPhsU1Gg,802
|
|
70
72
|
vantage6/cli/template/server_import_config.j2,sha256=9WT2XeG9-ADoYLb4ahXhof3i9Fcvg0oqwNPyFwLJpvc,1827
|
|
71
|
-
vantage6/cli/test/client_script.py,sha256=
|
|
73
|
+
vantage6/cli/test/client_script.py,sha256=WcwA-sVTwq2GMUoXy-5onElS99lLgrcyPMBEEiy9lMI,4552
|
|
72
74
|
vantage6/cli/test/feature_tester.py,sha256=M8hvebupPwYjcBZoUB8GB3qb8G1-d3ipNzRMc_3-Z8E,2761
|
|
73
75
|
vantage6/cli/test/integration_test.py,sha256=yQVG72XKDNH_eOPTsf3pb65FCBwJzMxn5VNfUGemJBM,3808
|
|
74
76
|
vantage6/cli/test/algo_test_scripts/algo_test_arguments.py,sha256=PfJUwXXbOUvs8W2i3XqIoNNkqvnXmRTv19kKcpg9ouk,888
|
|
75
|
-
vantage6/cli/test/algo_test_scripts/algo_test_script.py,sha256=
|
|
77
|
+
vantage6/cli/test/algo_test_scripts/algo_test_script.py,sha256=8x2KiSrsxLFbheq6_E_iNEOxDnFdEG3UV60cBfjxV8o,2684
|
|
76
78
|
vantage6/cli/test/common/diagnostic_runner.py,sha256=x_4ikihgoSTKI914pqlgVziBSg5LpV6MheO6O_GBCeA,6657
|
|
77
|
-
vantage6-4.11.
|
|
78
|
-
vantage6-4.11.
|
|
79
|
-
vantage6-4.11.
|
|
80
|
-
vantage6-4.11.
|
|
81
|
-
vantage6-4.11.
|
|
79
|
+
vantage6-4.11.0rc4.dist-info/METADATA,sha256=Q7bmxgxoynlUV_ENNH6jLGBQPE1X4RUm5OZOL6jTxkc,10890
|
|
80
|
+
vantage6-4.11.0rc4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
81
|
+
vantage6-4.11.0rc4.dist-info/entry_points.txt,sha256=YFBvwjxoeAGxYyPC-YevEgOBBYRGaXkS6jiOGGCLNy0,157
|
|
82
|
+
vantage6-4.11.0rc4.dist-info/top_level.txt,sha256=CYDIBS8jEfFq5YCs_Fuit54K9-3wdosZppTrsymIoUk,19
|
|
83
|
+
vantage6-4.11.0rc4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|