Repository navigation
test(audiobooks): sign the login-scope test in with a login session - #3302
Conversation
#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]>
Codex Review SummaryThis 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. |
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:
|
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
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/loginnow gets 500 withpersist 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
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
AI Disclosure
🤖 Generated with Claude Code