Commit Graph
130 Commits
Author SHA1 Message Date
yetone c9e8422fa8 agent: a field label with no TUI Chinese fails internal/agent's tests
A new agent field's label with no entry in internal/tui's zh map left
TestEveryWordHasZh red on main twice (e9fcc6229 on 11-15 for
"permission mode", 618bfc1a9 on 11-17 for "subagent pool"), each by a
change that ran internal/agent but not internal/tui.
TestEveryFieldLabelHasTUIZh reads tui's i18n.go and keepAsIs (tui
imports agent) and fails in the package such a change runs. LESSONS and
the code standards' criterion 3 name it.

Run: on mote, go test ./internal/agent: ok (250s). The new test on
Linux (wsl-run) and Windows (win-run): ok. gofmt -l: clean.
Broken by hand: with "subagent pool" taken out of i18n.go, red ("kimi's
field \"subagent_pool\" (label \"subagent pool\") has no Chinese").
2026-11-17 15:09:29 +08:00
yetone adfa196db0 lessons: a docs page change regenerates the site's indexes (seen a fifth time)
00b2c11a6 added a docs row and left llms-full.txt and the search
indexes stale, the fifth time since 11-13 (459d668b3, 256910f17,
9dcec6751, dbbb2f26b). The rule moves into the code standards'
criterion 3. Docs only; nothing run.
2026-11-17 12:58:54 +08:00
yetone 90d7ea9331 agent: a new agent named nowhere in the Library fails internal/agent's tests
TestEveryAgentInLibrary (internal/library) went red on main for a new
agent four times: 399010bef and 68cb92e8e (11-10), 7e8214d60 (11-12),
and effdd1beb today after 00b2c11a6 (Open Code Review). A change that
adds an agent runs internal/agent, and the guard is in another package,
so each was found after the push.

TestEveryAgentNamedForTheLibrary reads internal/library's targets.go and
every_agent_test.go (library imports agent, so it reads the files) and
fails when an agent on this machine's list is in neither a targetOf case
nor noLibrary. The library test still checks a target has something in
it. Same shape as internal/gui's TestEveryRouteIsNamedForTheCLI.

LESSONS.md: the route/setting guard lesson now covers agents, seen a
third day. code-standards criterion 3 names both twins.

Run (mote, at effdd1beb + this change):
- go test -count=1 -timeout 45m ./internal/agent ./internal/library: ok
- broken by hand (open-code-review's noLibrary line removed): red,
  "open-code-review (Open Code Review) isn't named in internal/library";
  restored
- win-run and wsl-run, -run TestEveryAgentNamedForTheLibrary: ok
- gofmt -l: clean
Not run: the full ./... suite (test-only change in one package).
2026-11-17 11:47:18 +08:00
yetone 17da22414d LESSONS: what a started process's reader goes by is set before it starts
#6887 (4c6c3a453) and the Claude bridge's run tools (43d9aae09), both reds
only under CI load, both reproduced by an injected 50ms sleep.
2026-11-17 03:13:20 +08:00
yetone f97997e6ed LESSONS: a GUI suite with hundreds of known reds is not a baseline
8608ce024 shipped on 1041 GUI fails at head against 971 at origin/main.
Four of its named files run alone on mica at 8608ce024 (load 9): 8 of
60 red, all already filed (#4126, #3079, #4790, #6003). 465 open
'gui tests' issues, none assigned, 2 closed since 11-13.

Run: mica-run node --test models-fold, key-replace, plugin-card-update,
usage-fold at 8608ce024: 52 pass, 8 fail. Docs only otherwise.
2026-11-16 21:31:33 +08:00
yetone 9c4e87736c lessons: a test that bounds a count of work is run at -cpu 1 too (39e4b9934) 2026-11-16 16:09:44 +08:00
yetone f01bac761f LESSONS: a docs change left llms-full.txt and the search index stale a third time (9dcec6751) 2026-11-16 13:19:48 +08:00
yetone ae0a783682 LESSONS: a Windows red that is filed is not owned (#5928) 2026-11-16 12:14:07 +08:00
yetone 28236ad2d5 LESSONS: a red only CI's OS shows is probed there with the suspect toggled
EBADF on macOS CI (#6368, #6785) sat four days; local macOS 27 never
showed it, and one probe run on CI's runners named WatchRoot (0522bf84f).
Docs only; nothing run.
2026-11-16 08:24:24 +08:00
yetone 881497507c lessons: the one-suite-per-machine lesson is listed as moved
ff5a7dfc0 added the code-standards row; this takes the lesson out of
Verification and lists it under Moved to the code standards, which
that commit's script failed to do.

Docs only; nothing run.
2026-11-16 07:31:12 +08:00
yetone 65e3dfa957 LESSONS: a byte-for-byte stream check allows SSE comments, and its message counts against what it compared
From fff0755b5. TestPassthroughResponsesBigLastEvent's macOS red was a
held stream's keepalive. Its message counted the extra bytes against the
raw reply instead of the expected one, and named 17 where there were 12.
Docs only; nothing run.
2026-11-16 06:02:05 +08:00
yetone fc41381d60 LESSONS: a docs page change left llms-full.txt stale a second time (256910f17)
Under the 11-13 entry for 459d668b3. Docs only; nothing run.
2026-11-16 04:33:57 +08:00
yetone 2d106b5c1a LESSONS: a gone check that looks past made-up text moves into the code standards
Seen a third day: on 11-15 TestMoreKinds' "ops" was in the made-up
user name zpxopsat (ubuntu CI at 500f39886, #4345), after 10-10's
placeholder suffix and 11-10's port and route_id. The rule is now a row
in docs/code-standards.md's Tests table, and LESSONS.md lists it under
"Moved to the code standards". Docs only; nothing run.
2026-11-16 03:38:48 +08:00
yetone 500f39886e testenv: a package's own run fails on a package-level regexp it compiles at launch
TestNoEagerPackageRegexps lives in the root package, and a change runs
its own packages, so the guard went red on main on six days: #6020,
#6145, 4847a087f, 10e783080, 7869a454c and today 8f3f7a46a (fixed in
022ffd09e). LESSONS.md asked on 11-12 for the check to run where the
work already runs; writing the rule again hadn't held.

testenv.RunIn (every testenv.Main/Run TestMain, 65 packages, provider,
gui, update, library and catalog among them) now checks the package's
own non-test files after its tests and exits 1 naming each pattern. It
runs on a `-run` of one test too. The parsing moved into
testenv.EagerRegexps, which the root guard now calls, so both read the
same rule. A child test binary (Marker set) doesn't check again.

Run on mote at this tree (origin/main 022ffd09e + this):
- go test -count=1 ./internal/testenv .: ok (TestEagerRegexps new:
  lines 5 and 8 listed; a func's, a func literal's and lazyre.New not)
- Broken by hand: zz_probe.go with `var eagerProbe =
  regexp.MustCompile("x")` in internal/update; `go test -run
  TestNothingMatchesThis ./internal/update` FAIL with "testenv: a
  package-level regexp is compiled at launch; use lazyre.New:
  zz_probe.go:5:18"; removed, ok.
- GOOS=windows go vet and GOOS=linux go vet -tags nogui of
  ./internal/testenv and .: clean
- gofmt -l: clean
Not run: every testenv package; the root guard passing at this tree
says none of them has such a pattern, so none fails on the new check.
2026-11-16 02:42:56 +08:00
yetone 3173c4f41e gui test: a route the CLI's list doesn't name fails internal/gui too
TestEveryRouteHasACommandOrIsNamed (internal/cli) went red on main for a new GUI route six times in a week (#5946, #6162, #6677, #6724, #6786): GUI changes run internal/gui, not internal/cli. TestEveryRouteIsNamedForTheCLI reads the same HandleFunc routes and fails when one isn't a key in internal/cli/settings_parity_test.go, so the run a GUI change already does catches it. The CLI test still checks which command each route has. LESSONS: the 11-15 case and the rule that a check repeatedly missed goes where the work runs.

Run at origin/main ec5b96c44 plus this, on mica: go test -count=1 ./internal/gui ok (185s); TestEveryRouteIsNamedForTheCLI red with the quit/disconnect line taken out of notYet ("POST /api/quit/disconnect (api.go) isn't named ..."), green with it. gofmt -l clean. Not run: Linux and Windows vet (test-only file, os/filepath/regexp only).
2026-11-16 01:18:18 +08:00
yetone f9807c5e84 LESSONS: a red claimed and left a month (#2903) is unowned
#2903 was claimed on 10-19 and came back at 139a6be2b in a second test with nothing done on it. #6368 went from "still mine" to "not taking it". Docs only; nothing was run.
2026-11-16 00:44:30 +08:00
yetone 0ffb21f833 lessons: a request the page sends on its own is looked for in every GUI test that counts requests (#6709) 2026-11-16 00:13:24 +08:00
yetone 2a8e1b4448 LESSONS: a host outliving its test's HOME, a review's case argued away, Test's colour
- A helper that gives a test a new HOME also stops what an earlier
  test started under the old one (#6761, 248edad80; same class as
  #2449/#2702 on 10-17). Seen 2×.
- Never merge with a review's problem open: plugins#1183 merged with
  the tool-loop test the review asked for argued away. Seen 2×.
- Under "A cancelled run tests nothing": main's colour is the Test
  workflow's, not Docker's (923cc8747, e99307fb8), 7 of 12 Test runs
  cancelled, and #6764 filed as a duplicate of #6761.

Docs only; nothing run.
2026-11-15 22:39:30 +08:00
yetone 1f04ed2193 gui: a form's name and its control share a line in every editor
The owner (11-12, the second time): in a provider editor, Free for me and
Redaction sat 4-5px under their ticks. "这个事情发生过不止一次了,要彻底避免。"

Cause: each label carried a padding-top guessed for one control, 5px for
a 29px input. Any other kind of control, such as a tick, a switch, the
icon box, a row of options, a list or a JSON box, sat off its name.

Fix, at the shared row layout instead of per row:
- Every editor grid sets its rows on their first baseline: .editor, a
  dialog's .ebody, Advanced's .more .inner and Connect. The per-label
  padding and label.by-list are gone.
- Controls with no text of their own carry a text line at their middle:
  the icon box (line-height 30px) and the library switch (a ZWSP
  ::before).
- Exception: a row whose control starts with a text field is set at its
  top, its name padded to the field's line (--field-h, 44px on the narrow
  web). WebKit lays a baseline row out again on every layout and reveals
  a focused field each time, so the page jumped back to a new group's
  name (group-from-model-add). app.js's settleRows marks those rows
  .at-top (and a JSON box's name .by-json), only in grids a mutation
  touched. A CSS :has(+ ...) version held WebKit ~9s on Codex's editor
  (9209ms vs 249ms on base, provider-pass-errors).
- Connect's options wrap at <=520px instead of scrolling: WebKit grew a
  baseline row holding a scroller 6px each time its bar came and went
  (connect-snippet-shell).
- The rate-windows Add button sits at its row's top.
- provider-at-once compares the label's text height, not its padded box.
  The label is still one line; a name beside a 44px field is padded down
  to its line.

Guard: form-align.test.cjs opens the provider editors (a key's, Codex,
with Advanced open), the group editors and Connect. For every name and
control row it asserts the label's first text line and the control's
first line share a vertical centre within 2px. It runs in chromium and
webkit, en/zh/zh-TW/ja/de, at 1100, 420, a web 390 and a panel width.
LESSONS.md gets the rule.

Run (mica, through mica-run):
- At the pushed tree (49274f690, the same tree before this message): form-align, provider-pass-errors,
  provider-at-once, provider-count-free, provider-unmasked,
  provider-rate-windows, provider-proxy, connect-snippet-shell,
  group-from-model-add, icon-url, library-mcp-hub, settings-lines-wrap,
  settings-update-proxy, editor-roomy and i18n-keys: 499 pass, 3 fail at load 75. The 3: settings-lines-wrap chromium de 440 is red the same on origin/main 2bc25a2d6, 2 of 2 (#6353). connect-snippet-shell chromium en/de 390 passed when its file ran again alone (#4128 is its sibling).
- go test -run Budget ./internal/gui: ok.
- Earlier, at 648cd3fdb: the whole GUI suite (473 files). The new reds in
  it were the :has slowdown above (fixed). The 64 files it reached were
  then run again on mote, rebased on 343920464; the reds left are listed below.
- Broken by hand: every first baseline put back to start, form-align
  0/10. On the old CSS it was 0/10.

Reds that are the same on origin/main (343920464, 2bc25a2d6):
- connect-address-kept at 1100: #6755, filed now.
- provider-mask "Hide accounts": #5109.
- settings-groups warm-ups: #6597.
- editor-advanced-align webkit: #4615 / #6421.
- library-bili webkit: the tab click is lost about 1 run in 4, 2/8 on
  main, near #6015.

Not tried: the real app in WKWebView, WebKitGTK and WebView2, and Windows.
2026-11-15 19:53:10 +08:00
yetone d997620752 lessons: a Usage guard red 14 days behind a layout change's chosen GUI files (#6003) 2026-11-15 14:56:07 +08:00
yetone 8f2136fab6 lessons: a "seen again" is still not work on it (#5052, #6003) 2026-11-15 14:26:32 +08:00
yetone 79b10c5a9a LESSONS: coreScriptBudget rose 29 times in 3.5 days (#2710) 2026-11-15 13:23:52 +08:00
yetone 72e06980eb LESSONS: a new API route runs internal/cli's parity tests (#6724) 2026-11-15 12:30:43 +08:00
yetone aecf27efbc LESSONS: a quiet go test log is not a hang until a package's time says so (#5267)
The macOS Test step of run 43664046438 was cancelled at 53 minutes as a hang; its log shows go test had just finished. Packages print in order, so one slow one holds every later line back. Docs only; nothing run.
2026-11-15 10:43:43 +08:00
yetone 87a0af2126 LESSONS: a change to which tests share a process checks the state they leave (#6717) 2026-11-15 08:46:47 +08:00
yetone dcb0f3dcd1 lessons: a red filed as "red on main" is bisected before anyone ships past it
2bb201162 saved a pasted curl key unseen over a keyed provider's own;
key-box-once said so, was filed as a main red (#6424, #6709) with no
cause, and the review bisected and fixed it (a2a49c204). Docs only.
2026-11-15 06:00:05 +08:00
yetone 4aa64500f7 lessons: a new value in a looped-over list meets every test that loops it
6256d9956 added "account" to access.Periods and left
TestKeyLimitReservationsStayInTheirWindow red in internal/gateway
(#6706, fixed in 2f5e75515).
2026-11-15 04:39:06 +08:00
yetone fdf42299e9 lessons: a -run of new tests is not a run of the package
d50ae6fcb ran only its two new tests in internal/usage, and
93762f968 recorded a run from before it. The pair was run together at
93762f968 on mote: go test ./internal/usage ./internal/usageapi ok.
2026-11-15 03:01:42 +08:00
yetone 5a7ce7ee9f LESSONS: a new route meets every route guard; a filed red still needs an owner
From the 11-14 review: TestEveryRouteHasACommandOrIsNamed red for a new
GUI route a fifth time (#6677, fixed in 4c86b0ab4 after a "Not taking
it"). 6bdeedc6f's routes broke two gateway guards, one a real
MaxConcurrency gap (#6688). 0b8c4bfc3 broke TestEveryWordHasZh. Four fixed
issues were left open.
2026-11-15 00:53:03 +08:00
yetone 217e933dd9 LESSONS: 11-14 afternoon, 14 tags with no green CI run behind them
After 1ab2c3984 only two Test runs finished, both red on the hub
pruner race (fixed in 49f49c41c); the rest were cancelled by the next
push. Docs only; nothing run.
2026-11-15 00:17:14 +08:00
yetone aa358555ff LESSONS: 11-14, two sessions fixed TestInfoSaysMCPHub at once
The review loop and another session each wrote the hub pruner fix;
49f49c41c landed and the loop dropped its copy (b24f03965, unpushed).
Docs only; nothing run.
2026-11-14 22:41:55 +08:00
yetone 534b1a334e lessons: 11-14 two changes pushed before their own suite, at a coordinator's ask
Recorded from the review of 32c830fc1 and 106a24b95. Docs only; nothing run.
2026-11-14 19:29:46 +08:00
yetone 7a69f455cb lessons: 11-14 the updater shipped on chosen packages while both run boxes were busy 2026-11-14 18:56:57 +08:00
yetone a63923e3dd lessons: 11-14 a third guard left red by chosen packages (80a315a70, route parity) 2026-11-14 18:11:31 +08:00
yetone 8334f1e6e0 lessons: 11-14 a sixth budget raise; 11ddf076b ran chosen packages and left the eager-regexp guard red 2026-11-14 17:09:31 +08:00
yetone 4739ec92cc lessons: the counts of the 11-14 no-green stretch, measured (81 commits, 51 releases) 2026-11-14 16:38:36 +08:00
yetone 5e7ce5d91d lessons: 11-14 a fifth budget raise; 11 hours with no Test run finished green 2026-11-14 16:38:19 +08:00
yetone debc80271f lessons: 11-14 a fourth budget raise; vendored yaml.v3 left a guard red (fc75d90af) 2026-11-14 16:06:37 +08:00
yetone 8e1d3095a2 lessons: 11-14 yaml.v3 vendored for an allocation cut (0caa09b3d)
The review diffed third_party/yaml.v3 against gopkg.in/yaml.v3 v3.0.1
after gofmt: only the 7-line emitter change differs. Docs only; no code
run.
2026-11-14 15:03:13 +08:00
yetone aba6aeac22 lessons: the third raise landed by 13:00, not 11:00
Docs only; no code run.
2026-11-14 13:05:56 +08:00
yetone 2a8e77f99d lessons: 11-14 a third core budget raise (27c998aba)
Docs only; no code run.
2026-11-14 13:05:44 +08:00
yetone 15d4acbadf lessons: 11-14 a second core budget raise (dc85a7ca5)
Docs only; no code run.
2026-11-14 12:34:37 +08:00
yetone 8df4239a8b lessons: 11-14 core budget raised again for one line (c5b40bf89)
Docs only; no code run.
2026-11-14 12:03:04 +08:00
yetone 27e43ed26c LESSONS: 11-14, a budget guard left out before a push, a red fixed twice, a clock read twice
From the loop review of 92e760f3d (#6518), f1f34d624 and d6cb40475.
Docs only; nothing run.
2026-11-14 10:18:42 +08:00
yetone ea9f2639b9 LESSONS: a docs edit left llms-full.txt stale, unseen behind cancelled runs
459d668b3 changed docs/sync.html without regenerating llms-full.txt. The
site test was red from 21:05, and CI showed it only once a run was not
cancelled by the next push. Added under "A cancelled run tests nothing".
Docs only; nothing run.
2026-11-14 02:00:33 +08:00
yetone 55327848bb LESSONS: a budget raise that cut a menu item, and a move out (23457a51f, 817d35ffa) 2026-11-13 23:21:37 +08:00
yetone aff11e042d LESSONS: the core budget met by packing again, 3 bytes left (5211fd3ba) 2026-11-13 22:49:51 +08:00
yetone 7af7a3abad LESSONS: a launch-agent fix that also mended installed ones (#2961) 2026-11-13 21:46:37 +08:00
yetone 9e3b269c51 lessons: the eager-regexp guard red a third time on 11-13 (d21cb563e)
d21cb563e ran its packages and not the root guard; 48e394146 fixed it.
The rule is in LESSONS six times, so it needs a check, not a line.

Docs only; nothing run.
2026-11-13 20:12:44 +08:00
yetone 24cdfb5460 lessons: #6482 closed on one green release while the 403 came back
Five tags after the close never published (notarisation 403 and a
notarytool timeout). Recorded under keeping an issue open until the
case works.

Docs only; nothing run.
2026-11-13 19:10:42 +08:00