diff --git a/cli/src/etos_client/etos/v1alpha/test_run/test_run.py b/cli/src/etos_client/etos/v1alpha/test_run/test_run.py index 8fb0b815..ad1256b7 100644 --- a/cli/src/etos_client/etos/v1alpha/test_run/test_run.py +++ b/cli/src/etos_client/etos/v1alpha/test_run/test_run.py @@ -21,11 +21,23 @@ from typing import Union from pathlib import Path -from etos_lib.messaging.events import Message, Report, Artifact, Shutdown +#from etos_lib.messaging.events import Message, Report, Artifact, Shutdown # import disabled due to: https://github.com/eiffel-community/etos/issues/417 from etos_client.sse.v2alpha.client import SSEClient from etos_client.shared.downloader import Downloader, Downloadable from ..schema.response import ResponseSchema +# dummy classes: remove when the etos_lib.messaging module is available: https://github.com/eiffel-community/etos/issues/417 +class Artifact: + pass + +class Message: + pass + +class Report: + pass + +class Shutdown: + pass class TestRun: """Track an ETOS test run and log relevant information.""" diff --git a/cli/src/etos_client/sse/v2alpha/client.py b/cli/src/etos_client/sse/v2alpha/client.py index 3037b56c..b5f4d5da 100644 --- a/cli/src/etos_client/sse/v2alpha/client.py +++ b/cli/src/etos_client/sse/v2alpha/client.py @@ -24,7 +24,11 @@ from urllib3.poolmanager import PoolManager from urllib3.util import Retry -from etos_lib.messaging.events import Shutdown, Event, parse +#from etos_lib.messaging.events import Shutdown, Event, parse # import disabled due to: https://github.com/eiffel-community/etos/issues/417 +# dummy class: remove when the etos_lib.messaging module is available +class Event: + pass + CHUNK_SIZE = 500 RETRIES = Retry( diff --git a/cli/src/etos_debug/command.py b/cli/src/etos_debug/command.py index 0d21fb20..a1d4bbf0 100644 --- a/cli/src/etos_debug/command.py +++ b/cli/src/etos_debug/command.py @@ -20,13 +20,26 @@ import logging from etos_lib.lib.http import Http -from etos_lib.messaging.events import Artifact, Message, Report, Shutdown +#from etos_lib.messaging.events import Artifact, Message, Report, Shutdown # import disabled due to: https://github.com/eiffel-community/etos/issues/417 from urllib3.util import Retry from requests.exceptions import HTTPError from etosctl.command import Command from etosctl.models import CommandMeta from etos_client.sse.v2alpha.client import SSEClient +# dummy classes: remove when the etos_lib.messaging module is available: https://github.com/eiffel-community/etos/issues/417 +class Artifact: + pass + +class Message: + pass + +class Report: + pass + +class Shutdown: + pass + LOGGER = logging.getLogger(__name__) # Max total time for a ping request including delays with backoff factor 0.5 will be: # 0.5 + 1.5 + 3.5 + 7.5 + 15.5 = 28.5 (seconds)