Repository navigation
fix(web): defuse date time bomb in push-relay admin settings test - #589
Merged
Merged
Conversation
The fixture hardcoded push_relay_expires_at as 2026-08-10, so once the calendar reached that date the component rendered the "Expired" branch and the "renews automatically" assertion failed on every branch's CI. Use a relative +30d expiration so the not-yet-expired branch stays stable. Co-Authored-By: Claude Fable 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe notification settings test fixture now calculates the push-relay expiration date 30 days after the current time instead of using a fixed timestamp. ChangesNotifications test fixture
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
NotificationsAdminSettings.test.tsx > shows the Silo Push Relay channel statusstarted failing on every PR's Web CI as of today (2026-08-10) — including on cleanmain. The fixture hardcodesnotifications.push_relay_expires_at: "2026-08-10T00:00:00Z"; now that the calendar has passed it, the component correctly renders the "Expired; Silo will renew…" branch instead of "…renews automatically", and the assertion fails. A date time bomb, not a code regression.Approach
Make the fixture expiration relative (
Date.now() + 30d) so the not-yet-expired branch stays stable forever. No component changes; the expired branch's copy is unasserted either way.Verification
npx vitest run src/pages/admin-settings/NotificationsAdminSettings.test.tsx— 2/2 pass (was 1 failing). Lint 0 errors, format clean.Risks & follow-up
None — test-only. Unblocks Web CI for all open PRs (#308, #439, and anything else currently red on this assertion).
AI-use disclosure
Implemented by Claude Code with human oversight.
🤖 Generated with Claude Code
Summary by CodeRabbit