Skip to content

"Vibe-Trading: Your Personal Trading Agent"

ci: cover private paper strategy IPC on native Windows runners

Haozhe Wuc16131b04e00
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index af5d02392..15d18eab7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -196,7 +196,9 @@ jobs:
cache: pip
- name: Install focused test dependencies
- run: python -m pip install pytest pydantic pyyaml python-dotenv
+ # The private paper-strategy worker imports the actual daily engine.
+ # Exercise its blocked-stdio regression on native x64 and ARM64 too.
+ run: python -m pip install pytest pydantic pyyaml python-dotenv numpy pandas defusedxml requests
- name: Run Windows background safety regressions
env:
@@ -205,6 +207,7 @@ jobs:
python -m pytest
agent/tests/test_background_tools.py
agent/tests/test_bash_tool.py
+ agent/tests/test_paper_trade_process_transport.py
-q
desktop-electron-windows:
diff --git a/agent/tests/test_paper_trade_process_transport.py b/agent/tests/test_paper_trade_process_transport.py
index 2a9fb86ff..a1280524f 100644
--- a/agent/tests/test_paper_trade_process_transport.py
+++ b/agent/tests/test_paper_trade_process_transport.py
@@ -40,8 +40,9 @@ assert not blocked.is_alive()
reader = threading.Thread(target=lambda: received.put(host.stdout.readline()), daemon=True)
reader.start()
try:
- assert received.get(timeout=30) == b"private-ipc-ok\n"
+ line = received.get(timeout=30)
_, stderr = host.communicate(input=b"x", timeout=10)
+ assert line in {b"private-ipc-ok\n", b"private-ipc-ok\r\n"}, stderr.decode(errors="replace")
assert host.returncode == 0, stderr.decode(errors="replace")
finally:
if host.poll() is None: