Skip to content

test(audiobooks): sign the login-scope test in with a login session - #3302

Merged
Quick104 merged 1 commit into
mainfrom
fix/abs-login-scope-test-session
Oct 31, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/abs-login-scope-test-session

Conversation

@Quick104

@Quick104 Quick104 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

go test ./internal/audiobooks/abs/ fails on main, so every pull request's Go test job fails. Two PRs merged 11 seconds apart and each passed CI on its own: #2919 made the token store refuse tokens issued with no source credential (no refresh token and no login session), and #2793 added a login test whose principal has no login session. TestTokenHandlers_ScopeLibrariesToAuthenticatedProfile/login now gets 500 with persist tokens: tokens issued with no source credential.

Approach

Give the test's principal a LoginSessionID, as the other login tests in the package do. A real sign-in always opens one, so this changes only the fixture. Production code is unchanged.

Validation

  • The test fails on main with the 500 above and passes with this change.
  • go test ./internal/audiobooks/... passes.

Evidence

No user-visible change. The test runs before and after are on the evidence page.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3302/

Risks

None identified.

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, running in T3 Code
  • Tool(s): Claude Code, GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; human verification pending
  • Adversarial review: n/a, a one-line test fixture change

🤖 Generated with Claude Code

#2919 made the token store refuse tokens issued with no source credential,
and #2793 added a login test whose principal carries none. Each passed CI
alone; together they fail `go test` on main.

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 Oct 31, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T04:52:03.880499Z 1458ea3 PR opened
🔒 Security Review ✅ Completed 2026-10-31T04:52:42.500483Z 1458ea3 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-kody

silo-kody Bot commented Oct 31, 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 ❌

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 26593627-7c24-4ef2-b047-d77d11d0b942
Commits

Reviewing files that changed from the base of the PR and between 6db67ad and 1458ea3.

Files selected for processing: 1
  • internal/audiobooks/abs/login_scope_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added bug Something isn't working go Pull requests that update go code priority: P1 Core-path bug; painful workaround — next after P0 labels Oct 31, 2026
@Quick104
Quick104 merged commit 070b0fb into main Oct 31, 2026
22 checks passed
@Quick104
Quick104 deleted the fix/abs-login-scope-test-session branch October 31, 2026 13:49
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: P1 Core-path bug; painful workaround — next after P0 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