Skip to content

test(notifications): keep the relay fixture credential outside its renewal window - #5209

Merged
Quick104 merged 1 commit into
mainfrom
fix/notifications-relay-fixture-expiry
Nov 23, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/notifications-relay-fixture-expiry

Conversation

@Quick104

@Quick104 Quick104 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

TestPushSenderRegistersRelayOnFirstSendWithoutCredential started 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/renew and 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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): none
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, directed by a maintainer; maintainer review pending
  • Adversarial review: n/a

Note

Set relay fixture credential expiry 90 days out in push sender test

In TestPushSenderRegistersRelayOnFirstSendWithoutCredential in 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.

…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-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 23, 2026
@silo-kody

silo-kody Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T13:49:20.954721Z f74fe44 PR opened
🔒 Security Review ✅ Completed 2026-11-23T13:50:50.993919Z f74fe44 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added bug Something isn't working go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The auto-registration test now sets the returned credential’s expiration to 90 days after the test run. Comments describe its relationship to the renewal window.

Changes: Push credential auto-registration test

Layer / File(s) Summary
Set a relative credential expiration
internal/notifications/push_sender_test.go
The test response sets the credential expiration to 90 days after the current time. Comments state that the expiration is beyond the renewal window.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: rhainland

Merge Risk: Minimal · up to f74fe

This is a test-only change that makes a date-dependent test stable. It has no production impact and carries negligible merge risk.

Security architecture risk: Minimal · up to f74fe

The change keeps a test fixture from expiring on a fixed date. It does not change how deployed software registers or renews relay credentials.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the test-only change: the relay fixture credential is kept outside its renewal window. The raw summary confirms the test now sets the credential expiration 90 days after the run instea…
Description check Passed The description explains the problem (a test failing on main since 2026-11-23 because the fixture credential enters the renewal window), the approach (one fixture value changed in push_sender_test.go)…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the test-only change: the relay fixture credential is kept outside its renewal window. The raw summary confirms the test now sets the credential expiration 90 days after the run instead of the fixed December 1, 2026 timestamp. The title is specific and matches the main change, though it is slightly technical.

Full details: Description check

Explanation

The description explains the problem (a test failing on main since 2026-11-23 because the fixture credential enters the renewal window), the approach (one fixture value changed in push_sender_test.go), validation results, and risks. It matches the changeset closely.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d61e9475-bf3d-4bb9-86ed-be6f87c2e495
Commits

Reviewing files that changed from the base of the PR and between 6274ef2 and f74fe44.

Files selected for processing: 1

  • internal/notifications/push_sender_test.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@Quick104
Quick104 merged commit 981e65d into main Nov 23, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/notifications-relay-fixture-expiry branch November 23, 2026 15:34
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant