opentf-toolkit-nightly 0.61.0.dev1263__py3-none-any.whl → 0.61.0.dev1271__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.
- opentf/scripts/startup.py +18 -1
- {opentf_toolkit_nightly-0.61.0.dev1263.dist-info → opentf_toolkit_nightly-0.61.0.dev1271.dist-info}/METADATA +1 -1
- {opentf_toolkit_nightly-0.61.0.dev1263.dist-info → opentf_toolkit_nightly-0.61.0.dev1271.dist-info}/RECORD +6 -6
- {opentf_toolkit_nightly-0.61.0.dev1263.dist-info → opentf_toolkit_nightly-0.61.0.dev1271.dist-info}/LICENSE +0 -0
- {opentf_toolkit_nightly-0.61.0.dev1263.dist-info → opentf_toolkit_nightly-0.61.0.dev1271.dist-info}/WHEEL +0 -0
- {opentf_toolkit_nightly-0.61.0.dev1263.dist-info → opentf_toolkit_nightly-0.61.0.dev1271.dist-info}/top_level.txt +0 -0
opentf/scripts/startup.py
CHANGED
|
@@ -56,6 +56,7 @@ ENVIRONMENT_VARIABLES = {
|
|
|
56
56
|
'HTTPS_PROXY': None,
|
|
57
57
|
'KEY_SIZE': 4096,
|
|
58
58
|
'NO_PROXY': None,
|
|
59
|
+
'OPENTF_TELEMETRY': None,
|
|
59
60
|
'OPENTF_ALLURE_ENABLED': None,
|
|
60
61
|
'OPENTF_AUTHORIZATION_MODE': None,
|
|
61
62
|
'OPENTF_AUTHORIZATION_POLICY_FILE': None,
|
|
@@ -222,6 +223,9 @@ def parse_and_start(
|
|
|
222
223
|
) -> List[Any]:
|
|
223
224
|
"""Lookup item manifests and start them if not disabled."""
|
|
224
225
|
result = []
|
|
226
|
+
if not paths:
|
|
227
|
+
logging.warning('No paths to search for %s, aborting', item)
|
|
228
|
+
return result
|
|
225
229
|
for path in paths:
|
|
226
230
|
for entry in os.walk(path):
|
|
227
231
|
logging.debug("Reading path '%s'.", entry[0])
|
|
@@ -284,6 +288,19 @@ def maybe_start_eventbus(conf: Dict[str, Any]) -> List[Any]:
|
|
|
284
288
|
return []
|
|
285
289
|
|
|
286
290
|
|
|
291
|
+
def maybe_start_otelcol():
|
|
292
|
+
if (v := _get_env('OPENTF_TELEMETRY')) and v.lower() in ('true', 'yes', 'on', '1'):
|
|
293
|
+
try:
|
|
294
|
+
cmd = '"/usr/local/bin/otelcol --config=file:/app/otelcol-config.yaml $OTELCOL_EXTRA_OPTIONS"'
|
|
295
|
+
logging.info('Starting OpenTelemetry Collector...')
|
|
296
|
+
pid = subprocess.Popen(f'sh -c {cmd}', shell=True)
|
|
297
|
+
logging.debug('(pid is %d.)', pid.pid)
|
|
298
|
+
return [pid]
|
|
299
|
+
except Exception as err:
|
|
300
|
+
logging.error('Failed to start OpenTelemetry Collector: %s.', str(err))
|
|
301
|
+
return []
|
|
302
|
+
|
|
303
|
+
|
|
287
304
|
def _wait(what: str, ready, endpoint: str, headers: Optional[Dict[str, str]] = None):
|
|
288
305
|
start = time.monotonic()
|
|
289
306
|
while True:
|
|
@@ -621,7 +638,7 @@ def main():
|
|
|
621
638
|
plugins_idx = len(running)
|
|
622
639
|
logging.info('Starting Plugins...')
|
|
623
640
|
running += start_plugins(conf)
|
|
624
|
-
|
|
641
|
+
running += maybe_start_otelcol()
|
|
625
642
|
logging.info('OpenTestFactory Orchestrator Ready.')
|
|
626
643
|
if services_idx:
|
|
627
644
|
logging.info(' Started eventbus.')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: opentf-toolkit-nightly
|
|
3
|
-
Version: 0.61.0.
|
|
3
|
+
Version: 0.61.0.dev1271
|
|
4
4
|
Summary: OpenTestFactory Orchestrator Toolkit
|
|
5
5
|
Home-page: https://gitlab.com/henixdevelopment/open-source/opentestfactory/python-toolkit
|
|
6
6
|
Author: Martin Lafaix
|
|
@@ -54,12 +54,12 @@ opentf/schemas/opentestfactory.org/v1beta1/ServiceConfig.json,sha256=m5ZgWAKbutu
|
|
|
54
54
|
opentf/schemas/opentestfactory.org/v1beta1/Workflow.json,sha256=QZ8mM9PhzsI9gTmwmKTWYNoRn--rtcM3L0PzgnPBfMU,15424
|
|
55
55
|
opentf/schemas/opentestfactory.org/v1beta2/ServiceConfig.json,sha256=rEvK2YWL5lG94_qYgR_GnLWNsaQhaQ-2kuZdWJr5NnY,3517
|
|
56
56
|
opentf/scripts/launch_java_service.sh,sha256=S0jAaCuv2sZy0Gf2NGBuPX-eD531rcM-b0fNyhmzSjw,2423
|
|
57
|
-
opentf/scripts/startup.py,sha256=
|
|
57
|
+
opentf/scripts/startup.py,sha256=8pOCkHNlrJ_ezCY2yx83EUMrK_mzy4cmuwMiAuK9YbY,22264
|
|
58
58
|
opentf/toolkit/__init__.py,sha256=mYeJPZ92ulbTBItqEsZgF4nnuRh6G19QPY3Jxc92ifc,23028
|
|
59
59
|
opentf/toolkit/channels.py,sha256=EDuX5rk-wdaPLZeirllJqosRnmtz8bA4_eRfH857KZ4,23717
|
|
60
60
|
opentf/toolkit/core.py,sha256=fqnGgaYnuVcd4fyeNIwpc0QtyUo7jsKeVgdkBfY3iqo,9443
|
|
61
|
-
opentf_toolkit_nightly-0.61.0.
|
|
62
|
-
opentf_toolkit_nightly-0.61.0.
|
|
63
|
-
opentf_toolkit_nightly-0.61.0.
|
|
64
|
-
opentf_toolkit_nightly-0.61.0.
|
|
65
|
-
opentf_toolkit_nightly-0.61.0.
|
|
61
|
+
opentf_toolkit_nightly-0.61.0.dev1271.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
62
|
+
opentf_toolkit_nightly-0.61.0.dev1271.dist-info/METADATA,sha256=sWTNOIgENU5mx22FRGYlFqeNQDHt3BaHbfb0-7v_lr4,2192
|
|
63
|
+
opentf_toolkit_nightly-0.61.0.dev1271.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
64
|
+
opentf_toolkit_nightly-0.61.0.dev1271.dist-info/top_level.txt,sha256=_gPuE6GTT6UNXy1DjtmQSfCcZb_qYA2vWmjg7a30AGk,7
|
|
65
|
+
opentf_toolkit_nightly-0.61.0.dev1271.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|