Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit f730d8153858f7be55467f14d4fe4e037bf930ce
parent 7ed30a0ed89bfa835ed1e172fe91ee122243485a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 10 Oct 2026 12:51:38 -0400

plans: release 23 F5 — test hygiene and the timing record, as shipped (e2e-speed.md)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/e2e-speed.md | 37+++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -134,6 +134,7 @@ - **Transcribe uses a video's saved source video instead of downloading its audio.** A video with no audio on disk but its whole recording in the saved-video store (a persisted video, a whole-source fetch, or one attached from a local archive) was downloaded again for its audio when **Transcribe** was clicked on its page or `pnpm ops transcribe-one` was run. Its saved video is now transcribed as it is, and the job's log says so ("transcribing from the saved container … — nothing downloaded"). When the saved video's drive is not mounted or not answering, the job stops with the same "media is not reachable" sentence as a clip fetch, rather than downloading; a saved video with no sound is downloaded around as before. Needs a rebuild and restart of the editor. - **An agent can answer the operator's notes in umtool, and its replies say they are an agent's.** The MCP's `notes` tool now writes a reply (`action: "reply"`, with `note_id`, `text` and `resolve`) in umtool instead of answering with the `umtool notes reply` command to run; umtool stamps it "agent" and badges it on the page. umtool takes an agent's write only with the editor's `WORKER_TOKEN` as a bearer token — from its own environment, else the editor's `editor/.env` — and refuses any other token (401); a write from umtool's own page is the operator's as before. Register the MCP with `UMTOOL_URL` and `WORKER_TOKEN`. Needs a rebuild and restart of umtool, and a restart of the MCP server. - **Captions the index re-read under the newer caption-track rule now reach the stats and charts.** When the index re-reads a video's captions without any of its files changing — as it did once for videos whose served `en` track had parsed to nothing — the stats behind the homepage, the hub and the sites' charts kept the old figures (no transcript, the old cue count) until something else about the video changed. The stats now follow the captions the index holds, and the first stats build after updating corrects the videos already affected. Needs a rebuild and restart of the editor, then a stats build (or a site, hub or homepage build). +- **Every e2e run records its own per-spec timings.** The editor, umtool, homepage and export suites now record each run in the branch's timing history the moment it ends (`scripts/e2e-timings-reporter.mjs`), so re-running a few specs no longer loses the record of the full run before it; `node scripts/e2e-timings.mjs` still prints a run against the last one. umtool's suite skips, with the reason, the face-detector tests on a machine without the detector and the chunk-twin check when the data has no twins, instead of failing. ## [0.11.0] - 2026-09-30 - **Transcripts that arrived after a video was first seen are counted.** The stats behind the homepage, the hub and every site's charts were cached per video and refreshed only when the video's metadata changed, so a transcript that came later — a Whisper run days after the download, or a video downloaded after the last index build — never reached them, and a video with YouTube captions alone had no transcription date. Counts and charts were low; the homepage could show a site with 0 transcripts, 0 channels and 0 hours while it served its videos. A stat is now also redone whenever the index re-reads the video, every transcript has a date, and a captioned video is dated by when its captions arrived rather than by a later Normalize run, so its place on "Transcribed over time" can move. **After updating, rebuild and restart the editor before anything else:** until then, **Build stats dataset** runs the old code and would undo the new stats, while a site, hub or homepage build already runs the new code — and the first stats build of any kind re-reads every video once (about 10–30 minutes on a large archive; it can be stopped and picks up where it stopped). Then build the index, the stats, the homepage, the hub, and the sites. diff --git a/plans/e2e-speed.md b/plans/e2e-speed.md @@ -198,3 +198,40 @@ Not done here, by the brief: the full suites (the orchestrator runs them, start `timings.json` per suite) — S2 keeps one file per run directory, so a re-run of a few specs replaces a full run's record. Per-spec start-mode totals came from the list reporter instead: 19.5 min of test time over 129 specs; the slowest social-channel 86 s, new-channel-onboarding 55 s, channels 48 s, audio-check-scenarios 44 s. + +### Release 23 F5, as shipped — test hygiene and the timing record (2026-10-10, `r23/fixes`) + +**Every run records itself.** `scripts/e2e-timings-reporter.mjs` is a Playwright reporter listed after `json` in all +seven configs (editor, umtool, homepage, and export's default, hub, report and 2origin): at `onExit`, once every +reporter's `onEnd` has written its file, it records the run's `timings.json` in the branch's history and prints the +table (top 10) — `e2e-timings.mjs`'s `recordReport`, shared with the CLI, which now finds such a run "already +recorded". A full run is in the history before any re-run can replace its file (Playwright also empties +`test-results*/` when the next run starts). A run with no tests records nothing; a report it cannot read is one line +on stderr, never a failed run. **A reporter, not a `globalTeardown`** (as the plan named it): Playwright 1.59 runs +every `globalTeardown` before any reporter's `onEnd` (`runner/tasks.js`), so a teardown never sees its own run's json. + +**umtool's environment reds, made skips or fixed:** +- `triage.spec` — `sort` lives in the `song ▸` nav group (folded 2026-08-25): the page check opens the group and finds + `sort` there as the current `menuitem`, then Escape. 9 tests that failed on the missing top-level link now pass. +- `faces.spec` — `facedet` joins `songCapabilities` (`e2e/fixtures/song-capabilities.mjs`: the venv at + `dirname(SONG_DIR)/facedet` and `umtool/models`, the rule `make-fixture.mjs` records from what it linked); + `NO_FACEDET` skips the five tests that need a detector that answers (`:169`, `:212`, `:319`, `:395`, `:447` — the + plan named four; `:447` calls the detect route too) instead of failing on its 503. +- `find.spec:170` — the chunk-twin fold asserts its arithmetic only when the data has twins for the query + (`collapsed > 0`), else skips naming the query. + +**Editor `import-video.spec:78`** waits on the first import's job (`.jobs/*.meta.json` `status: "done"`) before the +second click, and under `E2E_MODE=dev` takes 180 s (90 s otherwise) with a 90 s wait for the job. + +| Commit | What | +|---|---| +| `8458da71` | `e2e:` F5 — the reporter in seven configs, `recordReport`, the umtool skips and nav, import-video's job wait | + +**Gates.** tsc clean. `node --test scripts/e2e-timings.test.mjs` 11/11 (+3: `recordReport` records once and skips an +empty run; the reporter records a full run and a one-spec re-run, both kept; a missing report never fails the run); +`test:scripts` 770 pass, 2 skipped. umtool, one run of `triage.spec.ts faces.spec.ts find.spec.ts`: 29 passed, 6 +skipped (faces 5 `NO_FACEDET` — no venv on this machine; find `:170` — no seam twins for "the"), 24.1 s, recorded by +the reporter (`.git/e2e-timings/umtool/r23_fixes.json`). The first run of the three, before the `menuitem` fix: 20 +passed, 9 failed (triage's page check looked for a `link`), 6 skipped — recorded too, which is the point. +`E2E_MODE=dev pnpm e2e import-video.spec.ts` 3 passed, 33.9 s; the same in start mode (the editor's e2e build rebuilt +through the heavy slot, 42 s) 3 passed, 12.2 s.