Skip to content

Ring: fix flaky TestLifecycler_InitRingAdoptsRenewedTimestamp - #7994

Merged
danielblando merged 1 commit into
cortexproject:masterfrom
kylestang:kyle/fix-renewed-timestamp-test
Dec 4, 2026
Merged

danielblando merged 1 commit into
cortexproject:masterfrom
kylestang:kyle/fix-renewed-timestamp-test

Conversation

@kylestang

@kylestang kylestang commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does:

The lifecycler service has no starting function: initRing, which adopts the renewed timestamp from the instance's ring entry, runs at the top of loop() once the service is already running. StartAndAwaitRunning can therefore return before initRing has run, and the test read the zero time. Wait for the timestamp to be adopted instead. Flakiness introduced in #7983

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags
  • I did not look at code from AGPL licensed projects to make this PR

The lifecycler service has no starting function: initRing, which adopts
the renewed timestamp from the instance's ring entry, runs at the top of
loop() once the service is already running. StartAndAwaitRunning can
therefore return before initRing has run, and the test read the zero
time. Wait for the timestamp to be adopted instead.

Signed-off-by: Kyle Stang <kylestng@amazon.com>
@kylestang
kylestang force-pushed the kyle/fix-renewed-timestamp-test branch from f0cde12 to 2c1d906 Compare December 4, 2026 19:18
@kylestang
kylestang marked this pull request as ready for review December 4, 2026 20:16
@kylestang
kylestang requested a review from a team as a code owner December 4, 2026 20:16
@kylestang
kylestang requested a review from SungJin1212 December 4, 2026 20:16
@danielblando
danielblando merged commit d258391 into cortexproject:master Dec 4, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants