Repository navigation
1.30.0: automatic updates (#49) - #51
Merged
Merged
Conversation
Per TV in Advanced install: automatic updates with a quiet window. Once a night, one TV at a time, never with a popup on screen, never opening the app on a TV that is on. Logbook on success, retry next night on failure, repair after three nights or at once for user-fixable causes. Record restored over restarts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- an update by hand (or the app's own check) clears failed nights and the repair; switching automatic updates off clears it too - an unexpected error in the tick is recorded as the night's attempt - a restart during an app-route run picks the run up again - wall-clock comparison for 'already tried tonight' (repeated DST hour) - one rule for 'needs the remote' in options and tick (apps without silent) - one TV at a time also while an app-route run is underway - no nightly reinstall after tv_in_use; readable reasons; overdue app runs end - tests for each Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skip after tv_in_use matched any success with to == latest, so a TV put back on an older build afterwards would never update automatically again. The record now carries waiting_for_tv; the test pins it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 of #49: automatic updates.
What
tv_in_use): the install landed, the app starts when the TV is switched on.last_auto_update/auto_update_failuresattributes (restored after a restart, so a restart inside the window does not retry); repair after 3 failed nights or at once for not_authorized / signature_mismatch / key problems; cleared on success.auto_update_needs_adb).Tested
tests/test_auto_update.py: window arithmetic incl. midnight, once a night, retry next night + repair after 3, immediate repair, skips without using the night, disabled/offline, tv_in_use, app route on Android 12+, app route needing the remote, one TV at a time, restart inside the window, options refusal).🤖 Generated with Claude Code