tracker
All repositories: gitoria
1.7 KB
// tests/paths-m026.hl — GATE TOOL for mission 026 (tracker#31): the two paths that CREATE titles, run against the gate's storage// with the app STOPPED (hybriel#21) and the fake TMDB (the gate's env): each must find the title we have — after the merge, the// keeper — and add nothing; only a title we really lack is added. Prints one `path …` line per check (tests/browser.mjs reads them):// search import (search.hl importTitle) of tv 1301 and movie 1303 → created=false, the keeper's path// filmography fill (people.hl personFillStep) of TMDB person 3301, whose credits are tv 1301, movie 1303 and the new movie 1304// → added=1, the person's credits point at the keepersimport { env } from 'hl:proc'import { importTitle } from '../lib/search.hl'import { personFillStep } from '../lib/people.hl'import { personsTable, showsTable, showById, titlePath } from '../lib/shows.hl'r1 = importTitle('tv', 1301)console.log('path import tv 1301 created=' + r1.created + ' path=' + r1.path + ' error=' + r1.error)r2 = importTitle('movie', 1303)console.log('path import movie 1303 created=' + r2.created + ' path=' + r2.path + ' error=' + r2.error)let pid = nullfor (p of personsTable.find(null, null)) { if (p.tmdbId == 3301) { pid = p.id } }let steps = 0let last = { done = false }while (pid != null && !last.done && steps < 10) {last = personFillStep(&pid)steps = steps + 1if (last.error != null) { last = { done = true error = last.error } }}credits = []if (pid != null) {for (c of personsTable.fetch(pid).shows) { credits.push(titlePath(showById(&c.show))) }}console.log('path fill person 3301 steps=' + steps + ' added=' + last.added + ' error=' + last.error + ' credits=' + credits.join(','))
Branches
Latest commits
- e8f5cbcaLog: SR1 result, SR1bTracker
- 8ad275a4Log/status: tracker 68, SR1Tracker
- f5a06a0fLog: gitoria push setup, SR1Tracker
- d6b109baMission SR1mre
- 608b7558Log: FF1 merged via PR #1mre
- 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
- c934361a|||PR tests: gates fail fast when the app exits during startmre
- d714ae42Log/status: AP56 closed out, FF1mre
- a429d088Mission FF1mre
- 03bbfba3Log: AP56c causemre
- 24845fe3Log: AP56b result, AP56cmre
- 6a6d71eaLog: gitoria membershipmre
- 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
- 6bb7c20estatus: window 2026-11-09mre
- 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
- e84586a7Mission AP56bmre
- 15917f03Record PR workflow rule (gitoria#50)mre
- 942ac995status: paused workers statemre
- 44b934e5log: respawn cleanupmre
- 03a80097Log: Anton GC A/Bmre