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
fix(telemetry): no devops-otel exporter thread outlives its test, so no later test fails on a connection to port 4318 #2277
A test fails at teardown with "network edge reached without a fake", because a devops-otel exporter thread connects to the loopback OpenTelemetry port 4318. The test that fails is never the test that started the thread. The same failure was the subject of #2273. Pull request #2274 closed #2273, and the failure still happens after that pull request is in main.
pull request #2275, run 40260962194, based on a main that holds #2274
a branch that changes no telemetry code
tests/test_finding_repetition_compression.py::test_finding_collapses_consecutive_duplicate_lines and tests/test_fastmcp_in_process.py::test_mcp_tool_stops_at_timeout_when_command_never_returns
The Tests & Coverage check is required, so each failure blocks a merge. The failure is intermittent: the next main push, run 40259326441, passed.
Reproduction Steps
Run the full test suite with uv run devops ci test on a loaded host, or push a branch and let the Tests & Coverage check run.
Read the teardown errors of the run.
Expected vs Actual Behavior
Expected: after a test ends, no devops-otel thread of that test is alive, and no later test sees a connection to port 4318.
The cause is not found yet. #2274 changed src/devops_cli/telemetry/tracer.py and src/devops_cli/telemetry/logging_bridge.py to wait for the executor threads on shutdown. Find which client or exporter is still alive when the test ends, for example one that no reset reaches, and fix it there. Do not add the port to a list of allowed connections: the floor is right to refuse it.
Activity
dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes a bug in telemetry thread management during test teardown.The issue blocks merges and causes intermittent test failures that affect CI stability.Fixing the thread lifecycle prevents test failures and improves CI reliability for all developers.The fix requires identifying which exporter thread is not shutting down properly and ensuring it waits during client shutdown.