gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit025d5880025d5880WIP re-vendor Hybriel set-day27b (a9712e61, master f5ff97bf): plugins whole, startup fault exits 1; NOT deployable: files-upload emit refused (see .scratch/rv27-upload)mre025d5880/tests/same-output-compare.py

1.3 KB

  1. #!/usr/bin/env python3
  2. # 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
  3. # (file.hl:L:C), the seed time, upload names (time-random), the hl-shell cache name. python3 compare.py A B [-v]
  4. import os, re, sys, difflib
  5. a, b = sys.argv[1], sys.argv[2]; v = '-v' in sys.argv
  6. def mask(t):
  7. t = re.sub(r'\?v=[0-9a-f]+', '?v=H', t)
  8. t = re.sub(r'(\w[\w./-]*\.hl):\d+:\d+', r'\1:L:C', t)
  9. t = re.sub(r'@\d+:\d+', '@L:C', t)
  10. t = re.sub(r'hl-shell-[0-9a-f]+', 'hl-shell-H', t)
  11. t = re.sub(r'/md-editor/files/\d+-[0-9a-f]+', '/md-editor/files/T-R', t)
  12. t = re.sub(r'\b1[78]\d{11}\b', 'TIME', t)
  13. t = re.sub(r'("version"|"build"|"seed"|"now")\s*:\s*"?[\w.-]+"?', r'\1:X', t)
  14. return t
  15. fa, fb = sorted(os.listdir(a)), sorted(os.listdir(b))
  16. same = diff = 0
  17. for f in sorted(set(fa) | set(fb)):
  18. if f not in fa or f not in fb: print('ONLY IN', 'A' if f in fa else 'B', f); diff += 1; continue
  19. x, y = mask(open(os.path.join(a, f), errors='replace').read()), mask(open(os.path.join(b, f), errors='replace').read())
  20. if x == y: same += 1; continue
  21. diff += 1; print('DIFF', f)
  22. if v:
  23. 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])
  24. print(f'same {same}, different {diff}')

Branches

Latest commits

  • 025d5880WIP re-vendor Hybriel set-day27b (a9712e61, master f5ff97bf): plugins whole, startup fault exits 1; NOT deployable: files-upload emit refused (see .scratch/rv27-upload)mre
  • 42183a71Merge sb3-standby: layouts deploys through its standbymre
  • 408de1f2layouts: no jobs switch needed in the standbymre
  • 0b85f57elayouts: a standby container (port 45019, profile standby); deploy hands over through standby-swap.sh without a gapmre
  • 31e40b8bMerge dm3-media: range handling in the layouts media routemre
  • 856dcacbLayouts media route: read suffix ranges and ignore range lists and garbage, like the components route (the layouts copy still answered 416 for the last bytes)mre
  • ad5056eaMerge dm3-sync: components re-sync to c2834ddmre
  • 740e2abeRe-sync the components copy to c2834dd: media player fixes (state after a queue pick, cover-less audio, accessibility labels)mre
  • 7fe103bbMerge mp-player: the media player showcase pagemre
  • 7db43c4eMedia route: serve the showcase's media from committed files (storage/ is not in git)mre
  • f77b7d12Media player: re-sync components from 1c41293 (replay / forward 10 icons, play button surface on audio and video)mre
  • 40a9e69cMP: report, LOG linemre
  • 5b5dbf0fMedia player: the component from components.hybriel dd003e5 (sync-components), the showcase page /components/media-player with a queue, its media files served with ranges (lib/media.hl), theme rules (the seek bar, the queue's current item, the radii), the page in the overview listsmre
  • 9197159fTake components e54f83a: table lines and one-row desktop toolbar in the theme, Table button gates, a table in the md-editor demomre
  • e6322a44UX: report and LOG linemre
  • 58c2da6fUX: nav marker without bars; chat composer is one box (files-upload pick mode, showcase); comments state footer + closer reactions row; modal footer rule only for its own footer; gates for all of itmre
  • 956f107async components.hybriel 4922f9c: 44 px targets in month-view, date-picker, range-picker, pagination, modal, comments; names follow <html lang> (English default), UTC weekday fix; gate: 390 px target checks, 'edited' hit-area padding; comments showcase 'You are' is a labelled group (SY)mre
  • 49940371sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 6f7bd392gate: the phone toolbar is two even rows (E2)mre
  • 3049c082sync components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre