nav-timeout.test.cjs, the #4470 guard, is red on origin/main 41b5c0f19
on any machine, an idle one too. It is a scan of the test files, not
something that varies with load, which is how #4622 filed it. Four
files added since set setDefaultTimeout(5000) without the
setDefaultNavigationTimeout(60000) the guard asks for:
editor-quota-quiet (a9154b170), routing-moved-why (6b8261029),
sync-note-show (225b494be) and sync-own-fields (a511b11d8). Each gets
that one line, and nothing else changes.
Run at the pushed head on mote (load ~115):
- nav-timeout.test.cjs: red alone at 41b5c0f19, listing the four files;
green with this.
- The four files, chromium and webkit, every language and width they
draw: green, in one node --test run with the #3382 and #3484 files
(13 files, 189 cases, 187 pass. The 2 reds are signin-proxy's webkit zh and zh-TW at 380px, red alone at origin/main 41b5c0f19 (#4643). internal/gui/assets is the same at 573b21f4b).
- go test ./... -timeout 45m on mote with this branch on 41b5c0f19: 83 packages ok. internal/gui is red on TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and TestMainWindowCorners (#3949), both red alone at 41b5c0f19 too, and on TestColdTurnsTaken (#4510). internal/update is red on TestRelaunchOpenTriedAgain (#3881). The last two pass alone at 41b5c0f19 and here. Rebased on f856d381a: agent, gateway, plugin, provider and sessions ok, gui red on #4514 and #3949 only, gofmt -l clean, go vet ok for linux (nogui), windows and darwin. Rebased on bb478f0e5: agent and gateway ok, gui the same. The last rebase, onto 573b21f4b, brings in only internal/gui/providers*.go and internal/provider/models.go, which this branch doesn't touch
Not tried: the whole GUI suite.
In Settings › Sync and backup, the notice a sync leaves (what it
replaced here or on the server) has Show, which opens the sync folder
in the file manager. When that failed, nothing was said (#4066):
renderSync named the sync row's text `status`, a local that hid the
status() function, so Show's `.catch((e) => status(e.message, "err"))`
called that string, threw a TypeError, and the status line stayed
empty. The local is named `line` now, so the catch reaches status(),
and Show says its error in red, as a failed call does elsewhere. It
fails, for example, when the sync folder is gone, or on a Linux
without xdg-open. No other function in internal/gui/assets declares a
status of its own (a git grep at 60561129). app.js is 10 bytes
smaller.
What was run (tree 2fb0c3db, on origin/main 60561129, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- sync-note-show.test.cjs, new (Node 22.22.1, Playwright 1.62.1): with
WebDAV sync on, a notice of providers replaced here, and
davsync/reveal answering 400 with Wails' error for a Linux without
xdg-open, Show asks for the folder once, the status line says that
error in red (role alert), and nothing throws. In English and
Chinese, Chromium and WebKit, 3 runs: 4 of 4 each run.
- 60561129's app.js put back, the new test kept: 0 of 4, each red at
"the status line says why the folder didn't open" with the status
line empty, after Show had asked for the folder.
- The 14 other GUI files a git grep finds #sync in (11 with #syncList,
Settings' sync section; refresh-page, sync-spin and update-hide have
only #sync, the header's refresh button), each alone in both
engines: green, but for s3-sync in WebKit, en, red at "picking
WebDAV must not scroll the page" in 4 runs of 4, and at 60561129 in
3 runs of 3; #3413 has the same subtest red, at its S3 click.
- i18n-keys, which reads the strings with no browser: 3 of 4, the
fourth red as at 60561129, "a plugin's words are its own", for
plugins/routing/i18n.js's "masking…" (#4053); 4 of 4 at 174250b2,
which fixed it.
- go test -tags nogui -count=1 -v ./internal/gui, Bun 1.4.2 first on
PATH: 418 pass, 3 skip (TestCLIBehindIsLstatOnlyAndDismissible, Mac
only; TestHandoverSuccessor, run by another test; TestUsageScale, opt
in), and 2 red, its gateway tests TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649). TestCoreScriptBudget passes.
- gofmt -l clean. go vet -tags nogui for linux, windows and darwin, go
vet for windows, go build -tags nogui for linux and darwin and go
build for windows: exit 0 each. go vet and go build without the tag
on linux: exit 1 (no libsoup-3.0 or gio-unix-2.0 here).
- go test -tags nogui -count=1 -timeout 45m ./... (Bun 1.4.2, log
kept; 8m22s, load 28 at its start): 71 packages ok, and 14 tests red
in 6 packages, none of them this commit's tests or what they cover
(internal/gui's are its gateway tests): agent TestInstalledVersion,
TestHowInstalled, TestCursorFolderFromTheEditorIsNotTheCLI,
TestCopilotFolderFromAnIDEPluginIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI and
TestOmpDetectedWithPiDir (#3141);
TestReasonixCLIRequiresSupportedNativeVersion and
TestReasonixCLIRecoversAfterProbeTimeout (#3641); edit
TestWriteAtomicReadOnlyHardLink and testenv TestProgram (umask
077, #3640); gateway TestPluginToldWhereTheAgentWorks (the /tmp/.git
of #3675); gui TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649); sessions TestAgyTitleLater
(#3708), which alone passes 30 of 30 here and at 60561129.
Not tried: the real app's Show, on any system (no file manager or
display here).
Reviewed and run again by the maintainer at the stack's tree 45994757c
(this commit and the six beside it, on origin/main 90518de26), go1.26.8:
- mote (macOS, arm64): gofmt -l clean; go vet and go build for darwin,
GOOS=linux -tags nogui and GOOS=windows (library, plugin, gui): exit 0.
go test -tags nogui -count=1 -timeout 45m ./...: every package ok but
internal/gui TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and
internal/proc TestNoCommandBypassesProc (#4491), both red on main
from b09349d17 and c59c547c5, in files this stack doesn't touch.
go test -race -run 'TestWSL|TestTagged|TestPinnedPiCache' for
library and plugin: ok.
- magpie-desktop (Linux, wsl-run; WebKit hangs on mote), Chromium and
WebKit: every library-*, sync-*, s3-sync, github-sync and i18n-keys
file, 4 at a time: 1003 of 1020. The 17 reds are in 6 files no commit here
touches: i18n-keys ("Unmarked", #4524), library-chip-fan, -items,
-mcp-health, -mcp-hub (#4483) and -mcp-tools. Those 6 alone, one at a
time, at load ~60: 74 of 92 here, 77 of 92 at 90518de26 itself. Red
in both: i18n-keys, -chip-fan and -items in WebKit, -mcp-tools in
Chromium ja 420; -mcp-health green in both; -mcp-hub's WebKit case
red here only, the case #4483 has red on main. -chip-fan and -items
are #3072's and #4501's kind, WebKit under load.
- Note: main has said Show's error since 40af66027 (#3685), whose
.catch(statusErr) reaches the module's status() past the local; the
"60561129's app.js put back" run above is from before it. So on main
this commit is the rename, which keeps the next catch written there
from hitting the string, and the test, which guards Show's error.
- Broken by hand on Linux: the local named status again and Show's
catch back to `(e) => status(e.message, "err")`: sync-note-show red,
0 of 4, in both engines.