gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2bae83732bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre2bae8373/tests/seed-shortids.hl

1.4 KB

  1. // tests/seed-shortids.hl — GATE FIXTURE for mission 060 (tracker.worldapi.org#27, short ids): written by tests/browser.mjs into
  2. // the gate's storage while the app is STOPPED (one process per storage, hybriel#21), after every record already has its short
  3. // id. Self-assigned ids, one put() each.
  4. //
  5. // Short Person 01…60 no short id → the next start's backfill gives them one (the resume check stops it part way)
  6. // Dupe Person A, B BOTH carry 'aaaa1' → the next start keeps it for A (scanned first) and gives B a new one
  7. import { MPackDB } from 'hl:mpackdb'
  8. import { env } from 'hl:proc'
  9. storageDir = env('TRACKER_STORAGE')
  10. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  11. personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])
  12. let i = 1
  13. while (i <= 60) {
  14. let nn = i < 10 ? '0' + i : '' + i
  15. personsTable.put({ id = 'sp00000000000p' + nn name = 'Short Person ' + nn urlSegment = 'Short-Person-' + nn tmdbId = null shows = [] oldId = 'sp' + nn })
  16. i = i + 1
  17. }
  18. personsTable.put({ id = 'sp0000000000dupa' name = 'Dupe Person A' urlSegment = 'Dupe-Person-A' tmdbId = null shows = [] oldId = 'spdupa' shortId = 'aaaa1' })
  19. personsTable.put({ id = 'sp0000000000dupb' name = 'Dupe Person B' urlSegment = 'Dupe-Person-B' tmdbId = null shows = [] oldId = 'spdupb' shortId = 'aaaa1' })
  20. personsTable.persist()
  21. console.log('seed short ids: 62 persons (60 without a short id, 2 sharing aaaa1)')

Branches

Latest commits

  • 2bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre
  • 16b3354aMerge branch 'main' into rv28cmre
  • 6f4f27d8log: RV28d started (day38b)mre
  • e6cf03ffmission RV28d: rv28c onto day38bmre
  • 3ccaee19status: live sweep freeze, waiting for Apollomre
  • 49f76ecblog: watch toggle slowness = session sweep freeze (tracker#50)mre
  • 3daf6eddlog: day37 live, still waiting for day39mre
  • 796ba672records: #277 slips to day39mre
  • a9eb9827records: mpackdb integrity clean, all 12 tablesmre
  • 6cf40dbdrecords: mpackdb integrity check, shows uncheckedmre
  • 1880f42arecords: day38 deploy may swap normallymre
  • 9d806e35records: mpackdb freeze until day38mre
  • a660239drecords: day37 lacks #277, wait for day38mre
  • b0abfdeaLOG: Anton hybriel#277 fix ready for day37mre
  • 7b5b2918Tracker: hybriel#277 fix comes in day37mre
  • 7ddbeec8Tracker: RV28c blocked on day35 regressionmre
  • 529096e8RV28c: reportmre
  • a4047071RV28c: re-vendor Hybriel set day35 (source cb9e480d, bin 4bb25cfa)mre
  • 765057fbMerge main into rv28c (LOG.md, STATUS.md: both sides kept)mre
  • bf401884Tracker: RV28c startedmre