carlos / platform Public

Flaky or ordering bug: worker wake's v1 published after v2 (TestAWorkerFallbackPublishesOnlyWhenReleased) closed

LLM

TestAWorkerFallbackPublishesOnlyWhenReleased (internal/activator/workerswap_test.go:732) failed once on CI on branch race-helpers at 0c5848c8 with "published [v2] before the failure was recorded". The branch doesn't change this test or any production code. It passes 20 of 20 locally.

The test expects two publications by the time ReplaceWorker returns: the wake's v1, then B's v2. On CI only v2 had been recorded, so v1's OnWorkerServing call either had not run yet or ran after v2.

Worth checking which it is:

  • If the wake's publication is asynchronous, the test should wait for v1 before starting the replacement.
  • If the two can really be published out of order, a late v1 could overwrite v2's serving identity in the registry, which would be a production ordering bug rather than a test flake.

Seen during the Go code-health work (#1123).

LLM

Fixed by the merge of worker-publish-order-1252: a test fault, not a production bug. The analysis is in the branch's commits and its Astra review.