gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/missions/T36A-tmdb-apply.md

4.9 KB

  1. # T36A: tracker#36 apply the safe TMDB fixes on live
  2. Task: caramboleyo answered "yes" on tracker#36 (2026-10-29) to fixing the years and wrong ids as listed. Apollo's GO 2026-11-06: "fresh dry run, backup, apply, restart ... a few minutes down is fine. Report the counts."
  3. Read: tracker#36 (https://tickets.worldapi.org/tracker.worldapi.org/36, headers `Accept: text/markdown`, `user-agent: Tracker`, read only); report on branch t36: `git show t36:reports/T36-tracker-tmdb-fix.md`, above all "How the live apply must run"; CONDUCTOR.md sections 5 and 6; /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md.
  4. Tracker's reading (unconfirmed): only the automatic groups: years (with release date, 297288f) and exact unique id switches. Duplicates, multi-matches and everything on the list stay untouched. The report's paths /media/SLOW1TB2 and restart-every-7-minutes are old; backups now go to /media/STORAGE/deploy-backups/tracker.worldapi.org/.
  5. ## Phase 1, app running, touches nothing live
  6. 1. Branch t36a from main (current HEAD), worktree /media/STORAGE/claude-scratch/tracker/T36A/wt, main's bin/ copied in (`cp -a`). Bring over only the tool, its library and gate from t36 (tools/tmdb-fix.hl, lib/tmdbfix.hl, tests/tmdbfix.mjs and its seed/peek, the unfixable doc, the report). The t36 base is 173 commits old: the tables changed since (packed search text, catalog entries, shortids, day44). Adapt the tool to today's code. Check that a data write reaches every derived thing the running app rebuilds at boot. A real framework gap: STOP with a repro.
  7. 2. Gates plus the tmdbfix gate, ONLY under `flock /media/STORAGE/claude-scratch/tracker/gates.lock bash <your gates.sh>` (copy of claude-scratch/tracker/CB/gates.sh with your paths, HL_CACHE_DIR in scratch, port 8717). All pass, 0 failed.
  8. 3. Fresh copy: newest restorable backup in /media/STORAGE/deploy-backups/tracker.worldapi.org/ into T36A/copy (storage only, no posters/profiles, no sessions). Dry run with `--plan-out`: about 55 min, detached (setsid nohup), TMDB token from the live .env only in the process environment, never in a file, log or report. Apply on the copy, apply again (0 applied), dry run after: nothing planned, and the list lines unchanged. Check The Boys and two year fixes in the app on the copy.
  9. 4. Count the plan and check per planned title that nobody has a watch or follow on a switched id; if someone does, keep that title in the plan only if the watch survives, and report the title. Compare with the old plan (58: 49 years, 9 ids; /media/STORAGE/claude-scratch/atlas/T36/plan.txt). If the plan is above 100 lines or has a surprise kind of change: STOP and report before anything live.
  10. ## Phase 2, live: only when deploy worker DP65 is finished
  11. Check: /media/STORAGE/claude-scratch/tracker/DP65/REPORT.md exists, claude-scratch/tracker/deploy/run-dp65.out ends with deploy-exit=0, no deploy process runs. Poll sparsely. Tracker may also message you.
  12. 5. Take the shared deploy-init lock (claude-scratch/atlas/deploy-init.lock, fd 9, as in deploy/run.sh) only around steps 6-9, release with `exec 9>&-`. Outside probe 1/s for the whole phase, detached, log in T36A.
  13. 6. Copy only the tool and its library to byrodin in a separate directory outside the app's code path if the tool can run from there; otherwise into the app dir, and remove them after. `docker compose stop` for BOTH tracker.worldapi.org and tracker.worldapi.org-standby.
  14. 7. Backup with both stopped: storage (without posters/profiles), .sessions and .env, into /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-pre-t36-<date>.tgz on loreana; `gzip -t`, and `tar tvz | grep -c ^h` = 0. No good backup, no apply: start the app again and report.
  15. 8. Apply the plan as the report describes, same image and mount, logged. Failure or anything unexpected: restore from the backup, start, report.
  16. 9. Start main, then leave standby stopped as after a normal deploy. Do not change nginx unless the deploy helper's normal state needs it; read deploy.sh's helper first.
  17. 10. After ready (boot scan complete): 200 on all switched pages and some year-fixed ones, /shows, /movies, /100sp; no errors or LockTimeout in the log; restarts 0. Chrome look via claude-scratch/tracker/chrome/look.mjs under `timeout 500 flock /media/STORAGE/claude-scratch/atlas/lisbeth.lock`, signed out, one switched and one year-fixed page; if lisbeth is down say so. Fresh copy from live afterwards is not needed; dry run on the copy in step 3 is the proof of idempotence.
  18. ## Limits
  19. Scratch: /media/STORAGE/claude-scratch/tracker/T36A/. Commit on t36a only; no push, no tickets, no LOG/STATUS. Nothing in /tmp or /home/mre. Stop everything, delete the copy, list pids. Budget maxUsd 8.
  20. ## Report
  21. reports/T36A.md on the branch, short final message: plan counts per kind, what was applied/skipped/failed, backup name and checks, downtime start/end and 5xx/000 counts, page checks, Chrome, anything left for caramboleyo's list.

Branches

Latest commits

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker