gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita18957faa18957falog: evening re-measure after CBmrea18957fa/tests/seed-tvleftover.hl

1.4 KB

  1. // tests/seed-tvleftover.hl — GATE FIXTURE for mission 025: written by tests/browser.mjs into the gate's storage while the app is
  2. // STOPPED (one process per storage, hybriel#21). A MOVIE carrying a TV answer's fields, like Star Trek: First Contact on the
  3. // real data (the #9 sync once asked /tv/<its tmdbId>): TV text in tmdbSummary, status 'Ended', season/episode counts. It is
  4. // complete otherwise (`detailsAt` set) — the details repair must still ask /movie/2299 again (shows.hl hasTvLeftovers).
  5. import { MPackDB } from 'hl:mpackdb'
  6. import { env } from 'hl:proc'
  7. storageDir = env('TRACKER_STORAGE')
  8. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  9. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  10. showsTable.put({
  11. adult = false id = 'sh000000000tvfc1' title = 'Gate First Contact' summary = null tmdbSummary = 'A TV show about small businesses.' tmdbId = 2299
  12. language = 'en' type = 'movie' release = '1996-11-22' year = 1996 image = null urlSegment = 'gate-first-contact'
  13. episodesCount = 0 homepage = null imdbId = null seasonsCount = 0 status = 'Ended' tagline = null
  14. tvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'shtvfc1' detailsAt = 1 creditsAt = 1
  15. })
  16. showsTable.persist()
  17. console.log('seed tv leftover: 1 movie with a TV answer\'s fields (Gate First Contact, tmdb 2299)')

Branches

Latest commits

  • a18957falog: evening re-measure after CBmre
  • aac9a98dlog: evening re-measure startmre
  • 45163bd4log: person/tmdb error hypothesismre
  • cb38de2blog: swap 503 causemre
  • 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