Skip to content

Commit eb59d2f

Browse files
fix(ci): use NATS events for loopback Slurm tests
Signed-off-by: functionstackx <47992694+functionstackx@users.noreply.github.com>
1 parent f0bc92a commit eb59d2f

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎scripts/ci/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ scratch bind mount inside the test container. The account's real home is not
9999
mounted, `HOME` is unchanged, and the image and pinned model snapshot stay
100100
read-only during testing.
101101

102-
This single-node lane binds Dynamo's HTTP, system, request, response and event
103-
interfaces to loopback. Listener evidence covers the five named service ports
102+
This single-node lane binds Dynamo's HTTP, system, request and response
103+
interfaces to loopback and sends events through the existing loopback NATS
104+
service (`DYN_EVENT_PLANE=nats`). Direct ZMQ publishers bind a wildcard even when
105+
their advertised host is loopback. Listener evidence covers the five named service ports
104106
and every TCP listener owned by the frontend and worker system-endpoint PIDs.
105107
It does not claim to inventory unrelated engine subprocess sockets.
106108

‎scripts/ci/barite_client.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,14 @@ def main():
626626
if __name__ == "__main__":
627627
try:
628628
main()
629+
except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as error:
630+
print(f"Barite CI: {error}", file=sys.stderr)
631+
if error.stderr:
632+
detail = error.stderr
633+
if isinstance(detail, bytes):
634+
detail = detail.decode("utf-8", errors="replace")
635+
print(detail[-8192:], file=sys.stderr)
636+
sys.exit(1)
629637
except (ValueError, OSError, KeyError, subprocess.SubprocessError) as error:
630638
print(f"Barite CI: {error}", file=sys.stderr)
631639
sys.exit(1)

‎scripts/ci/rocm/run_tests.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def main():
4040
# All cooperating Dynamo services share this one-node allocation.
4141
DYN_TCP_RPC_HOST="127.0.0.1",
4242
DYN_TCP_RESPONSE_STREAM_HOST="127.0.0.1",
43-
DYN_EVENT_PLANE_HOST="127.0.0.1",
43+
# Direct ZMQ publishers bind a wildcard even with a loopback advertised
44+
# host. Use the existing loopback NATS service for this one-node lane.
45+
DYN_EVENT_PLANE="nats",
4446
)
4547
contract = json.loads(Path(__file__).with_name("contract.json").read_text())
4648
request = json.loads((result / "request.json").read_text())

0 commit comments

Comments
 (0)