Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion cli/src/etos_client/etos/v1alpha/test_run/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
6 changes: 5 additions & 1 deletion cli/src/etos_client/sse/v2alpha/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
15 changes: 14 additions & 1 deletion cli/src/etos_debug/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading