154 lines
13 KiB
Plaintext
154 lines
13 KiB
Plaintext
npm notice run @mosaic/[email protected] test
|
||
npm notice run node --test tests/*.test.mjs
|
||
✔ C2-06 reply schema: free bodies, exact objects and safe refusal reasons (31.081491ms)
|
||
✔ C2-06 citation setting and all four exact fixed texts (27.31137ms)
|
||
✔ C2-06 default citation cap passes 20 and refuses 21, even with optional citations (144.940253ms)
|
||
✔ C2-06 real Git citation scope, reachability, lines and normalized quotes (71.988432ms)
|
||
✔ C2-06 playground cites pass but cannot state canon (42.141068ms)
|
||
✔ C2-06 independent universes refuse; a hybrid and only its sources pass (69.134397ms)
|
||
✔ C2-06 web cites require allowed definition, this session fetch and kept quote (17.090852ms)
|
||
✔ C2-06 file origin is the path commit and trailer, while last follows served changes (51.160201ms)
|
||
✔ C2-06 origin uses literal paths even when a filename contains a glob (35.841257ms)
|
||
✔ C2-06 cited-commit guard reads exactly the C2-05a indexed file set with supporting scope (79.711572ms)
|
||
✔ C2-06 reply limits fall back independently without coercion or inherited keys (0.78046ms)
|
||
✔ the same commit, repo path and mapping return the same index, and only mapped files are in it (53.330474ms)
|
||
✔ a different repo path, mapping or commit gets its own index (73.465944ms)
|
||
✔ the cache holds at most eight indexes and evicts the least recently used (93.355098ms)
|
||
✔ a failed read is not kept in the cache (19.15839ms)
|
||
✔ a missing or unchecked mapping is refused before any read (18.591276ms)
|
||
✔ a 3,000-file rebuild completes and its time is reported (3339.384537ms)
|
||
ℹ 3,000-file index rebuild: 3093 ms
|
||
✔ resolver step 1: a path from the repo root, with or without .md (2.003164ms)
|
||
✔ resolver step 2: the same path with vaultPrefix/ stripped (0.323373ms)
|
||
✔ resolver step 3: a path relative to the linking file, never above the repo root (0.278534ms)
|
||
✔ resolver step 4: a base name that matches exactly one indexed file (0.322938ms)
|
||
✔ a link into another of her repos resolves to nothing (0.213594ms)
|
||
✔ wikilink forms, embeds, and links skipped inside code (1.24016ms)
|
||
✔ only a body embed whose target has an extension other than .md, in any case, is an attachment (0.455416ms)
|
||
✔ the fixture mapping checks and comes back frozen (2.830981ms)
|
||
✔ C2-01c: a prefix inside or holding another entry's book refuses library-playground-other-universe (1.34922ms)
|
||
✔ C2-01c: a prefix equal to a book folder, or holding its own, refuses library-mapping-invalid (0.74756ms)
|
||
✔ C2-01c: universe-level prefixes lie outside every book, in a plain universe and in a hybrid with no books (1.203696ms)
|
||
✔ C2-01c: a draft takes kind, name and playground only, and comes back frozen with books [] (1.782129ms)
|
||
✔ C2-01d: supporting prefixes at book level, universe level, in a hybrid and in a draft, [] when absent (0.643444ms)
|
||
✔ C2-01d: each supporting prefix rule refuses with its code (2.880363ms)
|
||
✔ C2-01d: between the lists, a supporting prefix may equal its own playground, and a playground may hold its own supporting (0.978814ms)
|
||
✔ C2-01d: editor is optional, kept when given, and refuses anything but a plain name and email (5.417269ms)
|
||
✔ C2-01d: an accepted editor round-trips through a real git commit unchanged (22.81842ms)
|
||
✔ no playground prefix holds another, and no book folder holds another (1.309845ms)
|
||
✔ shape refusals: kind, remote, branch, unknown keys, types, manuscript, folder names (1.68793ms)
|
||
✔ C2-03a sage-2021: user is optional, kept when given, and must be a plain account name (0.986251ms)
|
||
✔ a hybrid universe is a shape the query code can take (1.4), with sources that must exist (1.600445ms)
|
||
✔ a caller-supplied fail receives the code, as business file loading will pass it (C2-04) (0.396233ms)
|
||
✔ scope comes from the path alone (design 1.2) (2.453311ms)
|
||
✔ C2-04 mirror: exact default path, bare without checkout or remote, and idempotent initialization (82.599485ms)
|
||
✔ C2-04 mirror: simultaneous creators publish one intact mirror and leave no staging paths (49.399699ms)
|
||
✔ C2-04 mirror: skipped publication accepts both coreutils statuses without removing the winner (174.577156ms)
|
||
✔ C2-04 mirror: preserve occupied directories and reject symlink ancestors and code overlaps (20.556264ms)
|
||
✔ C2-04 mirror: existing metadata accepts only bare Git plus state and the precreated lock (34.414614ms)
|
||
✔ C2-04 state: missing state is empty only while the served ref is absent (54.101069ms)
|
||
✔ C2-04 state: valid problems and sync metadata return no content and change no state bytes (57.832223ms)
|
||
✔ C2-04 state: strict keys, types, times, branch, commit and fixed R messages fail closed (158.515834ms)
|
||
✔ C2-04 state: symlink, hardlink, non-private state and missing lock refuse without replacement (57.609887ms)
|
||
✔ C2-04 file: served commit, not HEAD or a caller commit, owns the exact returned text (113.829438ms)
|
||
✔ C2-04 file: R1, R2 and R7 exclusions and never-synced mirrors cannot return file bodies (124.255784ms)
|
||
✔ C2-04 lock: a first-sync and fast-forward reader wait for a consistent pair across processes (314.221744ms)
|
||
✔ C2-04 lock: same-process waits, timeout code, callback expiry and throw release (5038.833094ms)
|
||
✔ C2-04 lock: owner death releases the kernel lock without replacing its file (54.543028ms)
|
||
✔ C2-04 lock: a missing flock binary becomes a handled refusal (49.73045ms)
|
||
✔ C2-04 lock: an unawaited scoped read drains before the lock is released (20.869629ms)
|
||
✔ the query reply cap equals the harness reply cap (1.544541ms)
|
||
✔ find is bound to its universe and refuses a call without one (70.281377ms)
|
||
✔ every result carries its scope, and playground appears only when asked for (39.878964ms)
|
||
✔ unmapped files never appear in any reply (35.123505ms)
|
||
✔ a hybrid sees its sources canon, minus exclusions, and no playground (39.679182ms)
|
||
✔ a hybrid gets a source file it can see, and not an excluded or foreign one (54.602693ms)
|
||
✔ get lists visible links both ways and drops a target another universe cannot see (50.638492ms)
|
||
✔ a long list pages by position, never cuts an item, and returns 50 per page (193.227492ms)
|
||
✔ a page stays under the reply cap when items are large (91.885035ms)
|
||
✔ a search line too long to fit alone comes back marked, with no excerpt, and the other hits still return (33.20163ms)
|
||
✔ a find item that cannot fit alone is refused, not cut (46.447292ms)
|
||
✔ get pages its lines, and the next line picks up where the page stopped (39.12526ms)
|
||
✔ get refuses a file whose front matter alone is over the cap, and a line alone is over the cap (36.804238ms)
|
||
✔ get pages the links of a hub note, every page carries the front matter, and the pages add up (1107.995321ms)
|
||
✔ get rejects a bad links_from (34.377162ms)
|
||
✔ search returns scoped line hits, case-insensitively, and refuses empty text (30.729667ms)
|
||
✔ a manuscript call returns one chapter, at most 400 lines, and names its next line (47.791378ms)
|
||
✔ a manuscript call without a chapter returns the first chapter in path order and names the next (26.366902ms)
|
||
✔ a chapter name that matches two visible files is refused (25.448584ms)
|
||
✔ a hybrid reads a source chapter through its declared sources only (39.969561ms)
|
||
✔ universe info reports a hybrid sources, constraints and notes, and refuses an unknown universe (15.657923ms)
|
||
✔ an exclusion hides what it names from a hybrid and from nothing else (39.404555ms)
|
||
✔ PRD 1.14: a lookup that names a book leaves book-null files out (34.647951ms)
|
||
✔ PRD 1.14: library_manuscript never reads a book-null file (32.637362ms)
|
||
✔ PRD 1.14: a draft universe has no canon, so its lookups return files only with scope playground (32.338176ms)
|
||
✔ PRD 1.14: library_universe on a draft returns its kind, name and prefixes (15.442774ms)
|
||
✔ a hybrid gets a source playground file as null, while the source gets it with scope playground (42.674554ms)
|
||
✔ the fixture reads clean: every resolver step, appears_in and relationships wikilinks indexed (63.033383ms)
|
||
✔ R1: executables, symlinks, gitlinks, blobs over 1 MiB and non-UTF-8 text are not indexed (95.339567ms)
|
||
✔ R2: unmapped paths are reported and not indexed (31.564751ms)
|
||
✔ R3: front matter not fully parsed stays raw, with the line where parsing stopped (36.896696ms)
|
||
✔ front matter forms the reader accepts and refuses (1.596508ms)
|
||
✔ R4: a link to no file, to more than one, or into another repo is reported and not followed (35.504393ms)
|
||
✔ a block list link carries its item line, a scalar or flow link its key line, and problems follow (37.229678ms)
|
||
✔ an unresolved attachment embed gives no problem; a link or front matter value to one is R4; a note embed resolves (33.783255ms)
|
||
✔ an indexed Dr.Quinn.md resolves as a body link, a block list link and an embed (33.230236ms)
|
||
✔ R5: a canon file that refers into the playground is reported, and the link still goes by path (29.709099ms)
|
||
✔ R6: a canon file that refers into another universe is reported; a hybrid may refer into its sources (30.970646ms)
|
||
✔ R7: two paths that differ only in case are both left out (41.126208ms)
|
||
✔ the reader reads the commit, never the working tree, and refuses a bad commit id (41.98282ms)
|
||
✔ a bare mirror reads the same as the clone (53.445984ms)
|
||
✔ renderItems snapshot: fact (1.786386ms)
|
||
✔ renderItems snapshot: finding (0.299155ms)
|
||
✔ renderItems snapshot: correction (0.259329ms)
|
||
✔ renderItems snapshot: question (0.218182ms)
|
||
✔ renderItems snapshot: idea (0.223821ms)
|
||
✔ renderItems numbers several items and takes a parsed body as well as a string (1.090019ms)
|
||
✔ without options a path cite has no badge and is never marked changed (0.280013ms)
|
||
✔ renderItems snapshot: notice no-cited-answer (0.237711ms)
|
||
✔ renderItems snapshot: notice no-answer (0.198705ms)
|
||
✔ renderItems snapshot: notice turn-failed (0.337126ms)
|
||
✔ a body without the reply shape shows a fixed line and none of its text (0.613863ms)
|
||
✔ C2-01c: each level gives its universe, and its book or null (4.092943ms)
|
||
✔ C2-01c: prefixes come first: in a book that holds a prefix, a file outside it is canon and one under it playground (0.607188ms)
|
||
✔ C2-01c: a canon file linking into a draft gives R6, and into its own universe-level prefix gives R5 (65.023589ms)
|
||
✔ C2-01d: each supporting level gives its universe, and its book or null (0.8244ms)
|
||
✔ C2-01d: supporting comes before playground; a folder in both lists is supporting, one in the playground only stays playground (0.633065ms)
|
||
✔ C2-01d: only .md files are supporting; a .canvas or .base under a supporting prefix is unmapped (0.517375ms)
|
||
✔ C2-01d: a path passes at book level, universe level, in a draft and in a folder in both lists (2.312377ms)
|
||
✔ C2-01d: a path of exactly 1024 bytes passes, and 1025 bytes made of multi-byte characters refuses (0.98988ms)
|
||
✔ C2-01d: a path outside the universe's supporting folders refuses (0.763326ms)
|
||
✔ C2-01d: malformed paths refuse by class, in order (0.710036ms)
|
||
✔ C2-01d: a symlink or gitlink on the way, or at the path itself, refuses (0.383033ms)
|
||
✔ C2-01d: a name that differs from a tree name only in case or Unicode form refuses, at the file or any folder (0.99427ms)
|
||
✔ the survey prints folder names, counts, key sets and link-form counts, and never text (65.469359ms)
|
||
✔ folder names print DEL, C1 and bidi controls, U+061C among them, as escapes (37.571162ms)
|
||
✔ an embed of an attachment counts as an embed and as an attachment; a plain link to one does not (24.053267ms)
|
||
✔ with --mapping the survey adds scope, resolver step and problem counts (51.551822ms)
|
||
✔ C2-01d: with --mapping the survey counts supporting files (49.232972ms)
|
||
✔ survey exit codes: usage 4, bad mapping 3, unreadable repo 2 (19.679523ms)
|
||
✔ scripts/mosaic library survey reaches the survey (97.237921ms)
|
||
✔ C2-03a argv: the fixed sequence, one https allow, no other protocol key (2.539459ms)
|
||
✔ C2-03a argv: only an https URL with a plain host, no userinfo, and a plain user (1.147619ms)
|
||
✔ C2-03a helper: answers only the exact prompts for the configured host and user (dewey-0765) (43.662638ms)
|
||
✔ C2-03a first sync: served is the fetched tip, HEAD is served, the survey reads it, and the token stays in the slot (199.624214ms)
|
||
✔ C2-03a fast-forward: served moves, problems are rebuilt, and a repeat changes only lastFetch (272.12795ms)
|
||
✔ C2-03a Filbert N2: a read that took served before a sync still finds its objects after served moves (255.892244ms)
|
||
✔ C2-03a overlap: a reader during a sync sees the old pair or the new one, never a mix (220.077465ms)
|
||
✔ C2-03a diverged: a non-fast-forward keeps serving and holds until a human accepts the tip (511.485441ms)
|
||
✔ C2-03a accept starts the record over, so a changed branch gets a fresh state (204.895458ms)
|
||
✔ C2-03a fetch failure: a wrong token keeps serving and records the error, lastFetch unchanged (210.171392ms)
|
||
✔ C2-03a a failed first fetch records the error with nothing served (57.52009ms)
|
||
✔ C2-03a a 302 to another host fails the fetch and the other host sees nothing (68.211135ms)
|
||
✔ C2-03a the slot: missing or unsafe refuses before git, and sync never opens it (65.636096ms)
|
||
✔ C2-03a sage-2021: an entry with no user refuses library-remote-invalid and runs no git (34.004871ms)
|
||
✔ C2-03a one sync per mirror: an overlapping call refuses library-sync-busy (129.134012ms)
|
||
ℹ tests 142
|
||
ℹ suites 0
|
||
ℹ pass 142
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 6490.060843
|