You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(tests): the unit suite creates a real agent container when a Docker daemon is reachable #4802
Seen with pytest unit/ -n 8 --dist loadfile -p randomly on a machine with a reachable daemon: the container was created at least three times, on two different trees, one of them an unmodified dev checkout at 30ce96ecb. Removed by hand, it came back with the next run.
tests/unit/test_ent1030_gates.py describes this hazard next to its start_all_agents stub ("creates a real agent-acme-lead on any machine that runs this file") and closes one path to it. Another path is open. Which test reaches it has not been traced.
CI runners have a Docker daemon, so this probably happens there too and goes unnoticed because the runner is thrown away.
On a developer machine or a host with a live stack, the container lands on that daemon, and a running backend will see it as one of its agents (it carries trinity.platform=agent).
Acceptance Criteria
The test (or tests) that reach Docker are identified.
pytest unit/ creates no container, with or without a reachable daemon.
A guard fails the unit tier when a test reaches the real Docker client.
Activity