macos: TestInputMethodCommitAndSinkCandidates times out waiting for focus after other window tests
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Context
TestInputMethodCommitAndSinkCandidates (internal/platform/macos/input_native_test.go) runs itself in a child process (NSGO_TEST_IME_PROCESS), sends key("mod+1") and waits up to 5 s for the "single" input to take focus (waitFor("single focused", ...) at line 178). It fails intermittently:
--- FAIL: TestInputMethodCommitAndSinkCandidates (5.21s)
input_native_test.go:34: exit status 1
=== RUN TestInputMethodCommitAndSinkCandidates
input_native_test.go:317: timed out waiting for single focused (log=[])
The empty log means the mod+1 binding never reached the app.
Why it matters
It fails about 2 runs in 6 on main when other window tests run in the same package, which makes the macOS job unreliable for unrelated changes.
Repro
On a Mac over SSH: go test -count=6 ./internal/platform/macos/ -run 'TestInputMethodCommitAndSinkCandidates|Direction' failed 2 of 6 on main. Run alone it did not fail in 11 runs, so it looks like key-window or focus timing after an earlier window test, rather than an input-method bug.
Proposal
Before sending mod+1, wait until the test window is the key window (and the app is active), the way other native input tests wait for focus, instead of sending the key as soon as the child starts. If the child can't become key, fail with that reason rather than a focus timeout.
Acceptance
- The repro above passes
-count=20.
- 主要言語
- Go
- スター
- 684
- フォーク
- 41
- 平均マージ
- 8時間 8分
- マージ済み PR(30日)
- 911
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nsgo-dev/nsgo のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
linux: a fitted panel realized before its first fit keeps its options size対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2096 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
base: Radio has no LabelFunc or HintFunc, unlike Checkbox and Button対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2059 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never added対応中かも @oneo-me が今日担当しました。 オープン
nsgo-dev/nsgo#2053 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
nsgotest: no step clicks a tray icon, so a tray's menu and panel cannot be tested対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2051 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaudeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
go good first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
bug github_actions good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
libr-forum/libr#77 ·
メンテナーはふだん 1 日以内に返信
-
[UI] Guard webApis against undefined window in SSR environments対応中かも @madhavzanwar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信