Skip to content

fix(deps): adopt merged frostui and stabilize async checks - #191

Merged
frostyard-machines merged 7 commits into
mainfrom
fix/frostui-review-pin
Nov 11, 2026
Merged

frostyard-machines merged 7 commits into
mainfrom
fix/frostui-review-pin

Conversation

@bketelsen

@bketelsen bketelsen commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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 23f37ce pin 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:

  • TestAGeneratedVaultSyncsBothWays failed CI run 43014900508 with WaitIdle: context deadline exceeded after 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/synctest 315 s against about 70 s, internal/syncer 99 s against about 28 s), and setup alone took about 20 s, so settle'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. settle and 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.
  • The document tests finish their held RPC replies before cleanup cancels the context.
  • The differing-vault verification test holds the background push until verification finishes.

Production code is unchanged. main is 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 check green (host), with frostui's own tests against the MyGo fork
  • go test -race over ./internal/syncer/ and ./internal/desktop/...: green
  • make desktop-build: green
  • make flatpak-sources run
  • TestAGeneratedVaultSyncsBothWays alone, pinned to one CPU shared with three busy loops: passes in 16 s
  • One .memory/corrections.jsonl line on fixed sync-test budgets

Merge order

#191, then the stack #188 → #189 → #190 once it is repinned to the MyGo fork's frostyard/next and frostui v0.3.0.

@github-actions github-actions Bot added the level:L3 Skim label Nov 11, 2026
@bketelsen bketelsen changed the title fix(deps): adopt frostui source-list review fixes fix(deps): adopt merged frostui and stabilize async checks Nov 11, 2026

@frostyard-machines frostyard-machines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 exceeded after 52.9 s. internal/syncer then fails at 99.3 s.
  • Cause: this PR does not change sync_test.go or the syncer code. It changes only internal/syncer/pairs_test.go, in other tests. main at 2f540d4 passed 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:
    1. Re-run the job.
    2. If it fails again, read the cause before you raise a deadline: WaitIdle waits for both devices to go idle, and a held background push (the pattern pairs_test.go now uses) would also stop it.
    3. 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 frostyard-machines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Handle per row", B2) merged as cbba093, and frostui tagged that commit v0.3.0.
  • The pinned 23f37ce is 3 commits behind it, so the app still makes a ui.Handle for each row, which is the leak that #9 fixes.
  • Fix:
    1. go get github.com/frostyard/[email protected], then go mod tidy.
    2. Run make flatpak-sources, so that packaging/flatpak/go-sources.json follows (CI's "Flatpak sources" job checks it).
    3. Update the pin text in AGENTS.md and in plan 0009, which now say "the merged source-list/status-menu commit", to v0.3.0.
  • v0.3.0 still requires github.com/egoist/mygo v0.9.0 and go 1.27.4, the same as the current pin. So the existing MyGo fork replace stays valid.
  • Check: make check and make desktop-build.

The "Verify" job is still red, as noted in my previous review. A new head re-runs it.

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 frostyard-machines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  • main changed the fork line to "github.com/egoist/mygo v0.9.0, replaced by the owner's fork github.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, keep main's MyGo and fork text, and give the frostui pin as v0.3.0, as my previous review asks. That one edit settles both points.
  • Check after the merge:
    • go.mod keeps main's replace github.com/egoist/mygo => github.com/bketelsen/mygo … line together with the new frostui pin.
    • make flatpak-sources then 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 frostyard-machines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mod requires github.com/frostyard/frostui v0.3.0, which is frostui#9's merge commit cbba093. go.sum and packaging/flatpak/go-sources.json follow it.
    • The "Flatpak sources" job passes.
    • AGENTS.md names v0.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. bb7c87c merges main (2f540d4). AGENTS.md keeps main's MyGo v0.9.0 and fork text, and go.mod keeps the fork replace.
  • "Verify", closed.
    • a95202d removes settleWait. settle, crashy.down and waitSyncError now wait on t.Context(), so a stall ends at the test binary's -timeout, and its panic shows every goroutine.
    • The .memory/corrections.jsonl line records it.
    • Verify and Race detector both pass at this head.

Minor, not blocking:

  • The plain go test runs that make verify and make race start set no -timeout of their own, so a real stall in internal/syncer now 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/syncer an explicit -timeout in the Makefile.

Checked: the diff, and CI's results at this head. I ran no tests locally.

@frostyard-machines
frostyard-machines merged commit dec5284 into main Nov 11, 2026
11 checks passed
@frostyard-machines
frostyard-machines deleted the fix/frostui-review-pin branch November 11, 2026 14:15
@frostyard-machines

Copy link
Copy Markdown
Contributor

Cross-review at head 9d585befb2e873bb3041f15d21138eafe57bbd37, base 2f540d4b6a5d9b02414098130cfa0576cce51063 (also the merge-base).

  • Reviewer: openai/gpt-6.1-sol. Coder: Claude (Anthropic). The review is read-only and static, and covers all 12 changed paths in one pass.
    • Excluded from line review: go.sum and packaging/flatpak/go-sources.json, which got a consistency check against go.mod only.
    • Context only: frostui's sourcelist.go delta from a6a2df5 to cbba093 (v0.3.0).
  • Verdict: Ready. Blocking: none. No findings.

The reviewer's conclusions:

  • doc_test.go: the tests now finish f.Read before they release the held answer. This removes the fixture's cleanup race and does not change document behavior.
  • pairs_test.go (TestVerifyAndHistory): the hold is armed before the file changes, and it waits at "uploaded", before the push reaches the hub. Verification uses its own connection, so the assertion that the files differ still means something.
  • TestAMiddleClickOpensAFileOnlyWhenReleasedOnIt can fail. An open on press would fail its cross-row check, and a missing open would fail its final path and destination checks.
  • With settleWait gone, settle, crashy.down and waitSyncError end a stall at the test binary's -timeout (Go's default 10 min; the race job sets 25 min). That limit holds as long as the runs keep a timeout.
  • The Files source-list callbacks match frostui v0.3.0. The PR leaves no frostui behavior change unhandled, and the MyGo replace is unchanged.

CI at this head is all green, and the PR is MERGEABLE. level:L3: no risk path. Adding ready-for-human.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants