test flake: FocasStatusFlagsTests.An_authored_FIXED_Status_tag_reads_the_flag intermittently Bad #673
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FocasStatusFlagsTests.An_authored_FIXED_Status_tag_reads_the_flagis intermittent. It failed in 2 of 6 runs on 2026-10-11, at masteree67b637, with no FOCAS change in the batch:2147811328is0x80050000, BadCommunicationError. The read sometimes lands before the fake's status is available, or races the probe. Reproduce with:Check for an absence/presence race of the #500 kind: assert on first success, or wait for the first successful poll.
Fixed in
7d75478f(merged to master).Root cause:
FocasDriver.FixedTreeLoopAsyncpublishedDeviceState.LastStatusbeforeFixedTreeCache/LastFixedPollUtc, and the test waited onLastStatusalone — so an authoredFIXED:Status/*read could run whileLastFixedPollUtcwas still null and returnBadCommunicationError.LastStatusis now published last, viaVolatile.Write(backing field read withVolatile.Read), so observing it implies the cache and poll stamp are visible.FocasStatusFlagsTestswaits on all three (LastFixedPollUtc,FixedTreeCache,LastStatus).Full suite green on the final master.