Skip to content

ColdSnake v0.1.2

Choose a tag to compare

@kurobeats kurobeats released this 26 Sep 05:50
· 28 commits to main since this release

ColdSnake v0.1.2

Bug-fix release.

Fixed

  • HTTP 429 throttling aborted runs. Repeated full listing passes (large
    trees, several runs in an hour) trip Icedrive's rate limit, and the 1-4s
    exponential backoff was too hot: the run aborted after 4 attempts. A 429 now
    waits Retry-After (capped at 300s, else 60s).
  • Server-side name normalization. Icedrive normalizes item names (NFKC):
    a folder named Example Album! (fullwidth !, U+FF01) already exists
    remotely as the ASCII Example Album!, so create answered 2006 Folder exists while the exact-match listing never found it and the mirror aborted
    with cannot create remote folder. Folder matching, upload skip checks,
    verification and prune now compare names through NFKC.
  • Empty files counted as failures. A legit empty local file (e.g.
    Syncthing's .stignore marker) was a per-run failure because the upload
    refuses empty bodies. It is skipped with a log line and a skipped counter
    in the summary and JSON document.

Added

  • sqlite sync db (~/.config/coldsnake/sync-db.sqlite): records files
    that uploaded and verified as (size, mtime). The skip decision consults it
    before the remote listing, and folder ids resolve lazily — a run with no
    changes now makes no listing calls at all, which is what the 429 throttling
    was punishing. First run after upgrading populates the db with one listing
    pass; after that runs are API-quiet. --no-sync-db or deleting the file
    restores always-list-the-remote behavior (that is the resync).

Full changelog: v0.1.1...v0.1.2