Skip to content

registrar: TestSyncer_Start_NoEventsAfterInitialSync flakes under --config=race (2/20 on main) — a sync with unchanged state still emits an event #1187

Closed

Description

@bpalermo

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions