Skip to content

test(competition): keep ended-room leaderboard fixtures inside the one-year window - #293

Closed
kcrmin wants to merge 1 commit into
developfrom
fix/leaderboard-retention-test-clock
Closed

kcrmin wants to merge 1 commit into
developfrom
fix/leaderboard-retention-test-clock

Conversation

@kcrmin

@kcrmin kcrmin commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Superseded by #295.

…e-year window

AnonymousLeaderboardJooqAdapter hides an ENDED room once
ended_at + interval '1 year' is no longer after the database clock.
Four persistence test classes seeded ENDED rooms on fixed 2026 dates,
so 16 of their 17 tests would fail from 2027-08-02 (2027-08-10 for the
backtest settlement test).

Anchor each test timeline 30 days before today (UTC) at its original
time of day so the seeded rooms always end inside the window, and add
a test that rooms which ended more than a year ago stay hidden from the
anonymous, owned and integrated room leaderboard queries, including a
SECRET room with a final access grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kcrmin kcrmin closed this Oct 26, 2026
@kcrmin
kcrmin deleted the fix/leaderboard-retention-test-clock branch October 26, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant