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
registrar: TestSyncer_Start_NoEventsAfterInitialSync flakes under --config=race (2/20 on main) — a sync with unchanged state still emits an event #1187
Seen 2026-10-04 on PR #1164's race job (//registrar/internal/server:server_test, run 2 of 3) and reproduced on main @ 6394d25: bazel test --config=race --runs_per_test=20 --nocache_test_results --test_filter=TestSyncer_Start_NoEventsAfterInitialSync //registrar/internal/server:server_test → FAILED in 2 out of 20.
sync_test.go:426: Error: Should be empty, but was 0xc0004e8070
Messages: expected no events when state is unchanged between syncs
The test passed reliably before; the syncer's last two changes are #1142 (6b760f1, Pod informer signals the sync loop; DRAINING derived from deletionTimestamp) and #1152 (1013276, DerivedEndpoints: the write-behind entry is released at the first sync whose listing started after the write). Either can plausibly produce an event with unchanged content: a release of the overlay that re-publishes an identical endpoint as a change, or an informer wake-up racing the test's second sync. To establish: whether the extra event carries a real diff (then the test is right and the syncer broadcasts a no-op version → every agent resyncs for nothing, which is a production bug) or whether the test observes an event from the first sync late (then the test needs a proper barrier). Fix accordingly; gate = 50/50 under race.
Blocks CI: the race job runs this target 3× per PR.
Activity
test(registrar): subscribe before Start in TestSyncer_Start_NoEventsA…