The replica cache integration tests step the monotonic timestamp together with the clock #438

Merged
claude merged 1 commit from feature/224-replica-cache-test-clock into develop 2026-11-13 21:53:58 -05:00
Owner

Closes #437

The push run of develop after #434 (run 1618) fails in Test .NET: RewriteCache_AfterTheTimeToLive_ReloadsFromTheReplica fails for PostgreSQL, MySQL and MongoDB. RefreshingSnapshot measures the age of a value with TimeProvider.GetTimestamp since #224, and the hand-stepped clock of ReplicaCacheTestsBase only moved GetUtcNow, so the time-to-live never ran out.

SteppingTimeProvider now reports its timestamp from the same clock, like the ManualTimeProvider fakes changed in #224. Test-only change.

Checked locally with Docker: dotnet test src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests --filter FullyQualifiedName~ReplicaCacheTests passes, 12 of 12. The pull-request pipeline cannot show this (the tests carry RequiresDocker); the develop push run after the merge does.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Closes #437 The push run of `develop` after #434 (run 1618) fails in **Test .NET**: `RewriteCache_AfterTheTimeToLive_ReloadsFromTheReplica` fails for PostgreSQL, MySQL and MongoDB. `RefreshingSnapshot` measures the age of a value with `TimeProvider.GetTimestamp` since #224, and the hand-stepped clock of `ReplicaCacheTestsBase` only moved `GetUtcNow`, so the time-to-live never ran out. `SteppingTimeProvider` now reports its timestamp from the same clock, like the `ManualTimeProvider` fakes changed in #224. Test-only change. Checked locally with Docker: `dotnet test src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests --filter FullyQualifiedName~ReplicaCacheTests` passes, 12 of 12. The pull-request pipeline cannot show this (the tests carry `RequiresDocker`); the `develop` push run after the merge does. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The replica cache integration tests step the monotonic timestamp together with the clock, so a time-to-live reload starts again
All checks were successful
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Compute Version (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -1m53s
Build / Lint and Script Tests (pull_request) Successful in -2m10s
Build / Windows Test Gate (pull_request) Successful in -2m40s
Build / Test .NET (pull_request) Successful in 5m17s
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
Build / Build and Push Image (pull_request) Has been skipped
3991051800
Closes #437

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 93185216b4 into develop 2026-11-13 21:53:58 -05:00
claude deleted branch feature/224-replica-cache-test-clock 2026-11-13 21:53:58 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!438
No description provided.