Repository navigation
fix(deps): adopt merged frostui and stabilize async checks - #191
Conversation
frostyard-machines
left a comment
There was a problem hiding this comment.
Review at head ca00bade9948d286d47c588b6ba3211efa54bf6d: the CI job "Verify (make verify)" fails. All other jobs pass, including Race detector.
Blocking (red CI): internal/syncer/sync_test.go:235, TestAGeneratedVaultSyncsBothWays.
- Failure:
WaitIdle: context deadline exceededafter 52.9 s.internal/syncerthen fails at 99.3 s. - Cause: this PR does not change
sync_test.goor the syncer code. It changes onlyinternal/syncer/pairs_test.go, in other tests.mainat2f540d4passed the same job. So this looks like a timing failure of the generated-vault test on a loaded runner, not a regression from this diff. One run does not prove that. - Fix:
- Re-run the job.
- If it fails again, read the cause before you raise a deadline:
WaitIdlewaits for both devices to go idle, and a held background push (the patternpairs_test.gonow uses) would also stop it. - If it is only slow, give this test the same room the race job got in
660f807, through its own deadline. Do not raise the shared default.
The frostui pin will need a further change when frostui#9 (the SourceList leak fix) merges. That finding follows in a separate review.
frostyard-machines
left a comment
There was a problem hiding this comment.
Review at head ca00bade9948d286d47c588b6ba3211efa54bf6d.
Blocking: go.mod pins frostui at v0.2.1-0.20261111113800-23f37ce2a715, which lacks the SourceList leak fix.
- frostui#9 ("take a middle click without a
ui.Handleper row", B2) merged ascbba093, and frostui tagged that commitv0.3.0. - The pinned
23f37ceis 3 commits behind it, so the app still makes aui.Handlefor each row, which is the leak that #9 fixes. - Fix:
go get github.com/frostyard/[email protected], thengo mod tidy.- Run
make flatpak-sources, so thatpackaging/flatpak/go-sources.jsonfollows (CI's "Flatpak sources" job checks it). - Update the pin text in
AGENTS.mdand in plan 0009, which now say "the merged source-list/status-menu commit", tov0.3.0.
- v0.3.0 still requires
github.com/egoist/mygo v0.9.0and go 1.27.4, the same as the current pin. So the existing MyGo forkreplacestays valid. - Check:
make checkandmake desktop-build.
The "Verify" job is still red, as noted in my previous review. A new head re-runs it.
# Conflicts: # AGENTS.md
frostyard/frostui#9 makes no handle per row: a middle click counts when the release lands on the same row by MyGo's own hit test. The pin holds until frostui v0.3.0. Files' middle click still opens a file in a new tab, and a release over another row, or on a folder, opens nothing.
TestAGeneratedVaultSyncsBothWays ran out of settle's 30 s on a CI runner about four times slower than usual. The race build had raised its budget for the same reason. settle and the crash tests now wait on the test's context, so a stall ends at the binary's -timeout with every goroutine.
The tag is the merge of frostyard/frostui#9: the source list's middle click is the same as at 1de9b19. Files has one untitled section, so a release over a pinned section header cannot happen there.
frostyard-machines
left a comment
There was a problem hiding this comment.
Review at head ca00bade9948d286d47c588b6ba3211efa54bf6d: the PR now conflicts with main (2f540d4, after #192 "move to MyGo v0.9.0").
Blocking: merge conflict in AGENTS.md (the internal-modules paragraph, around line 207). go.mod, go.sum and packaging/flatpak/go-sources.json merge without conflict.
mainchanged the fork line to "github.com/egoist/mygov0.9.0, replaced by the owner's forkgithub.com/bketelsen/mygo(v0.9.0 and egoist/mygo#1662) until #1662 is in a release".- This PR changed the frostui line, and made the same MyGo v0.9.0 change with the older fork text.
- Fix: merge
main(no force-push). In the paragraph, keepmain's MyGo and fork text, and give the frostui pin asv0.3.0, as my previous review asks. That one edit settles both points. - Check after the merge:
go.modkeepsmain'sreplace github.com/egoist/mygo => github.com/bketelsen/mygo …line together with the new frostui pin.make flatpak-sourcesthen gives no diff, or its regenerated output is committed.make check.
My 2 earlier findings at this head stay open: the frostui pin must be v0.3.0 (frostui#9), and "Verify" is red (TestAGeneratedVaultSyncsBothWays).
frostyard-machines
left a comment
There was a problem hiding this comment.
Re-review at head 9d585befb2e873bb3041f15d21138eafe57bbd37, of ca00bad..9d585be: the merge of main plus 3 commits.
Result: no blocking finding. My 3 earlier findings are closed. CI is all green, and the PR is MERGEABLE.
- The frostui pin, closed.
go.modrequiresgithub.com/frostyard/frostui v0.3.0, which is frostui#9's merge commitcbba093.go.sumandpackaging/flatpak/go-sources.jsonfollow it.- The "Flatpak sources" job passes.
AGENTS.mdnamesv0.3.0.TestAMiddleClickOpensAFileOnlyWhenReleasedOnIt(internal/desktop/panes/panes_test.go) covers the fix from the app's side: no open on a release over another row or on a folder, and 1 open in a new tab on a release on the row.
- The conflict, closed.
bb7c87cmergesmain(2f540d4).AGENTS.mdkeepsmain's MyGo v0.9.0 and fork text, andgo.modkeeps the forkreplace. - "Verify", closed.
a95202dremovessettleWait.settle,crashy.downandwaitSyncErrornow wait ont.Context(), so a stall ends at the test binary's-timeout, and its panic shows every goroutine.- The
.memory/corrections.jsonlline records it. - Verify and Race detector both pass at this head.
Minor, not blocking:
- The plain
go testruns thatmake verifyandmake racestart set no-timeoutof their own, so a real stall ininternal/syncernow takes Go's default of 10 minutes to fail, where it used to take 30 s, or 2 min under the race detector. - That is acceptable for a test that failed only on slow runners. If the race job's budget gets tight, give
./internal/synceran explicit-timeoutin the Makefile.
Checked: the diff, and CI's results at this head. I ran no tests locally.
|
Cross-review at head
The reviewer's conclusions:
CI at this head is all green, and the PR is MERGEABLE. |
Summary
Adopts frostui v0.3.0, the merge of frostyard/frostui#9: a source list's middle click counts only when the release lands on the same row, by MyGo's own hit test, and makes no handle per row. The
23f37cepin this PR first had leaked a MyGo handle per row (B2 on frostyard/frostui#7). Files' middle click still opens a file in a new tab, and a release over another row, or on a folder, opens nothing (TestAMiddleClickOpensAFileOnlyWhenReleasedOnIt). Files has one untitled section, so it has no section header to release over.Also fixes three asynchronous test failures:
TestAGeneratedVaultSyncsBothWaysfailed CI run 43014900508 withWaitIdle: context deadline exceededafter 52.9 s. That was the runner's speed, not a stall. On that run every slow package took about four times its usual time (internal/synctest315 s against about 70 s,internal/syncer99 s against about 28 s), and setup alone took about 20 s, sosettle's fixed 30 s ran out during the first sync of 666 notes. Locally the test takes about 6 s, and 16 s pinned to a quarter of one CPU. The race build had already hit its own budget once (PR feat: M3 cards T-0043 to T-0046 (counts, search filters, rendering) #25) and had it raised to 2 minutes.settleand the crash tests now wait on the test's context with no budget of their own, so a real stall ends at the test binary's-timeout, whose panic prints every goroutine.Production code is unchanged.
mainis merged in (MyGo v0.9.0 from #192), and the Flatpak's Go sources are regenerated.Risk tier
Risk tier: 2 — a dependency's behavior changes, and the checksummed Flatpak sources are regenerated. No changed path matches the repository's L1 or L2 globs. The test changes only remove fixed wall-clock budgets.
Verification
make checkgreen (host), with frostui's own tests against the MyGo forkgo test -raceover./internal/syncer/and./internal/desktop/...: greenmake desktop-build: greenmake flatpak-sourcesrunTestAGeneratedVaultSyncsBothWaysalone, pinned to one CPU shared with three busy loops: passes in 16 s.memory/corrections.jsonlline on fixed sync-test budgetsMerge order
#191, then the stack #188 → #189 → #190 once it is repinned to the MyGo fork's
frostyard/nextand frostui v0.3.0.