Implement worker coordination runtime and finish WP-0003
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07b5b-ea58-7ad2-bdbb-0b1c995cfc35
This commit is contained in:
parent
214964ccb8
commit
628f984a10
23 changed files with 3025 additions and 544 deletions
23
tests/test_live.py
Normal file
23
tests/test_live.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"""Opt-in read-only smoke; never injects a message or starts a worker."""
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from coordination_engine.adapters import Hub, Tamq, registry
|
||||
from coordination_engine.config import Config
|
||||
|
||||
|
||||
@pytest.mark.live
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("COORDINATION_LIVE_SMOKE") != "1",
|
||||
reason="set COORDINATION_LIVE_SMOKE=1 explicitly",
|
||||
)
|
||||
def test_local_adapter_discovery():
|
||||
config = Config.load()
|
||||
assert "coordination-engine" in registry()
|
||||
assert isinstance(Hub(config).request("/repos/"), list)
|
||||
hello = Tamq(config).request("ping")
|
||||
assert {"bounded_delivery_ack_v1", "idempotent_send_v1"} <= set(
|
||||
hello["capabilities"]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue