Repository navigation
fix(markers): log when online lookups wait for setup to finish - #1997
Conversation
Online marker lookups stay off until the setup wizard records setup.completed, so the admin can turn them off first. A server set up without finishing the wizard still logged lazy playback lookups as queued and answered admin refresh-markers with queued, then fetched nothing and left no trace of why. The population service now logs one warning per process the first time it skips a lookup for this reason, naming the setup.completed setting.
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:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthrough
ChangesSetup Warning Logging
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The production service shares one warning limit across its consumers. No remaining issue in the reviewed changes blocks merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Silo's pull request guidance changed today (#2016). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Missing here: Needs the line 'Evidence: none, no user-visible change'. The rules are in Show visible changes, and the PR template shows the Evidence section layout. I've converted this PR to draft for now. Mark it ready for review once the Evidence section is filled in. Generated by Claude Code |
Quick104
left a comment
There was a problem hiding this comment.
One low-severity finding, which I'm fixing on this branch. The summary comment follows once the fix is pushed.
Review by Claude Code (claude-opus-5-5).
The setup-wait warning ran before the markers.mode check, so a server with markers set to local or off logged that online lookups were paused until the wizard finished, though finishing it would not start them. Check the mode first. Co-Authored-By: Claude Opus 5.5 (1M context) <[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:
|
Review summaryReviewed head: Fit: 8/10 · Readiness: 9/10 — conditional Addressed
RemainingNone in the diff. Kody and CodeRabbit left no findings. FitThe log addresses a real gap. An admin who creates the account and leaves the wizard keeps Validated featuresNo passed case on the v1.0 board reaches this code. The Series tasks this PR relates to (#1250, #1251, #1252, apple#337, apple#338, android#347, android#348) have no passed cases yet. ChecksAll required checks pass on User manualThis PR doesn't affect the manual, since it only adds a log line. A separate gap already exists: the markers page says "Markers work without setup" and doesn't mention that online lookups wait for the setup wizard. I recommend a siloserver.org issue for Apple and AndroidServer-only log, so no client change is needed. Review by Claude Code (claude-opus-5-5). The verdict is conditional because Fit is below 9. Readiness has no open conditions. |
Problem
Related issue: #1249
Validation tasks: none
Online marker lookups (TheIntroDB) stay off until the setup wizard records
setup.completed, so an admin can turn them off first. A server set up without finishing the wizard still logs lazy playback lookups as queued and answers admin refresh-markers with "queued", then fetches nothing and leaves no trace of why. During the iOS Series validation this looked like a marker regression.Approach
The population service logs one warning per process the first time it skips a lookup for this reason, naming the
setup.completedsetting. It checksmarkers.modefirst, so a server with online lookups set tolocaloroffgets no notice. Behaviour is unchanged.Validation
go build,go vet,gofmt,make lint-changed: pass.make test-go: the only failures are the hardware-acceleration, transcode and probe tests that also fail onmainon the test machine (macOS, no VAAPI, QSV or NVIDIA devices). A few timing tests that failed once while the machine was loaded passed on three reruns.make verify-settings-bindings-all, the otherverify-*targets in CONTRIBUTING, and the router artifact test: pass.locallogs nothing.setup.completedmade the next playback fetch Breaking Bad S01E02's intro from TheIntroDB.Evidence
Evidence: none, no user-visible change
Risks
None identified.
Checklist
AI Disclosure
mainat medium effort, checking API compatibility, behaviour, tests and commit hygiene. It checked the once-per-process guard and nil-safe logging. No findings.Note
Log once when online marker lookups wait for setup to finish
Online and combined marker modes now emit a single process-wide warning when
markers.PopulationService.enabledsees incomplete setup, using an atomic flag to suppress duplicate warnings. Local mode no longer readssetup.completedand exits silently.markers.Registry.logaccessor in types.go that returns the configured registry logger or the process default, and reuses it for both provider-error logging and the setup-wait warningsetup.completed; online/combined lookups log a warning and stay disabled until setup completesMacroscope summarized 1a6e9ee.