Archilyzer · Source

archilyzer

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

commit c332810414c2f6a58f68a13f2036b69ec868357b
parent 5760310ba635830dc43a968822310d59b4a0ae29
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 11 Nov 2026 22:08:51 -0500

umtool e2e: the trail shows the remembered weight too, render mode holds the Speakers lane, the rail's memoised count is asked again

- instruments.spec: four points at the end, not three -- e8a45f98 draws every
  weight said so far, the remembered ≈390 among them (hollow, .pt.rem).
- takes.spec: RENDER_MODE_LANES gained backfill (5fd3a574) and the stub's
  backfill lane is free, so the take holds and releases it after transcription.
- inbox.spec: the rail's count is memoised 10 s and asked once per page load;
  a rail behind the page is reloaded until the memo has lapsed.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mumtool/e2e/inbox.spec.ts | 10+++++++++-
Mumtool/e2e/instruments.spec.ts | 5++++-
Mumtool/e2e/takes.spec.ts | 5+++--
3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/umtool/e2e/inbox.spec.ts b/umtool/e2e/inbox.spec.ts @@ -46,7 +46,15 @@ test("the big count is the cards in the five call groups; the groups come in the // cards too; on the fixture with nothing probed there are none to count on. const machine = await page.locator("[data-card^='machine-']").count(); await expect(page.locator("[data-inbox-count]")).toHaveAttribute("data-inbox-count", String(calls + machine)); - await expect(page.locator("[data-rail-count=inbox]")).toHaveText(String(calls + machine)); + // The rail's count is memoised for a few seconds (lib/rail.ts) and asked once per page load: one + // filled before the fixture's last write (the warm-up asks /api/rail) is that much behind, so a + // rail that disagrees is asked again once the memo has lapsed. + const rail = page.locator("[data-rail-count=inbox]"); + await expect(async () => { + await expect(rail).toHaveText(/^\d+$/); + if ((await rail.textContent()) !== String(calls + machine)) await page.reload(); + await expect(rail).toHaveText(String(calls + machine), { timeout: 2_000 }); + }).toPass({ timeout: 25_000 }); await expect(page.locator("[data-inbox-note]")).toContainText("quiet"); const shown = await page.locator("[data-lit-list] [data-group]").evaluateAll((els) => els.map((e) => e.getAttribute("data-group"))); diff --git a/umtool/e2e/instruments.spec.ts b/umtool/e2e/instruments.spec.ts @@ -158,7 +158,10 @@ test("the odometer and the trail post ready and seek: the wheels only roll up, t await trail.seek(0.3); await expect.poll(shown).toBe(0); await trail.seek(tEnd()); - await expect.poll(shown).toBe(3); + // Every weight said so far: the three stated (>240, <300, 291.5) and the remembered ≈390, hollow, at its as-of date. + await expect.poll(shown).toBe(4); + const remembered = () => trail.frame.locator(".pt.rem").evaluateAll((ps) => ps.filter((p) => Number(getComputedStyle(p).opacity) > 0.5).length); + await expect.poll(remembered).toBe(1); await expect(trail.frame.locator('[data-k="uc1"]')).toContainText("UNDER 300 · SAID 2×"); await expect(trail.frame.locator('[data-k="uc1"]')).toBeVisible(); }); diff --git a/umtool/e2e/takes.spec.ts b/umtool/e2e/takes.spec.ts @@ -278,8 +278,9 @@ test("Give renders the machine: the take runs with --priority, holds the lane it await expect .poll(async () => ((await (await request.get(`/api/report/takes/make?job=${job.id}`)).json()) as { state: string }).state, { timeout: 180_000 }) .toBe("done"); - // The stub's download lane was held already: left alone, never released. - expect(laneAsks().slice(before)).toEqual(["transcription:true", "transcription:false"]); + // The stub's download lane was held already: left alone, never released. Transcription and the + // Speakers (backfill) lane were free: held for the take, and let go (RENDER_MODE_LANES). + expect(laneAsks().slice(before)).toEqual(["transcription:true", "backfill:true", "transcription:false", "backfill:false"]); expect(existsSync(STATE)).toBe(false); // While a render holds it, the panel says so (this process is the holder: alive).