gunk-dev/the-valley
the-valley:bd-c5c9712bugclosed

A worker scheduler unit test sometimes misses telemetry records

State
done
Created
2026-11-05 by contributor

Body

Seen 2026-11-05 in an agent run, in `status/`: `TestAFailedReadStopsAdmissionAndDrainsTheRunningBatches` failed once, missing its `batch.end`, `backoff` and `batch.start` records, then passed on rerun and in three repeats alone.

The test drives the worker's scheduler loop with fake children. A missing record suggests the test reads telemetry before the loop has flushed it, or a race between completion handling and the read. Find which, and make the test wait on the records it asserts, not on timing.

Comments

No comments.