tickets

hycon #138

The quick test suite takes 71 minutes

open

opened by Hermes

opened · updated

caramboleyo 2026-10-30 ~19:5x, his words: "a 71min test suite? are you insane?"

Measured (w267 run, 38 gates, one after another): 68 min of gate time + 2.5 min setup. scroll-66 10.5 min, scroll-api 9.6 min, usage-reset-note 4.2, unqueue 4.2, draft-busy 2.7, scroll-read 2.7; the rest 1-2 min each. Fix: cut the slow gates (fixed waits and sleeps → wait for the event), run the gates in parallel on separate port blocks; target under 10 minutes for the whole suite, with nothing a gate checks dropped.

History

  1. Hermes opened the ticket
  2. 3 comments

    1. Hermes
        Write…
      • Hermes
          Write…
        • Hermes
          edited

          Edited once

          1. Evaluation of all gates, for your decision (nothing deleted yet). Today 38 quick gates, 68 min; after these verdicts about 37 min (estimate). KEEP 22, SHRINK 11, MERGE 4, DROP 1. Most time is waiting on long stub answers (~65 s) and quiet phases; a shorter stub answer is the biggest saving. scroll-read is the flakiest (27 reruns in ~25 runs).
            Which verdicts do you want applied? The full table:
            
            # Mission 250 (w274): which gates are necessary (hycon #138)
            
            I read gates.sh, every test header, the git history of tests/, and all gates.out tables under hermes/ (about 25 full runs). I ran nothing.
            - Quick suite today: 38 gates, **4075 s (68 min)** of gate time (w267 table). After my verdicts: about **2240 s (37 min)**. The "after" numbers are my estimates, not measurements.
            - Six gates are 2/3 of the time: scroll-66 632, scroll-api 575, usage-reset-note 250, unqueue 250, draft-busy 163, scroll-read 161. Their cost is real-time waiting on long stub turns (~65 s) and quiet phases, not checking. The biggest single saving is a shorter stub answer (16 to 25 s instead of 65 s) in scroll-66, scroll-nav, unqueue, draft-busy.
            - Verdicts: 22 KEEP, 11 SHRINK (socket-gap-resync's shrink is: move to FULL only), 4 MERGE (queued-stays, usage-login, event-tools, scroll-read), 1 DROP (midturn-once, a subset of send-while-busy). Nothing here is deleted.
            - Flakiness (FAIL then ok, counted over all old gates.out files): scroll-read 27 FAIL runs (the worst), usage-refresh 11, scroll-nav 8, usage-row-restart 6, attach 6, cost-stream 4. usage-reset-note failed both runs in w268 (454 s). Flaky gates should be fixed or merged before they are trusted; a rerun already doubles their time.
            - "Caught a real bug": no log counts catches. As proxy I used commits that changed the test together with product code (fix + test shipped as one): grok 8, draft-switch 7, attach 6, send-while-busy 5, socket-gap 5, form-geometry 5, api 4, usage-refresh 4, usage-reset-note 4; scroll-66, scroll-nav, usage-row-restart 0 (tests added after the fix). This is weak evidence; "guards" below names the ticket.
            - Overlap clusters: (1) the send-while-busy family (send-while-busy, midturn-once, queued-stays) all drive the same slow-tool haiku chat; (2) the scroll family (scroll-66, scroll-read, scroll-api) test end-of-turn and outside messages three times; (3) usage (usage-refresh, usage-login share an oauth stub); (4) events and event-tools each start an instance and a stub.
            - Not covered: instance start time (about 10-30 s per self-start gate, not in the per-gate seconds), and the real Chrome on lisbeth (the mission's confirmation run is separate).
            - Second table: FULL-only gates have no timing data (not in the quick tables); verdicts there are from headers only.
            
            ## Quick gates (secs from w267/gates.out)
            
            | gate | checks | guards | overlaps with | secs | verdict | reason | est. secs after |
            |---|---|---|---|---|---|---|---|
            | api | Control API endpoints for Claude+OpenRouter, auth, UI<->API both ways (headless Chrome) | routger#8 | - | 48 | KEEP | only gate on the HTTP API; 4 fix commits | 48 |
            | tool-line | every tool row shows name+command, history and live turn (fake claude) | hycon #131 | tool rendering in scroll gates only incidentally | 63 | KEEP | new, unique; 1 fix commit | 63 |
            | session-life | claude process ends only by explicit stop; session_send asks after 55 min quiet | hycon #121 | - | 118 | SHRINK | cut the idle-evict wait (6 s ticks) to the minimum; the warm-window half is cheap | 70 |
            | account-record | each turn stores who paid; account-cost view; backfill script | hycon #123 | - | 9 | KEEP | 9 s | 9 |
            | default-cwd | new chat without touching cwd runs in /tmp (390 touch, 1280 mouse, chrome) | hycon #76 | form-geometry (form only) | 23 | KEEP | unique, cheap | 23 |
            | pages40 | opens the 40 newest chats of a production copy, reports non-200 and console errors | routger#33 | - | 59 | KEEP | the only real-data page check; (pages-all FULL only) | 59 |
            | send-busy | send_message to a busy subagent is queued (Claude child and OpenRouter child, real haiku) | routger#13 | - | 85 | SHRINK | keep the Claude child only; the OpenRouter child doubles a real-model turn | 50 |
            | send-while-busy | message typed while busy leaves the field at once, queued at once, sent exactly once (slow socket) | hycon #119 (twice) | midturn-once, queued-stays, unqueue | 139 | KEEP | the one gate for the send-while-busy flow; absorbs two others | 139 |
            | queued-stays | a taken message must not stay as queued row too (plain and racing), 390+1280 | hycon #119 | send-while-busy (same slow-tool haiku chat) | 108 | MERGE into send-while-busy | same setup and viewports; add the two cases to that run | 20 |
            | midturn-once | a mid-turn message recorded/shown/delivered exactly once | hycon #119 | send-while-busy (its header says it has the full flow) | 56 | DROP | subset of send-while-busy | 0 |
            | socket-gap | socket drops during a turn; page catches up without reload (replay) | routger#2, hybriel#143 | socket-gap-resync (same script) | 103 | KEEP | default recovery path; 5 fix commits | 103 |
            | socket-gap-resync | same script, push log of 3 so the long-gap resync path runs | routger#2 | socket-gap | 93 | SHRINK | move to FULL only; rare path, runs the whole script again | 0 |
            | send-restart | sent message never lost or doubled over socket gap / restart (outbox) | hycon #67 | usage-row-restart partly | 25 | KEEP | 25 s, unique | 25 |
            | attach | attachments in the message field at 390: pick, paste, remove, refuse, send, owner-only (haiku) | hycon #46 | - | 23 | KEEP | 23 s; flaky 6 times, find out why | 23 |
            | mobile | 390 px sidebar: toggle, off-canvas, swipe, open chat | early mobile work | draft-switch, form-geometry (both open sidebar) | 9 | KEEP | 9 s | 9 |
            | form-geometry-chrome | message form geometry at 390/1100/1280/1500, new-chat and chat page | Floorp '+ not aligned' | mobile (no) | 53 | KEEP | caramboleyo's own alignment complaint; Firefox half is FULL only | 53 |
            | draft-switch | typed text survives chat switch, per chat (390 tap, 1280 click) | hycon #124 | draft-busy covers the busy variant | 40 | KEEP | cheap, no model | 40 |
            | draft-busy | draft kept on a BUSY chat without the page stopping to apply pushes | hycon #124 (3rd try) | draft-switch, unqueue (queue kept over switch) | 163 | SHRINK | use the 16 s stub answer instead of a long turn; one viewport per run | 80 |
            | handoff-lock | boot lock script with real processes: claim, exec restart adopt, stale | w63 / handoff | restart (FULL) | 14 | KEEP | 14 s, guards restarts | 14 |
            | usage-refresh | manual usage refresh, no stop at any percent, rate-limit UI; 2 instances + oauth stub | hycon #71, #118 | usage-login (same fake oauth stub) | 100 | KEEP | absorbs usage-login; flaky 11 times, fix the timing | 100 |
            | usage-reset-note | every Claude chat hears the 5h reset: running, keepalive, idle, after restart, stale read (real haiku) | hycon #127 (4 fix commits) | - | 250 | SHRINK | drop the second restart and the Y/Z second-look phases; failed twice in w268 (454 s) | 130 |
            | usage-login | after /login to another account usage re-reads within 15 s | hycon #88 | usage-refresh | 88 | MERGE into usage-refresh | 55-line test, same oauth stub; one instance start less | 30 |
            | cost-stream | stored cost = delta of cumulative total_cost_usd (fake claude) | hycon #81 | - | 23 | KEEP | 23 s; flaky 4 times | 23 |
            | usage-row-restart | old page across a restart shows the same rows as a fresh one (idle, after turn, during turn) | hycon #82 | send-restart, socket-gap | 124 | SHRINK | two restarts instead of three (drop idle); flaky 6 times | 80 |
            | grok | Grok provider against fake grok binary | hycon #86 (8 fix commits) | - | 32 | KEEP | fake binary, cheap | 32 |
            | grok-usage | Grok sidebar usage line | hycon #91 | - | 16 | KEEP | 16 s | 16 |
            | codex | Codex provider against fake app-server | hycon #53 | - | 71 | KEEP | fake binary | 71 |
            | codex-usage | Codex usage reads: unchanged, RPC failures, timeout, recovery | hycon #135 | - | 113 | SHRINK | timeout case waits in real time; shorten the timeout via env | 50 |
            | events | chat events and loops: fire once, repeat, restart cases (stub, own instance) | hycon #126 | event-tools (own instance each) | 104 | KEEP | the feature's behaviour; takes event-tools into it | 104 |
            | event-tools | event_/loop_ tools for every provider and the MCP door | hycon #126 | events (same instance setup) | 96 | MERGE into events | one instance start, tool list checks are quick | 50 |
            | scroll-66 | reader scroll position: outside message, end of turn above/inside, own send, follow (7 cases, each a ~65 s stub turn) | hycon #66 | scroll-read, scroll-api | 632 | SHRINK | cases A,B1,B2,C1,C2; drop B3,B4 (own-send twins of B1,B2 and C1); shorten stub LONGLIST from ~65 s to ~25 s | 200 |
            | scroll-read | reader NOT moved by injected message, socket drop, input growing, end of turn | hycon #66 reopened | scroll-66 B1/B2 (end of turn), scroll-66 A | 161 | MERGE into scroll-66 | keep only drop+reconnect and input growth; end-of-turn and injected message are scroll-66 B/A; 27 failed runs in old logs (flakiest gate) | 50 |
            | scroll-nav | navigate chat A->B->A while A streams, rows in order | hycon #66 follow-up | - | 75 | SHRINK | unique, but shorten the stub stream; flaky 8 times | 45 |
            | scroll-api | outside API messages on a long chat: no jump, no fold (warm-up, quiet, 3 messages, b1/b2 reader runs) | hycon #66 reopened 28 Oct | scroll-66 A (external message) | 575 | SHRINK | drop the 32 s QUIET phase and b2; 3 short outside turns are the point; keep the long-chat seed small | 200 |
            | three-finger | 3+ finger touch must not scroll chat | hycon #132 | - | 68 | KEEP | new, unique | 68 |
            | unqueue | cancel / edit of queued rows (390 touch, 1280 mouse) incl. switch check on a ~70 s turn | hycon #120 | incoming-queued, draft-busy | 250 | SHRINK | the 70 s turn only exists for the switch check; use the 16 s stub answer and test the switch inside it | 100 |
            | indicator-order | working indicator never ahead of the user's message (rAF sampling) | mission 238 | incoming-queued (queued row) | 22 | KEEP | 22 s | 22 |
            | incoming-queued | a message from another chat is not shown as queued row | hycon #129 | unqueue | 44 | KEEP | 44 s, unique rule | 44 |
            | **total** | | | | **4075** | | | **2243** |
            
            ## FULL-only gates (not in quick; no timings in the logs)
            
            | gate | checks | guards | overlap | verdict | reason |
            |---|---|---|---|---|---|
            | pages-all | opens every stored chat, console errors | routger#33 | pages40 | KEEP (FULL) | the post-restart check; too long for every change |
            | open-chat | long chat opens at newest message, fast | routger#7/#3 | pages40 (partly) | KEEP (FULL) | unique |
            | fold-cache | fold cache equals a fresh read | hycon #79 | api | KEEP (FULL) | unique, no browser |
            | chat-images | images in chat rows, owner-only files | hycon #61 | long-answer (md-img) | KEEP (FULL) | unique, real haiku turn |
            | long-answer | 1000-item answer opens fast, middle on tap | hycon #65 | chat-images | KEEP (FULL) | perf guard |
            | scroll-follow | scroll up while streaming stays up (real haiku) | hycon #66 first version | scroll-66 B/C2 | DROP | superseded by scroll-66, which uses the stub and no real model |
            | options, sidebar, cancel, delete | form options, sidebar, cancel, delete flows | various | mobile, draft-switch | KEEP (FULL) | small; check cost before moving to quick |
            | toolrev | tool revision handling | mcp | mcp-http | KEEP (FULL) | unmeasured |
            | mcp-http | MCP door over HTTP | #69 | event-tools (tool list) | KEEP (FULL) | unique |
            | send-restart-restart | send-restart with a real restart | hycon #67 | send-restart | KEEP (FULL) | needs an instance restart |
            | restart | restart/handover | deploy | handoff-lock | KEEP (FULL) | unique |
            | view-order, view-style | one flat item list; style rules | hycon #41 | tool-line (rows) | KEEP (FULL) | unique |
            | usage-noteguard | usage note guard | hycon #127 area | usage-reset-note | KEEP (FULL) | unmeasured |
            | sysprompt | system prompt per revision, peer | sysprompt | - | KEEP (FULL) | flaky 10 FAIL/flaky entries; needs a fix |
            | respawn (SELF_START) | respawn-alive | hycon #121 | session-life | KEEP (FULL) | unmeasured |
            | form-geometry (Firefox half) | same as chrome | Floorp complaint | form-geometry-chrome | KEEP (FULL) | needs Xvfb |
            
            cli-models appears in w268's table (20 s) but is not in QUICK of this tree; I did not evaluate it.
            Write…

        Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.