gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit06a7534a06a7534aMerge branch 'cb'mre06a7534a/missions/021-tracker-delta-sync.md

2.0 KB

  1. # Mission 021 (old 067) — tracker#18: delta sync via bulk change endpoints; refresh show records; summary priority
  2. Ticket: `curl -s -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/tracker.worldapi.org/tickets/18`
  3. (read fully, the creator's words are quoted). Repo loreana:/media/STORAGE/projects/tracker.worldapi.org. main is being
  4. merged by another worker (062: t26 → main) — DON'T touch main or tracker-wt26/wt19. Worktree from the t26 head (it
  5. rewrote tmdbsync.hl): `git worktree add -b t18 ../tracker-wt18 10bb3f9` (commits on t18 only, never push).
  6. Ports 8750–8759. Rules + real-data procedure as mission 002 (old 041). Kill only by PID, never `pkill -f`. Workers never read .env.
  7. 1. Daily sync: instead of one request per followed show, use TMDB /tv/changes and /movie/changes (since last run,
  8. paged; max 14 days, else fall back to the full walk) and TVmaze /updates/shows?since=day; refresh only changed titles
  9. we have. Keep the 04:00 UTC schedule.
  10. 2. Refresh the SHOW RECORD too (title, tmdbSummary, status, tagline, homepage, genres, poster, ids, type) — today only
  11. seasons/episodes are refreshed (creator: "some shows changed descriptions and titles and that did not update").
  12. 3. Summary: `summary` = the creator's own text, never written by the sync; TMDB text → `tmdbSummary`, TVmaze →
  13. `tvmazeSummary` (HTML stripped). Pages show summary > tmdbSummary > tvmazeSummary. One-time: clear `summary` where it
  14. equals the old tmdbSummary exactly (migrated copy) — report how many.
  15. 4. Gate (fake TMDB/TVmaze change feeds): changed title refreshed (title + summary), unchanged untouched, creator's
  16. summary kept, >14 days → full walk. Full gate green. Real data on a copy: requests and duration of one delta run vs
  17. the old full run, number of cleared summaries, screenshots of a refreshed show looked at.
  18. 5. README + STATUS; commit on t18.
  19. ## Report (short) — ALSO to reports/021-tracker-delta-sync.md
  20. Commits, files touched (merge notes), gate + last line, numbers, open points. Foreground only, never wait for notifications.

Branches

Latest commits

  • 06a7534aMerge branch 'cb'mre
  • 2f8030d6log: CB gates greenmre
  • 498bf644log: CB gates startmre
  • f59c2847gc1: bound the five request caches (shows.hl cacheLimit)mre
  • 6ea2c6d6log: morning re-measure 11-04mre
  • 446290f0log: GC1 livemre
  • 8e6aa91dlog: GC1 deploy retrymre
  • 87ad2dc1log: GC1 deployingmre
  • 53f10fb8Merge branch 'gc1-deploy'mre
  • 7fcbf1d2log: GC1 deploy GOmre
  • 1fb6664bcompose: TRACKER_QSTATS=1 (GC1 measurement)mre
  • 6576c1cdgc1: release the people-view scan lists once the view is builtmre
  • 94f8a373gc1: back out the kept episode-id set (no measurable gain on /my/unwatched: 4.69 -> 4.61 GB per 150 loads)mre
  • a1a88bd4gc1: search skips the stale-key string while no entry is stale; /my/unwatched asks a kept id set instead of building a key string per episode rowmre
  • cd830744gc1: dbSearch: no split / map / list copy per candidate (scores from the stored text, top list touched only when the hit can enter)mre
  • 451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre
  • ddb4127egc1: TRACKER_QSTATS=1 logs queue and cache sizes every 10 s (measurement only)mre
  • da60547fstatus: GC1 done, backup bugmre
  • e4171021log: GC1 result, backup hard-link bugmre
  • f1597214deploy.sh backup: tar --hard-dereference (hot tar stored mpackdb sidecars as hard links to .sessions files)mre