gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita6dfd6eca6dfd6ecdeploy: person-lookup gate (tracker#46)mrea6dfd6ec/tests/realdata-m035-radii.mjs

1.9 KB

  1. // tests/realdata-m035-radii.mjs — mission 035, NOT the gate: every element's computed corner radii on 8 pages at 390/1280 against a server
  2. // from tests/realdata-m028.sh (port 8731, its copy's sid in W/copy35/sid) must be 0, 5px, 10px or 50%; prints the offenders per page.
  3. import { readFileSync } from 'node:fs';
  4. import { launchBrowser } from '/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/tests/cdp.mjs';
  5. process.env.HL_CHROME ||= '/opt/google/chrome/chrome';
  6. const W = '/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/.scratch/w089';
  7. const b = await launchBrowser({ debugPortRange: [8729, 8729] });
  8. try {
  9. const p = await b.newPage();
  10. await p.send('Network.setCookie', { name: 'trackersid', value: readFileSync(`${W}/copy35/sid`, 'utf8').trim(), url: 'http://127.0.0.1:8731' });
  11. for (const w of [390, 1280]) {
  12. await p.send('Emulation.setDeviceMetricsOverride', { width: w, height: 900, deviceScaleFactor: 1, mobile: w === 390 });
  13. for (const path of ['/', '/series/Star-Trek-Picard', '/movies/Star-Trek-First-Contact', '/people', '/franchises', '/search/star%20trek', '/my/series', '/genres']) {
  14. await p.goto('http://127.0.0.1:8731' + path, { timeout: 120000 });
  15. await p.waitFor('!!window.__hl && window.__hl.socket && window.__hl.socket.readyState === 1', { timeout: 120000 });
  16. const r = JSON.parse(await p.evaluate(`JSON.stringify((() => { const seen = {}; for (const el of document.querySelectorAll('*')) { const s = getComputedStyle(el);
  17. for (const c of ['borderTopLeftRadius','borderTopRightRadius','borderBottomLeftRadius','borderBottomRightRadius']) { const v = s[c]; if (!['0px','5px','10px','50%'].includes(v)) { const k = el.tagName.toLowerCase() + (el.className && typeof el.className === 'string' ? '.' + el.className.split(' ')[0] : '') + ' ' + v; seen[k] = (seen[k] || 0) + 1; } } } return seen; })())`));
  18. console.log(w, path, Object.keys(r).length ? JSON.stringify(r) : 'all radii in {0, 5px, 10px, 50%}');
  19. }
  20. }
  21. } finally { await b.close(); }

Branches

Latest commits

  • a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
  • 33ad4bd5Merge commit 'f57f64f'mre
  • 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
  • f57f64f0mission 046: report, LOGmre
  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • efe1b485mission 046: re-vendor Hybriel master 60b2817b (integration 8, #203): plugins mpackdb + web (bin/ git-ignored: hybriel, libhlrt.a, hlc.o, hlrt/ from native/zig-out)mre
  • 53099ffbmission 046: person page reads a slim per-title credit row cache (no whole-record fetch per credit); gate tests/person-lookup.mjsmre
  • 9b3828aemission 046a: report, LOGmre
  • 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
  • ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
  • 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre
  • 4d72e365mission 045mre
  • b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
  • 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