gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2d4be66f2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre2d4be66f/reports/032-people-search-settings.md

7.7 KB

  1. # Report 032 — tracker#37: /people, people in the search, /settings (w089, 2026-10-04)
  2. Commits on main: 718bfb8 (code + gates + README/STATUS/LOG), 9bce1f6 (STATUS note). NOT deployed, not pushed.
  3. **/people** (+ `/people/page/<n>`): everyone (no adult filter, as before), the one updated last first. "Updated" = the newest of
  4. `updatedAt` (new: the person page's TMDB fill stamps it), `filmographyAt` and `added`; migrated people without any come last.
  5. Photo + name tiles through `components/tilelist.hl` (new prop `tileClass="tile person-tile"`: name in the person colour, no year),
  6. the same pagination as /movies, "105018 people, last updated first · page 1 of 4376". The letters and `/people/<letter>` are gone.
  7. - Cached view (the mission 025 approach): `lib/people.hl warmPeopleView()` runs at boot: one pass over the people, one sort, the cast
  8. photos. Log: `people view: 105018 people, 51922 cast photos in 3753 ms`. A page slices 24 ids. People created (`castPersonId`) or
  9. updated (the fill) move to the front on the next read (`personTouched`), no restart needed.
  10. - `util.hl sortDesc` now starts from the runs that are already sorted. Output is the same and the gates are unchanged. 105k
  11. nearly-sorted people take 0.15 s instead of 1.6 s.
  12. **Photos**: the order is our file, then `tmdbProfile` (TMDB w185), then the `profile` from a title's cast or crew entry (in-memory
  13. map built at boot), then the new "no photo" placeholder (`assets/photo-placeholder.svg`; titles still show "no poster"). New
  14. people now keep TMDB's profile: cast, crew and `created_by` entries carry `profile`, and `castPersonId` stores `tmdbProfile`.
  15. I first tried a one-time write of the cast profiles into the person records. On the live copy it took **511 s at boot** for
  16. 51,907 people, so I dropped it for the in-memory map (~1–3 s at boot).
  17. **Search**: people rows now show the photo before the name, which links to the person page. The database search and "Fetch from
  18. web" are unchanged. "Jared Harris" finds Jared Harris with his photo.
  19. **/settings**: only `<h1>Settings</h1>`, plain. The typed style ("<type> | <name>") does not fit a page without a type.
  20. **Gates**: browser **369/0** (4 new #37 checks, 3 extended: order after the fill and after a new person, pagination page 2,
  21. search photos for cast / created_by / crew / cast-map / placeholder, "no photo", Settings heading only, the boot log line),
  22. kinds 32/0, franchises 52/0, check-theme 0. One browser run that crossed 04:00 UTC failed 9 #18/#35 checks. The gate sets
  23. TRACKER_SYNC_HOUR to the hour it started in, so a run that crosses the hour fails. This is an old flake; the rerun was 369/0.
  24. **Real copy** (live storage 2026-10-04, tree without .env, jobs off; base 96ba683 for A/B):
  25. - /people pages 1/2/3: server 13–17 ms each, page 4376 ~15 ms. Full load to hydrated (1280, signed in, median of 10): 85 / 67 / 77 ms.
  26. The base had 0.54 s on its first /people (lazy letters).
  27. - Search "Jared Harris": found with photo, 16 ms server (base 12 ms). /search/star trek 120 vs 106 ms load (noise ±10 ms; /movies,
  28. whose code did not change, measured +9 ms).
  29. - Boot RSS ≈ base (+~20 MB). Peak varies ±150 MB between runs of the same build.
  30. - Screenshots 390/1280 signed in and out, all looked at (`.scratch/w089/shots-final/`): header 52 px, no sideways scroll, 0 console
  31. problems.
  32. **Open / for the architect and the creator**:
  33. - On live, /people pages 1–3 are **all crew people** (72/72). They are the writers and directors of the credits job's last titles,
  34. and crew entries had no profile before this mission. So the first pages show "no photo" until someone opens the person (the fill
  35. downloads the photo) or that title's credits are stored again. Cast people with a TMDB photo show it (page 20: 24/24).
  36. Filling them all would need a backfill job (TMDB /person per person, ~50k requests), not built.
  37. - Mission 033 (worktree t38) may also touch `components/tilelist.hl`; this mission added `tileClass` there.
  38. - Housekeeping: my first local copy went into the shared scratchpad dir `…/scratchpad/t` and overwrote the copies of
  39. lib/components/project.hl/tests/browser.mjs/README/STATUS/LOG that an earlier session had left there (an old pre-028 tracker
  40. layout). The repo is unaffected.
  41. ---
  42. # Added: The Remaining (urgent) and tracker#39 (w089, 2026-10-04 06:45)
  43. **The Remaining**: live is not an empty stub. Headless Chrome at 390 and 1280, plus client-side navigation from /search, /movies
  44. and /, shows the overview, 4 genres, director/writer and 5 cast members (Loreana `.scratch/w089/remaining/live-before-*.png`). The
  45. stored record has tmdbSummary, tagline, genres, cast, crew, detailsAt and tmdbSync. Asking TMDB with the app's own request
  46. (`/movie/1775752?append_to_response=external_ids,credits`): poster_path null, imdb_id null, runtime 7, backdrop_path set.
  47. Missing on the page: the poster (TMDB has none), the IMDb link (TMDB has none) and runtime/release date (the app never shows
  48. them). I proposed using the backdrop as a poster fallback plus showing release date and runtime. Waiting for the lead's decision.
  49. No code changed for this.
  50. **tracker#39** (commit b10f00c): migrated episodes still carry TMDB ids that TMDB has since replaced. sync.hl matched by number
  51. only when an episode had no tmdbId at all, so the sync and the repair added a second episode with the same number. Live copy:
  52. 850 extra episodes in 112 series.
  53. - Sync: a stale-id episode is now adopted by its number (old id kept as `migratedTmdbId`).
  54. - Merge: merge.hl step 3 (keeper: most watches, else the synced one, else the first; watches moved or parked; tombstones).
  55. - Check: `tools/count-duplicate-episodes.hl`.
  56. - Gates: 373/0, 32/0, 52/0. With the old sync.hl the new sync check fails.
  57. - Real copy: 850 → 0 in 64 s. The creator's 12,525 watch rows are unchanged; /my/unwatched 993 → 905.
  58. - Seasons: Flash S9 22 → 13; Discovery S5 20 → 10; Scrubs S1 48 → 24. Shots: `.scratch/w089/flash-shots/`.
  59. - Open: Specials stay large (TMDB's own: Flash 72, Discovery 70). 68 pairs with the same tmdbId under different episode numbers
  60. (old-tracker rows) are untouched.
  61. ---
  62. # Added: backdrop poster, runtime, art + photo backfills (w089, 2026-10-04 08:20; main after 4ecc67b)
  63. **Poster fallback**: when TMDB has no poster, syncPoster downloads the backdrop (w780) as the title's poster file
  64. (`posterFromBackdrop`). The existing CSS on every poster box shows it centre-cropped to 2:3. A real poster later replaces it.
  65. **Runtime**: movies now store `runtime`, and a movie page shows "17 September 2026 · 7 min" under its title.
  66. **Art backfill**: one TMDB request for each public title without a poster file and each public movie without runtime.
  67. **Photo backfill**: one TMDB request for each person without any photo source, in /people's order (page 1 first).
  68. - Both run last, after every other start job. They are paced at ≤ 40 requests per 10 s, resume after a restart and ask each item
  69. only once.
  70. - Switches: `TRACKER_ART=0` and `TRACKER_PHOTOS=0`. Every gate and realdata script starts with both off.
  71. **Gates**: browser 379/0, kinds 32/0, franchises 53/0, pager 229/0, franchiseseed 26/0, check-theme 0.
  72. **Real copy**, with real TMDB through a link to .env (never read):
  73. - Art: 4,977 titles done in 42 min — 115 posters, 15 backdrops, 4,609 runtimes, 0 failed.
  74. - The Remaining now shows its backdrop as poster plus "17 September 2026 · 7 min". Shots: `.scratch/w089/remaining/after/`; before
  75. = live, `remaining/live-before-*`.
  76. - Photos: the queue has 53,106 people at about 0.5 s each, so roughly 7.5 h.
  77. - After 5 min, /people pages 1–3 had 8, 3 and 4 of 24 with a photo (0 before). TMDB has no photo for most crew people.
  78. Shot: `.scratch/w089/photos-after/`.
  79. - RSS stayed at 1.5–1.7 GB.
  80. **Open**:
  81. - Only 15 titles had a backdrop to use; most poster-less public titles have no art at TMDB at all.
  82. - Runtime is stored for movies only.
  83. - After deploy the photo job runs for about 7.5 h.

Branches

Latest commits

  • 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre
  • 99e7c8b9tests: realdata-m035-radii, repro-t38, realdata-060-backfill ports from env (REAL_PORT, REAL_CHROME, REPRO_CHROME), defaults unchangedmre
  • 4625aa22re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
  • 33ad4bd5Merge commit 'f57f64f'mre
  • 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
  • f57f64f0mission 046: report, LOGmre
  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • efe1b485mission 046: re-vendor Hybriel master 60b2817b (integration 8, #203): plugins mpackdb + web (bin/ git-ignored: hybriel, libhlrt.a, hlc.o, hlrt/ from native/zig-out)mre
  • 53099ffbmission 046: person page reads a slim per-title credit row cache (no whole-record fetch per credit); gate tests/person-lookup.mjsmre
  • 9b3828aemission 046a: report, LOGmre
  • 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
  • ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
  • 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre
  • 4d72e365mission 045mre
  • b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
  • 3db7dc31merge w44-jobs-slices into w43-trkmemmre