tickets
All repositories: gitoria
1.5 KB
#!/usr/bin/env python3# tests/realdata-compare.py (mission 010): compare two tests/realdata-baseline.mjs outputs (the reads; writes:# realdata-compare-writes.py). Masks only what is not the app's output:# "at":<ms> the session seed's request time (differs between two runs of the SAME code)# "site":"<file:l:c>" source coordinates of a View node (move when lines above it move)# ?v=<hash> hl:web's content hash of the runtime / stylesheet / component modules# Child@<line>:<col> a child component's mount key carries its source position too# python3 tests/realdata-compare.py <dirA> <dirB> → per-file verdict; exit 1 on a real differenceimport os, re, sysa, b = sys.argv[1], sys.argv[2]masks = [(re.compile(r'\\"at\\":\d+'), r'\"at\":T'), (re.compile(r'\\"site\\":\\"[^"\\]*\\"'), r'\"site\":S'), (re.compile(r'\?v=[0-9a-f]+'), '?v=H'), (re.compile(r'([A-Z]\w*)@\d+:\d+'), r'\1@L:C')]def norm(t):for r, s in masks: t = r.sub(s, t)return tfa, fb = sorted(f for f in os.listdir(a) if '-w-' not in f), sorted(f for f in os.listdir(b) if '-w-' not in f) # writes: realdata-compare-writes.pyif fa != fb: print('FILE LISTS DIFFER', set(fa) ^ set(fb)); sys.exit(1)raw = masked = 0; bad = []for f in fa:x, y = open(os.path.join(a, f)).read(), open(os.path.join(b, f)).read()if x == y: continueraw += 1if norm(x) != norm(y): bad.append(f)print(f'{len(fa)} files: {len(fa) - raw} byte-identical, {raw - len(bad)} identical after masking, {len(bad)} DIFFERENT')for f in bad[:30]: print(' DIFF', f)sys.exit(1 if bad else 0)
Branches
Latest commits
- 41da3525Tickets conductor: flake cause, T36 deploy stepmre
- 64c477e6Tickets conductor: deploy waits for Arachnemre
- 467d7286Tickets conductor: T36 done, deploy questionmre
- 8542fc8aTickets conductor: T36 proof reviewedmre
- 2a5b8b91Tickets conductor: T36 cap stop, resumed for proofmre
- 6a82097fTickets conductor: Arachne W228 on day35 flakemre
- 0ee5a6f2Tickets conductor: T36 resumedmre
- 9149c165Tickets conductor: T36 diagnosismre
- 91713313Tickets conductor: T36 report 1mre
- 756315d2Tickets conductor: T36 startedmre
- 0814ce6bTickets conductor: brief 025 tickets#36 style formmre
- 1b6916c4Tickets conductor: Atlas handover tickets#36mre
- aab95226Tickets conductor: worldapi-conductor paths, deploy blocker = read-only diskmre
- 6372b06dTickets conductor: worker port slotmre
- 836af31cTickets conductor: token pathsmre
- b03f11b6Tickets conductor: CONDUCTOR.md (project part), short STATUS.md, old STATUS to archive/2026-10-31mre
- a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
- cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
- 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
- b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre