Repository navigation
test(notifications): keep the relay fixture credential outside its renewal window - #5209
Merged
Merged
Conversation
…newal window TestPushSenderRegistersRelayOnFirstSendWithoutCredential registered a credential that expires on 2026-12-01. The sender renews a credential within seven days of expiry (plus jitter), so from 2026-11-23 the first send renewed it and the test failed on an unexpected relay path on every branch. The fixture now expires 90 days after the run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Merged
4 tasks done
Quick104
added a commit
that referenced
this pull request
Nov 23, 2026
Takes main's push sender test fix (#5209), which covers the same expired fixture credential as this branch's 65ed4b3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104
added a commit
to Rhainland/silo-server
that referenced
this pull request
Nov 24, 2026
Brings in Silo-Server#5209, which fixes the notifications relay test that failed CI on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 24, 2026
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
Related issue: N/A
Validation tasks: none
TestPushSenderRegistersRelayOnFirstSendWithoutCredentialstarted failing on main on 2026-11-23 and fails the Go test job on every pull request. Its fake relay registers a credential that expires on 2026-12-01, and the push sender renews a credential within seven days of expiry (plus jitter). From 23 November the first send renews it, so the fake relay sees/v1/deployments/renewand the test fails on an unexpected path.This makes the fixture credential expire 90 days after the run, so the test exercises first-send registration whatever the date.
Approach
Test-only: one fixture value in
push_sender_test.go. The other fixed date in that file (2026-08-10) belongs to a test of an expired credential and stays.#5180 carries the same line among its own changes; whichever merges second merges cleanly.
Validation
go test ./internal/notifications/: pass, three runs; it failed before the change on main.make lint-changed: no issues.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/relay-fixture-expiry/
Risks
None identified. Test-only.
Checklist
AI Disclosure
Note
Set relay fixture credential expiry 90 days out in push sender test
In
TestPushSenderRegistersRelayOnFirstSendWithoutCredentialin push_sender_test.go, the mock relay registration response now sets the credential expiration to 90 days after the test's run time, formatted as RFC3339 UTC. This keeps the credential outside the renewal window on first send, so the test exercises use of the registered credential rather than renewal.Macroscope summarized f74fe44.