feat(sync): sync every minute, settable, and when an agent asks for changes (#115) #117
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/115-faster-sync-pickup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
PR #117 makes the scheduled sync every 60 s (RM_SYNC_INTERVAL overrides, 0/empty off), and list_changes plus reading or subscribing to rm-analyzer://changes start one debounced sync when the last is over 30 s old. Post-sync scans run only on changes or every 15 min. Red-then-green tests, full mix precommit (1636 tests) and CI pass.
Fixes #115
Red, then green
bash -c 'source ~/.rmenv && MIX_ENV=test mix test test/rm_analyzer/remarkable/sync_server_test.exs'1e4a9b0): exit 1f85f91a): exit 0Checks
bash -c 'source ~/.rmenv && MIX_ENV=test mix test test/rm_analyzer/remarkable/sync_server_test.exs', exit 0Shipping it
Prover
Passed (Sonnet): I read the full diff against main and re-ran the sync_server tests (10 pass). I checked that RM_SYNC_INTERVAL accepts 0 or empty as off and rejects bad values, and that the stale-sync debounce skips running syncs. The shipping answers hold: only v* tags build images, and a revert undoes it. Nothing was tried against the real reMarkable cloud, so load at one sync a minute is unmeasured.
Every command above was run by Fortysix's Basecamp itself, on the branch named.