Skip to content

hotfix(ota): provision LiteRT runtime on update - #319

Merged
slomin merged 1 commit into
mainfrom
hotfix/issue-318-litert-ota-provisioning
May 18, 2026
Merged

slomin merged 1 commit into
mainfrom
hotfix/issue-318-litert-ota-provisioning

Conversation

@slomin

@slomin slomin commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add best-effort LiteRT provisioning to the OTA apply path for devices upgraded from earlier images
  • install litert-lm-api into the Potato venv when possible and create /opt/potato/runtimes/litert/runtime.json from the installed package version
  • attempt libvulkan1 installation non-fatally because OTA may not have passwordless apt privileges

Closes #318

Test evidence

  • uv run python -m pytest tests/unit/test_update_state.py -q: 98 passed
  • uv run python -m pytest tests/unit tests/api -q -n auto: 585 passed
  • npx playwright test --reporter=dot --timeout=15000 --workers=75%: 118 passed

QA / risk notes

  • This is intentionally best-effort: missing apt privileges or unavailable LiteRT wheels are logged and do not roll back the OTA.
  • Existing llama runtime slots are not modified.
  • Real Pi OTA validation should verify that a 0.7.1-upgraded device receives the litert runtime slot after applying the hotfix.

@slomin
slomin force-pushed the hotfix/issue-318-litert-ota-provisioning branch from 616eb6d to c2534e3 Compare May 18, 2026 20:47
@slomin
slomin force-pushed the hotfix/issue-318-litert-ota-provisioning branch from c2534e3 to a23be36 Compare May 18, 2026 20:52
@slomin
slomin merged commit d4d8e68 into main May 18, 2026
2 checks passed
@slomin
slomin deleted the hotfix/issue-318-litert-ota-provisioning branch May 18, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hotfix(ota): provision LiteRT runtime on upgraded devices

1 participant