Skip to content
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/.env
/.env.*
!.env.example
/local-overlays/

__pycache__/
*.py[cod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def find_available_tcp_port(host: str = "127.0.0.1") -> int:


def relay_cli_observability_version(executable: Path) -> int:
"""Return the observability config version accepted by a Relay CLI."""
"""Require a Relay CLI compatible with Fabric's observability v2 contract."""

try:
completed = subprocess.run(
Expand All @@ -79,7 +79,11 @@ def relay_cli_observability_version(executable: Path) -> int:
if completed.returncode != 0 or match is None:
raise RelayGatewayError("NeMo Relay CLI version could not be determined")
major, minor, _ = (int(value) for value in match.groups())
return 2 if (major, minor) >= (0, 6) else 1
if (major, minor) < (0, 6):
raise RelayGatewayError(
"NeMo Relay 0.6 or newer is required; observability version 1 is unsupported"
)
return 2


def wait_for_relay_gateway(
Expand Down
Loading
Loading