Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
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. CodeRabbit Verify
|
|
Code review on PR #20591 (head 7e62a03): changes needed. Read only; nothing was run. Pins, the single home for both ids and the sha256 check are sound, and the cache path matches the runtime on Docker and native. Needed:
|
|
Code review on PR #20591 (head 87879fc): approve. Read only; nothing was run. A prefetch failure now warns by default. Docker fetches in the background and never stops the container, tested with a failing |
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 723adb02f |
Merge remote-tracking branch 'origin/main' into issue-20082-torch-retry | none |
| main | f1b3285cc |
fix(backend): a failed CUDA torch install retries and names the room left (#20082) | #20082 |
| this branch | bb0ffbc89 |
Merge remote-tracking branch 'origin/main' into issue-19869-models-at-install | none |
| this branch | 87879fc1e |
fix(install): a model pre-fetch failure warns, and Docker fetches in the background (#19869) | #19869 |
| this branch | 0f149af89 |
fix(install): pre-fetch the pinned whisper and codebert models, keep the Docker cache on a volume (#19869) | #19869 |
|
Code review on PR #20591 (head d9fb7b4): approve. Covers the merge of main, read only. The embedding-literal guard's new allowlist entry is for |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
mrveiss
left a comment
There was a problem hiding this comment.
Delta review d9fb7b4..f48defa: APPROVE.
The range is two commits. aac7256b99 resolves the env_registry_knowledge.py clash, then f48defae92 is a pure main auto-sync merge. The GitHub head is f48defae92; the head you named, aac7256b99, is its parent.
| Severity | File:line | Issue | Fix |
|---|---|---|---|
| None | autobot_shared/env_registry_knowledge.py |
AUTOBOT_PREFETCH_MODELS and AUTOBOT_CONVERSATION_FILE_USER_QUOTA_BYTES are each registered exactly once, and there are no duplicate names in the file. docs/developer/ENV_VARS.md lists both. |
None. |
- Nothing else changed. The PR's diff against current main is the PR's own 17 files (model prefetch, entrypoint, registries, tests). The quota setting is main's own, unchanged.
- Not checked: no CI result, and I did not run the registry import test.
|
Code review on PR #20591 (head f48defa): APPROVE A delta review of d9fb7b4..f48defa (a main merge plus an env-registry union). AUTOBOT_PREFETCH_MODELS and the conversation-file quota setting are each registered exactly once, and ENV_VARS.md lists both. The diff against main is the PR's own 17 files. |
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
The speech-to-text and code-embedding models were never provisioned, so the first use downloaded them, or failed on a host with no internet. Docker kept the cache in the container layer, so a recreate lost it.
What Changed
autobot_shared/ssot_hf_models.pyholds both model ids, and the two loaders read them, so neither is a literal now.autobot_shared/model_prefetch.pyfetches each at its pinned revision frompinned_model_registry.py, downloading only the pinned weight files, and verifies the digest. It retries, then reports the model, revision and free space. One failure doesn't stop the other model. A digest mismatch isn't retried.--checkdownloads nothing and confirms presence.roles/backend: fetch as the service user, then a separate--check. Both models are optional at runtime, so a failure warns and carries on.backend_prefetch_models: falseskips it for an air-gapped host, andbackend_model_prefetch_required: truemakes a failure stop that host.huggingface_cachevolume onautobot-backendandautobot-worker, andHF_HOMEset. The entrypoint fetches in the background and never stops the container, so a slow link can't failservice_healthydependents.AUTOBOT_PREFETCH_MODELS=falseturns it off.Verification
model_prefetch_at_install_19869_test.py(14) andbackend_model_server_unreachable_reported_19879_test.py(2) pass, with stubs for the download and YAML reads of the role, compose and entrypoint. Neighbouring guards pass, though the full set wasn't re-run after the last small edits.Not done:
become_usersetting the service user's home, which Ansible's defaultsudoflags do. A host with custom flags could fetch to the wrong place; the--checkruns the same way, so it wouldn't catch that.install-slm.shandinstall-bare-metal.sh.autobot-celery-beathas no cache mount.Refs #19869, #19738, #19879
Model Used
Claude Opus 5.5