tracker
All repositories: gitoria
1.4 KB
// tests/seed-tvleftover.hl — GATE FIXTURE for mission 025: written by tests/browser.mjs into the gate's storage while the app is// STOPPED (one process per storage, hybriel#21). A MOVIE carrying a TV answer's fields, like Star Trek: First Contact on the// real data (the #9 sync once asked /tv/<its tmdbId>): TV text in tmdbSummary, status 'Ended', season/episode counts. It is// complete otherwise (`detailsAt` set) — the details repair must still ask /movie/2299 again (shows.hl hasTvLeftovers).import { 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'])showsTable.put({adult = false id = 'sh000000000tvfc1' title = 'Gate First Contact' summary = null tmdbSummary = 'A TV show about small businesses.' tmdbId = 2299language = 'en' type = 'movie' release = '1996-11-22' year = 1996 image = null urlSegment = 'gate-first-contact'episodesCount = 0 homepage = null imdbId = null seasonsCount = 0 status = 'Ended' tagline = nulltvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'shtvfc1' detailsAt = 1 creditsAt = 1})showsTable.persist()console.log('seed tv leftover: 1 movie with a TV answer\'s fields (Gate First Contact, tmdb 2299)')
Branches
Latest commits
- 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
- 593dab6fmission 043: report, LOGmre
- 1a5a4818boot scans back to iterate (slices measured slower: titles 114 s, episodes 141 s, persons failed); lambda per rowmre
- 03d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre