f4b202030 recorded its full suite as "running on mica at push time" and
v0.1.4408 was tagged on it; the result, 40 minutes later, had
internal/dirent (#7031) and an internal/gui test (#7032) red. Added as
evidence under "A record is written once its run has ended".
Docs only; nothing run.
97e0ecdaa recorded the whole GUI suite as "still running at push: 3736
tests in, 127 red" and left "the rest" of the reds to another session's
rerun. The lesson (10-17 5b12407e8, 10-28 ca9b5048e) is now seen on
three days, so it moves into docs/code-standards.md's Tests table and
LESSONS.md's "Moved to the code standards" list.
Docs only; nothing run.
286e3b6d5 fit the core budget by dropping aria-expanded from seven menu
buttons on other pages, unnamed in its body; side-effort was red for a
week until the fix before this commit.
site/public/llms-full.txt and search/*.json are built from the docs
pages and committed. A Go change that edited a docs page and ran only Go
tests left them stale on main five times from 11-13 to 11-17
(459d668b3, 256910f17, 9dcec6751, dbbb2f26b, 00b2c11a6), each caught by
CI's node tests after the push.
site/docs-index.mjs now writes all three: llms-full.txt, search/*.json,
and docs-index.sums, a sha256sum line per page they are built from.
`node llms-full.mjs` and `node search-index.mjs` each run all of it, so
running either one is enough. After a package's tests, testenv checks the
pages against the sums the way it checks eagerHere, and fails the run
when any page is edited, added or gone, naming each page. That covers
the 64 packages that use testenv, a -run of one test included.
search.test.mjs checks that the sums are current. The code standards'
criterion 3 and LESSONS say so.
Generating at this base changed neither llms-full.txt nor the search
indexes, so they were current.
Run:
- mote: go vet ./internal/testenv; go test ./internal/testenv
(TestDocsIndexStaleNamesEachChangedPage, TestDocsIndexCurrent) and
internal/agent's TestEveryFieldLabelHasTUIZh: ok.
- mote: node --test site/search.test.mjs site/worker.test.mjs: 47 pass.
- Linux (wsl-run) and Windows (win-run): go test ./internal/testenv ok.
- mote: GOOS=windows/linux go vet ./internal/testenv: ok. gofmt -l:
clean.
Broken by hand: appending a <p> to docs/alma.html without regenerating
made `go test -run TestEveryFieldLabelHasTUIZh ./internal/agent` fail
("testenv: docs pages changed … docs/alma.html") with its test passing.
search.test.mjs went red too.
Not run: the full Go suite. It starts after the push.
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").
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.
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).
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.
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.
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.
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.
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.
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.
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).
#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.
- 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.
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.
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.
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.
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.
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.
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.
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.