gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb8bba562b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mreb8bba562/tests/seed-pager.hl

2.8 KB

  1. // tests/seed-pager.hl — GATE FIXTURE for tracker.worldapi.org#38 (mission 033, tests/pager.mjs): every paginated list with 11
  2. // pages of 24, so the pagination shows "…" and its list changes length from click to click (what tracker#38 needed to show):
  3. // 250 movies 'Pg Movie 001'…'250' (released 1801…2050, genre Pagerg) → /movies, /genres/Pagerg (newest first: 250 … 001)
  4. // 250 series 'Pg Series 001'…'250' (kind series, released 1801…2050) → /series (newest first)
  5. // 250 shows 'Pg Show 001'…'250' (kind show, genre Talk, 1801…2050) → /shows (newest first)
  6. // 250 people 'Pgperson 001'…'250' (updatedAt 1001…1250) → /people (last updated first: 250 … 001)
  7. // Written into the gate's own empty storage before the server starts; self-assigned ids, one put() each.
  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. genresTable = new MPackDB(file = storageDir + '/genres.db', primaryKey = '@id', indexes = ['!oldId'])
  13. personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])
  14. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  15. genreId = 'pg00000000000gp1'
  16. talkId = 'pg00000000000gt1'
  17. genresTable.put({ id = genreId name = 'Pagerg' urlSegment = 'Pagerg' tmdbId = 99001 oldId = 'pg-pagerg' })
  18. genresTable.put({ id = talkId name = 'Talk' urlSegment = 'Talk' tmdbId = 10767 oldId = 'pg-talk' })
  19. title = (id, name, type, kind, year, slug, genres) => {
  20. showsTable.put({
  21. adult = false id = id title = name summary = null tmdbSummary = null tmdbId = null kind = kind
  22. language = 'en' type = type release = year + '-01-01' year = year image = null urlSegment = slug
  23. episodesCount = null homepage = null imdbId = null seasonsCount = null status = null tagline = null
  24. tvdbId = null tvmzId = null genres = genres cast = [] seasons = [] oldId = id
  25. })
  26. return true
  27. }
  28. let i = 1
  29. while (i <= 250) {
  30. let nnn = i < 10 ? '00' + i : (i < 100 ? '0' + i : '' + i)
  31. let y = 1800 + i
  32. title('pgm00000000' + nnn, 'Pg Movie ' + nnn, 'movie', null, y, 'pg-movie-' + nnn, [genreId])
  33. title('pgs00000000' + nnn, 'Pg Series ' + nnn, 'series', 'series', y, 'pg-series-' + nnn, [])
  34. title('pgt00000000' + nnn, 'Pg Show ' + nnn, 'series', 'show', y, 'pg-show-' + nnn, [talkId])
  35. personsTable.put({ id = 'pgp00000000' + nnn name = 'Pgperson ' + nnn urlSegment = 'Pgperson-' + nnn updatedAt = 1000 + i tmdbId = null shows = [] oldId = 'pgp' + nnn })
  36. i = i + 1
  37. }
  38. genresTable.persist()
  39. showsTable.persist()
  40. personsTable.persist()
  41. console.log('seed-pager: 250 movies, 250 series, 250 shows, 250 people')

Branches

Latest commits

  • b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mre
  • 298785f2Tracker: CL1 startedmre
  • 36b22710Tracker: port slot, CL1 briefmre
  • a401190fTracker: GO for the crash loopmre
  • e195d372Tracker: token pathsmre
  • 7f541d11Tracker conductor: CONDUCTOR.md, short STATUS.md, old status + decisions archive to archive/2026-10-31mre
  • 8dd423f7README: login.js stays by caramboleyo's explicit rulemre
  • d8df1493tracker: standby service on port 45018 and a gap-free hand-over in deploy.sh step 4mre
  • 36dd1686ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • ff9b838etracker: the Ended status pill uses the same red as layouts (pill danger); gate updatedmre
  • 40d9719eTP2: LOG line and report for the tracker pillsmre
  • ab3f2ba5tracker: status, genres, TMDB/IMDb/TVDB/TVmaze links and list kinds use the theme's pill; dense season list with the season check centred on its title line; gates for bothmre
  • 521061d6tracker header on phones: signed in, the brand fits whole at 360 and 390 px (tighter gaps and side paddings, slightly smaller brand, narrow screens and signed in only); mobile gate checks itmre
  • 18114a53tracker: franchises gate waits for the signed-out selector instead of the removed Log in buttonmre
  • 08561d73ident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
  • 59ef1e4atests/browser: repair 'done' check counts the 404 titles the first run already finished (race: failed=1 when Bulk Film 79 ran before the restart)mre
  • 5925fc4dreports/MK-mobile.md: rebase update, gate countsmre
  • 6adbc7f0extlink badges: background-clip after the background shorthand (it reset the clip: the pills were 44 px tall); gates check the lookmre
  • 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre
  • 1d98dcfdbrowser gate: the badges' size check reads the padding box (the 44 px tap area is transparent border)mre