gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/tests/mobile.mjs

21.7 KB

  1. // tests/mobile.mjs — THE PHONE GATE of tracker.worldapi.org (mission MK, the creator's rule "mobile first"; the caramboleyo's phone is an
  2. // Android Chrome of about 390 px): this app's own server on its own storage (tests/seed-show.hl + tests/seed-mobile.hl), signed in with a
  3. // session file (no ident), a real headless Chrome with TOUCH emulation at 390 × 844, device scale factor 3. Proves, per page:
  4. // - nothing scrolls sideways, every link / button is a 44 px tap target (tests/mobile-measure.js), every field is ≥ 16 px:
  5. // /my/series, /my/shows is empty-state-free here (the fixture follows series only → /my/series), /my/unwatched, /my/schedule,
  6. // /search/gate (title + person rows), a title page (the TMDB / IMDb badges), a movie page with the franchise widget (its franchise
  7. // link), a franchise page (its timeline names), the timeline editor ("New franchise …"), /login/failed ("back to tracker")
  8. // - /franchises (100 timelines without a franchise): 40 per page (a page of 1,546 was 54,000 px and 20 s on the real data), the franchises on
  9. // page 1 only, a pager that a real TOUCH tap on Next / a number works, the address /franchises/page/N, the last page the rest, an
  10. // out-of-range or bad page number = the last / the first page, and the whole page loads in under 2 s
  11. // node tests/mobile.mjs (TRACKER_GATE_PORT server, default 8700; TRACKER_GATE_CHROME "8702-8709"; TRACKER_GATE_SHOTS: screenshots)
  12. import { spawn, execFileSync } from 'node:child_process';
  13. import { checkServerExit } from './identkit.mjs';
  14. import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
  15. import { createHash } from 'node:crypto';
  16. import { dirname, join, resolve } from 'node:path';
  17. import { fileURLToPath } from 'node:url';
  18. import { launchBrowser } from './cdp.mjs';
  19. if (!process.env.HL_CHROME && existsSync('/opt/google/chrome/chrome')) process.env.HL_CHROME = '/opt/google/chrome/chrome';
  20. const HERE = dirname(fileURLToPath(import.meta.url));
  21. const APP = resolve(HERE, '..');
  22. const PORT = Number(process.env.TRACKER_GATE_PORT || 8700);
  23. const [CH_FROM, CH_TO] = (process.env.TRACKER_GATE_CHROME || '8702-8709').split('-').map(Number);
  24. const SHOTS = process.env.TRACKER_GATE_SHOTS || '';
  25. const BASE = `http://127.0.0.1:${PORT}`;
  26. const STORE = join(APP, '.scratch', 'mobile-store');
  27. const SESSIONS = join(APP, '.scratch', 'mobile-sessions');
  28. const MEASURE = readFileSync(join(HERE, 'mobile-measure.js'), 'utf8');
  29. rmSync(STORE, { recursive: true, force: true });
  30. rmSync(SESSIONS, { recursive: true, force: true });
  31. mkdirSync(SESSIONS, { recursive: true });
  32. if (SHOTS) mkdirSync(SHOTS, { recursive: true });
  33. let failures = 0, passes = 0;
  34. function check(label, ok, detail = '') {
  35. console.log(`${ok ? 'ok ' : 'FAIL'} ${label}${ok ? '' : ' — ' + detail}`);
  36. if (ok) passes++; else failures++;
  37. }
  38. const sleep = (ms) => new Promise(r => setTimeout(r, ms));
  39. let server = null, browser = null, log = '';
  40. async function stopServer() {
  41. if (server) {
  42. const s = server;
  43. try { s.kill('SIGTERM'); } catch {}
  44. await new Promise(r => { if (s.exitCode !== null || s.signalCode !== null) return r(); s.once('exit', r); setTimeout(r, 3000); });
  45. server = null;
  46. }
  47. }
  48. async function stop() {
  49. if (browser) { try { await browser.close(); } catch {} browser = null; }
  50. await stopServer();
  51. }
  52. async function main() {
  53. const MPACKDB = join(STORE, 'mpackdb');
  54. mkdirSync(MPACKDB, { recursive: true });
  55. const seedOut = execFileSync(join(APP, 'bin/hybriel'), ['tests/seed-show.hl'], { cwd: APP, env: { ...process.env, TRACKER_STORAGE: MPACKDB, TRACKER_SEED_IDENTITY: 'mobile-gate-identity' } }).toString()
  56. + execFileSync(join(APP, 'bin/hybriel'), ['tests/seed-mobile.hl'], { cwd: APP, env: { ...process.env, TRACKER_STORAGE: MPACKDB } }).toString();
  57. check('seed: the fixture shows + a user who follows them (tests/seed-show.hl), a franchise and 100 loose timelines (tests/seed-mobile.hl)', seedOut.includes('gate-test-show') && seedOut.includes('100 loose timelines'), seedOut);
  58. // the signed-in session: a session file named by the sha256 of its id (as hl:web writes them), the user id of the seeded user
  59. const sid = 'a1b2c3d4e5f60718293a4b5c6d7e8f90';
  60. const now = Date.now();
  61. writeFileSync(join(SESSIONS, createHash('sha256').update(sid).digest('hex')), JSON.stringify({ created: now, data: { tag: 't' }, id: sid, seen: now, user: { id: 'gateu0000000000u1' } }));
  62. server = spawn(join(APP, 'bin/hybriel'), ['project.hl'], { cwd: APP, env: { ...process.env, TRACKER_WARM_SYNC_MS: '600000', TRACKER_PORT: String(PORT), TRACKER_SESSIONS: SESSIONS + '/', TRACKER_STORAGE: MPACKDB,
  63. TRACKER_WATCH: '0', TRACKER_URL: BASE, HL_HOST: '127.0.0.1', TRACKER_EDITORS: 'mobile-gate-identity', TRACKER_SYNC: '0', TRACKER_ART: '0', TRACKER_PHOTOS: '0', TRACKER_BACKFILL: '0', TRACKER_REPAIR: '0', TRACKER_KINDS: '0',
  64. TRACKER_CREDITS: '0', TRACKER_COLLECTIONS: '0', TRACKER_FRANCHISE_SEED: '0', TMDB_READ_TOKEN: '' }, stdio: ['ignore', 'pipe', 'pipe'] });
  65. server.stdout.on('data', d => log += d); server.stderr.on('data', d => log += d);
  66. for (let i = 0; ; i++) {
  67. checkServerExit(server, 'tracker', log);
  68. try { if ((await fetch(BASE + '/')).ok) break; } catch {}
  69. if (i > 600) throw new Error('tracker did not come up (150 s; a cold start compiles the app first, hybriel#148)\n' + log);
  70. await sleep(250);
  71. }
  72. browser = await launchBrowser({ debugPortRange: [CH_FROM, CH_TO] });
  73. const page = await browser.newPage();
  74. const ev = (e) => page.evaluate(e);
  75. const hydrated = () => page.waitFor('!!window.__hl && window.__hl.socket && window.__hl.socket.readyState === 1 && document.readyState === "complete"', { timeout: 60000, label: 'hydrated' });
  76. const shot = async (name) => { if (SHOTS) writeFileSync(join(SHOTS, name + '.png'), Buffer.from((await page.send('Page.captureScreenshot', { format: 'png' })).data, 'base64')); };
  77. const go = async (path) => { const t = Date.now(); await page.goto(BASE + path, { timeout: 60000 }); await hydrated(); await sleep(500); return Date.now() - t; };
  78. // a real touch tap (touchStart + touchEnd at the centre of the element), as a finger does
  79. const tap = async (x, y) => { await page.send('Input.dispatchTouchEvent', { type: 'touchStart', touchPoints: [{ x, y }] }); await page.send('Input.dispatchTouchEvent', { type: 'touchEnd', touchPoints: [] }); await sleep(600); };
  80. const tapSel = async (sel, text) => {
  81. const r = await ev(`(() => { const all = [...document.querySelectorAll(${JSON.stringify(sel)})]; const e = ${text ? `all.find(b => b.textContent.trim() === ${JSON.stringify(text)})` : 'all[0]'}; if (!e) return null; e.scrollIntoView({ block: 'center' }); const q = e.getBoundingClientRect(); return { x: q.left + q.width / 2, y: q.top + q.height / 2 }; })()`);
  82. if (!r) return false; await tap(r.x, r.y); return true;
  83. };
  84. await page.send('Network.setCookie', { name: 'trackersid', value: sid, url: BASE });
  85. await page.send('Emulation.setDeviceMetricsOverride', { width: 390, height: 844, deviceScaleFactor: 3, mobile: true });
  86. await page.send('Emulation.setTouchEmulationEnabled', { enabled: true, maxTouchPoints: 5 });
  87. // ==== every page: no sideways scroll, every tap target ≥ 44 px, fields ≥ 16 px ====
  88. const PAGES = [['my-series', '/my/series', 'my-show-row'], ['my-unwatched', '/my/unwatched', 'unwatched-row'], ['my-schedule', '/my/schedule', 'schedule-row'], ['search', '/search/gate', 'search-row'],
  89. ['title', '/series/gate-test-show', 'show-header'], ['movie-widget', '/movies/pager-movie-01', 'a.fw-franchise'], ['franchises', '/franchises', 'a.franchise-row'], ['franchise', '/franchises/mobile-franchise', 'a.timeline-name'],
  90. ['timeline-edit', '/timelines/mobile-timeline-alpha/edit', 'a.edit-new-franchise'], ['login-failed', '/login/failed', 'a#home']];
  91. for (const [name, path, must] of PAGES) {
  92. await go(path);
  93. await ev('window.__W = 390');
  94. const m = await ev(MEASURE);
  95. const there = await ev(`!!document.querySelector(${JSON.stringify(must)})`);
  96. await shot('mobile-' + name + '-390');
  97. check(`390 ${path}: the page shows what it is about (${must})`, there, JSON.stringify({ h1: await ev(`(document.querySelector('h1') || {}).innerText`) }));
  98. check(`390 ${path}: no sideways scroll, every tap target ≥ 44 px, every field ≥ 16 px`, !m.hscroll && m.tapsSmall === 0 && m.inputsSmall === 0, JSON.stringify({ sw: m.docScrollWidth, small: m.tapsSmallList, inputs: m.inputsSmallList }));
  99. }
  100. // the badges stay small to the eye (24 px pill: the 44 px tap area is transparent border, the background stops at the padding box)
  101. await go('/series/gate-test-show');
  102. const badge = await ev(`JSON.stringify(Array.from(document.querySelectorAll('a.extlink')).map(e => [e.clientHeight, getComputedStyle(e).backgroundClip, Math.round(e.getBoundingClientRect().height)]))`).then(JSON.parse);
  103. check('title: the TMDB / IMDb badges look 24 px high (padding box, background clipped to it) with a 44 px tap box', badge.length >= 2 && badge.every(b => b[0] <= 26 && b[1] === 'padding-box' && b[2] >= 44), JSON.stringify(badge));
  104. // ==== a season of 160 episodes starts closed (the real data has a soap with 1,175 in one: a 69,000 px page) ====
  105. await go('/series/mobile-soap');
  106. const soapInfo = async () => ev(`JSON.stringify({ rows: document.querySelectorAll('episode-row').length, toggles: document.querySelectorAll('button.season-toggle').length, open: document.querySelectorAll('season-row.expanded').length, h: document.documentElement.scrollHeight })`).then(JSON.parse);
  107. const so1 = await soapInfo();
  108. await shot('mobile-soap-closed-390');
  109. check('title: a season of 160 episodes starts CLOSED on a phone — its header, no episode rows, a short page', so1.toggles === 1 && so1.rows === 0 && so1.open === 0 && so1.h < 2500, JSON.stringify(so1));
  110. check('title: a real touch tap on that season\'s header opens it: its 160 episodes (and the closed season of a short series still opens as before: Gate Test Show\'s last season starts open)',
  111. await tapSel('button.season-toggle') && await page.waitFor(`document.querySelectorAll('episode-row').length >= 160`, { timeout: 20000 }).then(() => true, () => false)
  112. && await (async () => { await go('/series/gate-test-show'); const g = await soapInfo(); return g.toggles === 2 && g.open === 1 && g.rows >= 1; })(), JSON.stringify(await soapInfo()));
  113. // ==== TP (the creator: "the episodes are too far away from each other, the season is not properly vertically aligned") ====
  114. // the season list is DENSE: two episode rows are at most 2.25rem (36 px) apart (the check keeps its 44 px tap box through a negative margin), the season's check icon
  115. // sits on the middle of the season title line (±2 px) and the episodes' checks are in the same column. At 390 AND at 1280.
  116. const seasonLook = () => ev(`(() => {
  117. const rows = Array.from(document.querySelectorAll('episode-row')).slice(0, 30), tops = rows.map(r => r.querySelector('episode-number').getBoundingClientRect().top);
  118. const pitch = tops.slice(1).map((t, i) => Math.round((t - tops[i]) * 10) / 10);
  119. const sr = document.querySelector('season-row'), rg = document.createRange(); rg.selectNodeContents(sr.querySelector('season-label'));
  120. const t = rg.getBoundingClientRect(), c = sr.querySelector('button.checkicon svg circle').getBoundingClientRect(), e = rows[0].querySelector('button.checkicon svg circle').getBoundingClientRect();
  121. const tb = rows[0].querySelector('button.checkicon').getBoundingClientRect();
  122. return JSON.stringify({ n: rows.length, maxPitch: Math.max(...pitch), minPitch: Math.min(...pitch), dy: Math.round(Math.abs((c.top + c.height / 2) - (t.top + t.height / 2)) * 10) / 10, dx: Math.round(Math.abs((c.left + c.width / 2) - (e.left + e.width / 2)) * 10) / 10, tap: Math.round(tb.height) });
  123. })()`).then(JSON.parse);
  124. for (const [w, mob] of [[390, true], [1280, false]]) {
  125. await page.send('Emulation.setDeviceMetricsOverride', { width: w, height: 900, deviceScaleFactor: mob ? 3 : 1, mobile: mob });
  126. await go('/series/mobile-soap');
  127. await tapSel('button.season-toggle');
  128. await page.waitFor(`document.querySelectorAll('episode-row').length >= 30`, { timeout: 20000 }).catch(() => {});
  129. const sl = await seasonLook();
  130. await ev(`window.scrollTo(0, document.querySelector('season-row').getBoundingClientRect().top + scrollY - 140)`);
  131. await shot('tp-season-' + w);
  132. check(`${w}: a long season is dense — two episode rows are at most 2.25rem (36 px) apart (and not squeezed below 1.5rem), the check keeps its 44 px tap box`, sl.n >= 30 && sl.maxPitch <= 36 && sl.minPitch >= 24 && sl.tap >= 43.5, JSON.stringify(sl));
  133. check(`${w}: the season's check icon is centred on the season title line (within 2 px) and the episode checks are in the same column (within 1 px)`, sl.dy <= 2 && sl.dx <= 1, JSON.stringify(sl));
  134. }
  135. await page.send('Emulation.setDeviceMetricsOverride', { width: 390, height: 844, deviceScaleFactor: 3, mobile: true });
  136. // ==== TP: the theme's pills on the title page and in the lists: class `pill`, small to the eye (≤ 1.6rem), a 44 px tap box when a link ====
  137. const pillsOn = (sel) => ev(`JSON.stringify(Array.from(document.querySelectorAll(${JSON.stringify(sel)})).map(e => [e.classList.contains('pill'), e.clientHeight, Math.round(e.getBoundingClientRect().height), e.tagName === 'A', getComputedStyle(e).backgroundClip]))`).then(JSON.parse);
  138. for (const [w, mob] of [[390, true], [1280, false]]) {
  139. await page.send('Emulation.setDeviceMetricsOverride', { width: w, height: 900, deviceScaleFactor: mob ? 3 : 1, mobile: mob });
  140. await go('/series/gate-test-show');
  141. const ps = await pillsOn('show-title .pill'), pl = await pillsOn('a.extlink'), pg = await pillsOn('a.genre-pill');
  142. await shot('tp-title-' + w);
  143. check(`${w}: the status is a theme pill (class pill) that looks small (≤ 25.6 px)`, ps.length === 1 && ps.every(p => p[0] && p[1] <= 25.6), JSON.stringify(ps));
  144. check(`${w}: the TMDB / IMDb links and the genres are theme pills, small to the eye (≤ 25.6 px, background clipped to the padding box) with a 44 px tap box`,
  145. pl.length >= 2 && pg.length >= 1 && [...pl, ...pg].every(p => p[0] && p[1] <= 25.6 && p[2] >= 43.5 && p[4] === 'padding-box'), JSON.stringify([pl, pg]));
  146. await go('/search/gate');
  147. const pk = await pillsOn('search-row .pill');
  148. await shot('tp-search-' + w);
  149. check(`${w}: the search lists the kind of a title as a theme pill (class pill), small`, pk.length >= 1 && pk.every(p => p[0] && p[1] <= 25.6), JSON.stringify(pk));
  150. await go('/franchises/mobile-franchise');
  151. const pf = await pillsOn('a.timeline-item .pill');
  152. await shot('tp-franchise-' + w);
  153. check(`${w}: a franchise's timeline rows show the kind (Series / Movie) as a theme pill (class pill), small`, pf.length >= 1 && pf.every(p => p[0] && p[1] <= 25.6), JSON.stringify(pf));
  154. }
  155. await page.send('Emulation.setDeviceMetricsOverride', { width: 390, height: 844, deviceScaleFactor: 3, mobile: true });
  156. // ==== /franchises: 40 timelines per page, a pager, a touch tap works ====
  157. const info = async () => ev(`JSON.stringify({ path: location.pathname, links: document.querySelectorAll('a.timeline-link').length, franchises: document.querySelectorAll('a.franchise-row').length, first: (document.querySelector('a.timeline-link timeline-link-name') || {}).textContent || null,
  158. last: (Array.from(document.querySelectorAll('a.timeline-link timeline-link-name')).pop() || {}).textContent || null, pager: !!document.querySelector('pager-box pagination'), cur: ((document.querySelector('pagination li.current') || {}).textContent || '').trim() || null,
  159. count: (document.querySelector('p.list-count') || {}).textContent || null, h: document.documentElement.scrollHeight, title: document.title })`).then(JSON.parse);
  160. const ms1 = await go('/franchises');
  161. const p1 = await info();
  162. check('franchises: the first page lists the franchise AND 40 of the 100 timelines (by name), a pager, "page 1 of 3", loaded in under 2 s (the real data\'s 1,546 took 20 s)',
  163. p1.links === 40 && p1.franchises === 1 && p1.first === 'Mobile Collection 001' && p1.last === 'Mobile Collection 040' && p1.pager && p1.cur === '1' && /100 timelines without a franchise · page 1 of 3/.test(p1.count) && ms1 < 2000, JSON.stringify({ ...p1, ms1 }));
  164. check('franchises: the page is short on a phone (40 rows, not the whole list: under 3,000 px)', p1.h < 3000, JSON.stringify(p1));
  165. check('franchises: a real touch tap on "Next" goes to /franchises/page/2: 40 more timelines, no franchise list again',
  166. await tapSel('pagination button', 'Next') && await page.waitFor(`location.pathname === '/franchises/page/2' && document.querySelectorAll('a.timeline-link').length > 0`, { timeout: 10000 }).then(() => true, () => false) && await (async () => {
  167. await sleep(500); const p2 = await info(); await shot('mobile-franchises-p2-390');
  168. return p2.links === 40 && p2.franchises === 0 && p2.first === 'Mobile Collection 041' && p2.last === 'Mobile Collection 080' && p2.cur === '2' && /page 2 of 3/.test(p2.count) && /page 2/.test(p2.title);
  169. })(), JSON.stringify(await info()));
  170. check('franchises: a real touch tap on page "3" shows the last 20, and no "No franchises yet." on a later page',
  171. await tapSel('pagination button', '3') && await page.waitFor(`location.pathname === '/franchises/page/3'`, { timeout: 10000 }).then(() => true, () => false) && await (async () => {
  172. await sleep(500); const p3 = await info();
  173. return p3.links === 20 && p3.first === 'Mobile Collection 081' && p3.last === 'Mobile Collection 100' && p3.cur === '3' && !(await ev(`document.body.innerText.includes('No franchises yet')`));
  174. })(), JSON.stringify(await info()));
  175. await go('/franchises/page/99');
  176. const p99 = await info();
  177. await go('/franchises/page/abc');
  178. const pabc = await info();
  179. check('franchises: page 99 is the last page, "abc" the first', p99.links === 20 && p99.cur === '3' && pabc.links === 40 && pabc.cur === '1' && pabc.franchises === 1, JSON.stringify({ p99, pabc }));
  180. // a timeline of the list still opens
  181. await go('/franchises');
  182. check('franchises: a real touch tap on a timeline opens it', await tapSel('a.timeline-link') && await page.waitFor(`location.pathname === '/timelines/mobile-collection-001'`, { timeout: 10000 }).then(() => true, () => false), await ev('location.pathname'));
  183. // IW4: signed in on a narrow phone, the brand "tracker" must show whole (not "trac…"), and every header item stays inside the screen and 44 px tall
  184. for (const W of [360, 390]) {
  185. await page.send('Emulation.setDeviceMetricsOverride', { width: W, height: 844, deviceScaleFactor: 3, mobile: true });
  186. await go('/my/series');
  187. await page.waitFor(`!!document.querySelector('application-header ident-selector') && !!document.querySelector('application-header ident-selector').shadowRoot && !!document.querySelector('application-header ident-selector').shadowRoot.querySelector('[part~="status"], [part~="button"]')`, { timeout: 10000, label: 'selector drawn' }).catch(() => {});
  188. await sleep(500);
  189. await shot('header-signedin-' + W);
  190. const hm = await ev(`JSON.stringify((() => { const h = document.querySelector('application-header'); const b = h.querySelector('a.brand');
  191. const items = [...h.children].filter(e => { const r = e.getBoundingClientRect(); return r.width > 0 && getComputedStyle(e).display !== 'none' }).map(e => { const r = e.getBoundingClientRect(); return { tag: e.tagName.toLowerCase() + (e.className ? '.' + e.className : ''), l: Math.round(r.left * 10) / 10, r: Math.round(r.right * 10) / 10, h: Math.round(r.height * 10) / 10 } });
  192. return { brandText: b.textContent, scrollW: b.scrollWidth, clientW: b.clientWidth, items, user: !!h.querySelector('button.user-toggle'), pill: (() => { const e = h.querySelector('ident-selector').shadowRoot.querySelector('[part~="status"]'); return e ? [e.scrollWidth, e.clientWidth] : null })() } })())`).then(JSON.parse);
  193. check(`IW4 ${W}px signed in: the brand shows whole (scrollWidth <= clientWidth), every header item is inside the screen and 44 px tall`,
  194. hm.user && hm.scrollW <= hm.clientW && hm.items.every(i => i.l >= 0 && i.r <= W && i.h >= 44), JSON.stringify(hm));
  195. }
  196. // IW4 proof shots (only with TRACKER_GATE_SHOTS): the header at 360, 390 and 1280, signed in and signed out, plus the size of every header control as JSON
  197. if (SHOTS) {
  198. const ctl = {};
  199. for (const [state, signedIn] of [['signedin', true], ['signedout', false]]) {
  200. if (signedIn) await page.send('Network.setCookie', { name: 'trackersid', value: sid, url: BASE });
  201. else await page.send('Network.deleteCookies', { name: 'trackersid', url: BASE });
  202. for (const W of [360, 390, 1280]) {
  203. await page.send('Emulation.setDeviceMetricsOverride', { width: W, height: 844, deviceScaleFactor: W > 800 ? 1 : 3, mobile: W < 800 });
  204. await go('/my/series');
  205. await sleep(800);
  206. await shot(`header-${state}-${W}`);
  207. ctl[`${state}-${W}`] = await ev(`JSON.stringify([...document.querySelector('application-header').querySelectorAll(':scope > *, :scope > user-menu > button, :scope > main-menu > a')].filter(e => e.getBoundingClientRect().width > 0).map(e => { const r = e.getBoundingClientRect(); const c = getComputedStyle(e); return [e.tagName.toLowerCase() + (e.className && typeof e.className === 'string' ? '.' + e.className : ''), Math.round(r.left * 10) / 10, Math.round(r.width * 10) / 10, Math.round(r.height * 10) / 10, c.fontSize, c.marginLeft + '/' + c.marginRight] }))`).then(JSON.parse);
  208. }
  209. }
  210. writeFileSync(join(SHOTS, 'header-controls.json'), JSON.stringify(ctl, null, 1));
  211. }
  212. const problems = page.problems ? page.problems() : [];
  213. check('browser: no console errors / failed requests', problems.length === 0, JSON.stringify(problems).slice(0, 2000));
  214. }
  215. try { await main(); } catch (e) {
  216. check('gate ran without throwing', false, (e && e.stack) || String(e));
  217. console.log('server log (tail):\n' + log.slice(-3000));
  218. }
  219. await stop();
  220. console.log(`\n${passes} passed, ${failures} failed`);
  221. process.exit(failures ? 1 : 0);

Branches

Latest commits

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker