tracker
All repositories: gitoria
2.8 KB
// tests/jobs-dump.hl — CHECK of mission 044 (background jobs in slices): prints, one line each, (1) every job's queue (ids), (2) the merge// prepare's stats and, with TRACKER_DUMP_MERGE=1, the stores AFTER every merge step ran, (3) the collections queue, (4) every table's// rows as JSON. Run on the SAME store copy with this tree and with the old tree (tests/jobs-dump-old.hl in the old checkout: the same// output through the former `…Queue()` / `mergePrepare()` functions), `sort` both outputs, diff: equal = same jobs, same writes.// Order differs on purpose (slices = key order, the old scans = file order), hence the sort. Run while the app is STOPPED.// TRACKER_STORAGE=<store copy> TRACKER_DUMP_MERGE=1 ./bin/hybriel tests/jobs-dump.hl | sort > out-new.txtimport { env } from 'hl:proc'import { showsTable, seasonsTable, episodesTable, personsTable } from '../lib/shows.hl'import { followsTable } from '../lib/follows.hl'import { watchesTable } from '../lib/watches.hl'import { collectStep, collected } from '../lib/slices.hl'import { adultBackfillScan, adultPred, kindBackfillScan, kindPred, tvmazeStatusScan, statusPred, artScan, artPred } from '../lib/backfill.hl'import { creditsScanStart, creditsPred } from '../lib/credits.hl'import { detailsRepairScan, repairClass } from '../lib/details.hl'import { mergePrepare, mergeStep, mergeStats, mergeLine, persistMerge } from '../lib/merge.hl'import { seedPrepare, seedQueue } from '../lib/collections.hl'printIds = (tag, ids) => {for (id of ids) { console.log(tag + ' ' + id) }console.log('count ' + tag + ' ' + ids.length)return true}drainScan = (c, pred) => {while (!collectStep(c, pred)) {}return collected(c)}printIds('adult', drainScan(adultBackfillScan(), adultPred))printIds('kind', drainScan(kindBackfillScan(), kindPred))printIds('status', drainScan(tvmazeStatusScan(), statusPred))printIds('art', drainScan(artScan(), artPred))printIds('credits', drainScan(creditsScanStart(), creditsPred))rq = drainScan(detailsRepairScan(), repairClass)printIds('repair', rq)// the repair queue is "the reduced ones first, then the rest": print the position class toowhile (!mergePrepare()) {}st = mergeStats()console.log('mergeprep groups=' + st.groups + ' records=' + st.records + ' strayTitles=' + st.strayTitles + ' doubleSeasons=' + st.doubleSeasons)while (!seedPrepare()) {}printIds('seed', seedQueue)if (env('TRACKER_DUMP_MERGE') == '1') {let guard = 0while (guard < 100000) { r = mergeStep() if (r.done) { break } guard = guard + 1 }persistMerge()console.log('merge ' + mergeLine())}dumpTable = (tag, table) => {for (r of table.find(null, null)) { console.log('row ' + tag + ' ' + JSON.stringify(r)) }return true}dumpTable('shows', showsTable)dumpTable('seasons', seasonsTable)dumpTable('episodes', episodesTable)dumpTable('persons', personsTable)dumpTable('follows', followsTable)dumpTable('watches', watchesTable)
Branches
Latest commits
- 043624b2theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 05d89fd0deploy: security gate (tests/security.mjs)mre
- 2ae8a47bMerge branch 'sk-sec'mre
- 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 944ad51eSK: report reports/SK-sec.md, LOGsk
- 415487c1SK: import budget per user + id type check, gate checkssk
- 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
- f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
- 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
- 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
- 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre
- c87149e8tests/warmstart.mjs: the progressive start proven over HTTP (note in the window, 503 short id, after: everything); bootBeginmre
- 593a6350boot: resumable start-up scan, the server listens first (T17)mre
- be4890a0reports: H2 hydration audit (no test change needed)mre
- 1f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- c1df88eddocker-compose: HL_GC_TABLE_LOAD=62 (tracker mission 048, T16 real-data numbers)mre
- d0a82867mission 048: report, LOG (HL_GC_TABLE_LOAD=62 measured)mre
- 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre
- 99e7c8b9tests: realdata-m035-radii, repro-t38, realdata-060-backfill ports from env (REAL_PORT, REAL_CHROME, REPRO_CHROME), defaults unchangedmre
- 4625aa22re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre