tracker
All repositories: gitoria
2.5 KB
# Mission 002 (old 041) — tracker.worldapi.org#8: /my/ pages, S01E01, years, speedTicket + all comments: `curl -s -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/tracker.worldapi.org/tickets/8`Same setup and rules as mission 001 (old 040) (`missions/001-tracker-my-shows.md`) — read it.App: loreana:/media/STORAGE/projects/tracker.worldapi.org (ssh loreana, wrap in `bash -s`).## Build1. `/unwatched` → `/my/unwatched`, `/schedule` → `/my/schedule`; old addresses answer 301 to the new ones.2. Episodes everywhere as `S01E01` (two digits each): /my/unwatched, /my/schedule rows (replace "Ep 1").3. Show page: "1 episode" singular.4. Year next to show titles wherever titles are listed: `Doctor Who (2005)` (from the show's year/release field).5. SPEED with the real data (the creator's account: 128 follows, 11,692 watches, 231,584 episodes). Now: /my/shows~25 s, /unwatched ~18 s full page load. Target: each /my/ page under 2 s full page load. Load the user'swatched ids once (a map), no per-episode scans of all watches; find out why /my/shows' full render is slow when itsdata part is 0.2 s.6. Gate: extend tests/browser.mjs for 1–4; all green with`TRACKER_GATE_SHOTS=/tmp/w041-shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 node tests/browser.mjs`(the gate already takes screenshots when TRACKER_GATE_SHOTS is set — update its page list to the /my/ paths and LOOKat the PNGs yourself).## Real-data check (required)Copy the live data to Loreana: `ssh [email protected] 'tar czf - -C /CONTAINERS/projects/tracker.worldapi.org storage'`into `.scratch/realdata/` (ONLY `storage/` — never `.env` or `.sessions`). Start a dev server on port 8730 withTRACKER_STORAGE pointing at the copy and its own `.scratch/realdata-sessions/`. Create a session there for thecreator's user (users table, ident id `az5b2`) in that COPY's sessions dir, set it as cookie in headless Chrome(cdp.mjs), then load /my/shows, /my/unwatched, /my/schedule and one show page: time each full load, take screenshots,look at them. Delete the copy and stop everything afterwards. Never touch Byrodin's live folder except that one tar read.## Report (short)Files changed, decisions, gate command + last line, the 4 real-data load times, where the screenshots are(/tmp/w041-shots/ and real-data PNGs in /tmp/w041-real/ on Loreana — keep those), open points, Hybriel issues.## Added 2026-10-01- Kill only processes you started, by PID. Never `pkill -f <pattern>` (other workers run the same server command).
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