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
- 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
- 6b58571elog: GC windowmre
- 5c8baa1fdeploy lock: hold only around deploy.shmre
- b8dac822log: hybriel#309mre
- bf676d9elog: GC1 startedmre
- c7828541mission GC1mre
- ef949994conductor: neutral ticket rulemre
- 89e91ef3log: RV39 livemre
- ee2b677alog: RV39 deployingmre
- c1c4178cMerge branch 'rv39'mre
- a016e9abReapply "Merge branch 'rv39'"mre