gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3db7dc313db7dc31merge w44-jobs-slices into w43-trkmemmre3db7dc31/tests/seed-reduced.hl

2.1 KB

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

Branches

Latest commits

  • 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
  • 23375c58mission 044: report, LOG, STATUSmre
  • c6fd928emission 044: 4096 slices for tables over 200 K rows, 15 ms budget, TRACKER_SLICE_DEPTH for testsmre
  • fb057680mission 044: jobs.hl imports mergeLeft (gate found it), mission file, slices benchmre
  • 0d6293ebmission 043: mission filemre
  • d25bd14amission 044: sliced merge prepare + sliced collections prepare; jobs-dump old/new check + bulk fixturemre
  • 633ee210mission 044: sliced table scans (slices.hl, pk-range slices) for the adult/kind/status/art/credits/details-repair queuesmre
  • 55bbd619boot: one streamed pass per table (lib/bootscan.hl) instead of find(null,null) per module; follows/watches/franchises scans streammre
  • 1d465d3ere-vendor plugins to Hybriel master f9614007 (mpackdb #202 copy fix, libmpackdb sha 6fb3b9d6)mre
  • 6648ba44mission 042: real-browser E2E on ce6f2e0a re-vendor 69/0 at 390 + 1280mre
  • 3ed3a0efmission 042: gates old/new equal (browser #41 route-table regex accepts unescaped hl:web output), real-data TTFB, E2E blocked by lisbeth lockmre
  • d5b61e90LOG 042mre
  • 4acdbaccmission 042: memory comparison old vs ce6f2e0a (stopped: warm VmHWM higher), reportmre
  • d0f620d6mission 042: re-vendor Hybriel ce6f2e0a (plugins incl. mpackdb; bin runtime built from the same archive, git-ignored), compact=false keptmre
  • 5bd14e12mission 040: theme 76f99f6 gates + E2E green; 44 px fixes (skeleton row, type-word, genre-link/pill); README, reportmre
  • 77cfa45cmission 040: partial report (theme/modal/pagination re-copied, tilelist onPage, 44 px taps; gates new + E2E pending)mre
  • 4b14822fe2e-theme: menu marker by colourmre