gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd049b8b8d049b8b8Log: HM50 live, #52 donemred049b8b8/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

  • d049b8b8Log: HM50 live, #52 donemre
  • 6d05fa37Log: HM50 Part A mergedmre
  • 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
  • e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
  • 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
  • 2f391aa9Log: HM50 startedmre
  • 4b59c03dHM50 mission: doc pathmre
  • ed526d67HM50 missionmre
  • 2f986ca3Log: RT50 passmre
  • 1c4715a4RT50 mission: day50 repro retestmre
  • 57d1c0dcLog: day50 retest requestmre
  • 60b1f419Log: Anton #336 result, wake checkmre
  • 919a18aalog: scratchmre
  • 6b504440status tidymre
  • 9332bd10log: DP70 livemre
  • be11daa0DP70 brief fixmre
  • 886a7028DP70 brief, HM67 mergedmre
  • b41cdd6dMerge hm67-searchids: packed search IDsmre
  • 385904eaReport HM67 matched heap measurements and gate proofmre
  • e5c9b659Pack retained search IDs into UTF-8 bytesmre