components
All repositories: gitoria
1.3 KB
#!/usr/bin/env python3# tests/same-output-compare.py (components mission 002): compare two tests/same-output.mjs runs. Masks only what changes per run / per code hash: ?v= hashes, source positions# (file.hl:L:C), the seed time, upload names (time-random), the hl-shell cache name. python3 compare.py A B [-v]import os, re, sys, diffliba, b = sys.argv[1], sys.argv[2]; v = '-v' in sys.argvdef mask(t):t = re.sub(r'\?v=[0-9a-f]+', '?v=H', t)t = re.sub(r'(\w[\w./-]*\.hl):\d+:\d+', r'\1:L:C', t)t = re.sub(r'@\d+:\d+', '@L:C', t)t = re.sub(r'hl-shell-[0-9a-f]+', 'hl-shell-H', t)t = re.sub(r'/md-editor/files/\d+-[0-9a-f]+', '/md-editor/files/T-R', t)t = re.sub(r'\b1[78]\d{11}\b', 'TIME', t)t = re.sub(r'("version"|"build"|"seed"|"now")\s*:\s*"?[\w.-]+"?', r'\1:X', t)return tfa, fb = sorted(os.listdir(a)), sorted(os.listdir(b))same = diff = 0for f in sorted(set(fa) | set(fb)):if f not in fa or f not in fb: print('ONLY IN', 'A' if f in fa else 'B', f); diff += 1; continuex, y = mask(open(os.path.join(a, f), errors='replace').read()), mask(open(os.path.join(b, f), errors='replace').read())if x == y: same += 1; continuediff += 1; print('DIFF', f)if v:for l in list(difflib.unified_diff(re.split(r'(?<=[;,}>\n])', x), re.split(r'(?<=[;,}>\n])', y), lineterm='', n=0))[2:40]: print(' ', l[:300])print(f'same {same}, different {diff}')
Branches
Latest commits
- 6b0936a0comments: 'edited' foldable also drops the theme's border, margin and radius (display: contents alone left them computed)mre
- 8d79ff79comments bubble hugs its content: a readonly md-editor surface gets no inline min-height (it beat the stylesheet's min-height 0); 'edited' is a quiet label beside the time, versions unframed; gate checksmre
- ef253fecreports/F4-icons.mdmre
- ba96735ficons: README, md-editor README note, gate checks for the single focus ring and toolbar iconsmre
- 96c97691icons: shared Icon component; md-editor toolbar and files-upload remove use it; no inner focus ring in md-editormre
- 0d6863d6reports/F3-mdvalue.mdmre
- d58ed98bMdEditor: an older text of the editor handed back is not an outside change (kept surface, written back); gate for itmre
- c2d0de59MdEditor: show a value that changes from outside (data-value observer), demo button and gatemre
- c4272fa3re-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
- 2e22618etests: cdp-blank/md-bg/md-keys-run Chrome range and base port from env (MDK_CHROME, MDK_PORT), defaults unchangedmre
- a5d2384bre-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
- 52902d23docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 022b943fdeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- d17f8543mission 012: re-vendor Hybriel master f9614007 (plugins), fixes comments push redraw; gate 480/0mre
- 5f95de05mission 012: re-vendor Hybriel ce6f2e0a (plugins), report: gate 478/2 on comments push redrawmre
- 3794c591mission 011: report, LOG, STATUS, md-keys-run widths, cdp-blank helpermre
- 77a93c16mission 011: gate hook for md-keys (480/0), flatten() runs one at a time (removeChild race), surface also built on first focus / pointer-down (background tab), md-bg test, README keysmre
- 3c906718mission 011: md-editor key tests (real keys) and fixes: nested p/ul flatten, bare br, link change, Ctrl+E, code block exit (WIP)mre
- 1442e583mission 010: report, LOG, STATUSmre
- 6f27ad31md-editor: phone toolbar row contained (inline-size) so it never widens a grid parentmre