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): resetting the tracer waits for its exports, so no test's exports run on into the next #1604
tests/test_roadmap_dry_runs.py::test_a_dry_run_through_the_entry_point_starts_no_process_and_opens_no_connection[migrate] fails intermittently in a full uv run devops ci run and passes alone, so a change's gate result depends on which tests ran before it in the same worker.
Evidence
On 2026-10-16 the test failed with repeated create_connection: (('localhost', 4318), 1.0) attempts, the OTLP endpoint every test configures (tests/conftest.py, isolate_devops_cli_config: telemetry enabled at http://localhost:4318). It passed alone and in the next full run.
The dry run itself sends nothing: OTelTelemetryClient._send_payload returns at once in a dry-run invocation (feat(cli): reachable --dry-run previews for delegated commands #412). The test refuses connections process-wide by patching socket.create_connection, so it also records connections from other threads.
reset_tracer() (src/devops_cli/telemetry/tracer.py), which the autouse fixture calls before and after every test, dropped the global tracer without shutting it down. Exports a test had queued kept running on the tracer's two-worker executor and reached the next test's patched socket.
Remedy
reset_tracer() shuts the dropped tracer down first; shutdown() already waits up to DEFAULT_OTEL_DRAIN_TIMEOUT_SECONDS for exports in flight and closes the executor. A test queues a slow export, resets the tracer, and checks the export finished before the reset returned.
changed the title [-]fix(test): the gateway stall and roadmap dry-run tests pass regardless of test order and load[/-][+]fix(telemetry): resetting the tracer waits for its exports, so no test's exports run on into the next[/+]on Oct 17, 2026
tests/test_roadmap_dry_runs.py::test_a_dry_run_through_the_entry_point_starts_no_process_and_opens_no_connection[migrate] failed intermittently in full devops ci runs with repeated create_connection: (('localhost', 4318), 1.0) attempts. The dry run sends nothing itself (OTelTelemetryClient._send_payload returns at once in a dry-run invocation, #412), but the test refuses connections process-wide, so it also recorded exports another test had queued.
Activity
dan-petty commentedon Oct 17, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate fixes a test that was failing due to test order and load dependencies.The issue affects test reliability but does not block core functionality or introduce security concerns.Fixing intermittent test failures improves development stability and confidence in the CI pipeline.The fix involves a small change to shutdown the tracer properly and add a check for export completion.[-]fix(test): the gateway stall and roadmap dry-run tests pass regardless of test order and load[/-][+]fix(telemetry): resetting the tracer waits for its exports, so no test's exports run on into the next[/+]fix(telemetry): resetting the tracer waits for its exports, so no tes…
dan-petty commentedon Oct 17, 2026
What changed
#1606, merged into
release/v0.2.36as 0a95a1c.4 file(s) changed.
How it was verified
Check runs at 7a56c82:
No task file.
feat(release): v0.2.36 (#1615)