gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfd10c3d5fd10c3d5log: CB livemrefd10c3d5/tests/paths-m026.hl

1.7 KB

  1. // tests/paths-m026.hl — GATE TOOL for mission 026 (tracker#31): the two paths that CREATE titles, run against the gate's storage
  2. // with the app STOPPED (hybriel#21) and the fake TMDB (the gate's env): each must find the title we have — after the merge, the
  3. // keeper — and add nothing; only a title we really lack is added. Prints one `path …` line per check (tests/browser.mjs reads them):
  4. // search import (search.hl importTitle) of tv 1301 and movie 1303 → created=false, the keeper's path
  5. // filmography fill (people.hl personFillStep) of TMDB person 3301, whose credits are tv 1301, movie 1303 and the new movie 1304
  6. // → added=1, the person's credits point at the keepers
  7. import { env } from 'hl:proc'
  8. import { importTitle } from '../lib/search.hl'
  9. import { personFillStep } from '../lib/people.hl'
  10. import { personsTable, showsTable, showById, titlePath } from '../lib/shows.hl'
  11. r1 = importTitle('tv', 1301)
  12. console.log('path import tv 1301 created=' + r1.created + ' path=' + r1.path + ' error=' + r1.error)
  13. r2 = importTitle('movie', 1303)
  14. console.log('path import movie 1303 created=' + r2.created + ' path=' + r2.path + ' error=' + r2.error)
  15. let pid = null
  16. for (p of personsTable.find(null, null)) { if (p.tmdbId == 3301) { pid = p.id } }
  17. let steps = 0
  18. let last = { done = false }
  19. while (pid != null && !last.done && steps < 10) {
  20. last = personFillStep(&pid)
  21. steps = steps + 1
  22. if (last.error != null) { last = { done = true error = last.error } }
  23. }
  24. credits = []
  25. if (pid != null) {
  26. for (c of personsTable.fetch(pid).shows) { credits.push(titlePath(showById(&c.show))) }
  27. }
  28. console.log('path fill person 3301 steps=' + steps + ' added=' + last.added + ' error=' + last.error + ' credits=' + credits.join(','))

Branches

Latest commits

  • fd10c3d5log: CB livemre
  • 7557c025log: CB deploy try 2mre
  • 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