tracker
All repositories: gitoria
2.1 KB
// tests/seed-reduced.hl — GATE FIXTURE for tracker#33 (mission 029): written by tests/browser.mjs into the gate's storage while the// app is STOPPED (one process per storage, hybriel#21). Two titles like the old tracker's MIGRATED rows that were never synced// (old `oldId`, no `tmdbSync`, no `detailsAt`, no `minimal`/`imported` — #26's test let them pass) and one complete title TMDB// has no poster for (like The Remaining):// Reduced Gate Series tv 1401: no seasons, no poster, no genres, no status → the details repair completes it// Reduced Gate Movie movie 1402: no poster, no genres, no IMDb id → completed when its page is opened// Posterless Gate Movie movie 1403, synced (`tmdbSync`), no poster on TMDB → complete: the placeholder, never askedimport { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])title = (id, tmdbId, type, name, slug, release, synced) => {return { adult = false id = id title = name summary = null tmdbSummary = 'An old text of ' + name + '.' tmdbId = tmdbIdlanguage = 'en' type = type release = release year = toNumber(release.slice(0, 4)) image = null urlSegment = slugepisodesCount = null homepage = null imdbId = null seasonsCount = null status = null tagline = null kind = type == 'movie' ? null : 'series'tvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'rd-' + tmdbId creditsAt = 1 tmdbSync = synced ? 1 : null }}showsTable.put(title('rd00000000000sr1', 1401, 'series', 'Reduced Gate Series', 'reduced-gate-series', '2010-04-01', false))showsTable.put(title('rd00000000000mv1', 1402, 'movie', 'Reduced Gate Movie', 'reduced-gate-movie', '1999-09-09', false))showsTable.put(title('rd00000000000mv2', 1403, 'movie', 'Posterless Gate Movie', 'posterless-gate-movie', '2026-09-17', true))showsTable.persist()console.log('seed reduced: 2 never-synced migrated titles (series 1401, movie 1402), 1 synced movie without a poster (1403)')
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