macos: TestInputMethodCommitAndSinkCandidates times out waiting for focus after other window tests
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 684
- Fork
- 41
- Merge medio
- 8h 8m
- PR unite (30g)
- 911
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nsgo-dev/nsgo
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
linux: a fitted panel realized before its first fit keeps its options sizeForse già presa @houko l’ha presa oggi. Aperta
nsgo-dev/nsgo#2096 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
base: Radio has no LabelFunc or HintFunc, unlike Checkbox and ButtonForse già presa @houko l’ha presa oggi. Aperta
nsgo-dev/nsgo#2059 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never addedForse già presa @oneo-me l’ha presa oggi. Aperta
nsgo-dev/nsgo#2053 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
nsgotest: no step clicks a tray icon, so a tray's menu and panel cannot be testedForse già presa @houko l’ha presa oggi. Aperta
nsgo-dev/nsgo#2051 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nsgo-dev/nsgo
Issue simili
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaudeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
bug github_actions good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
libr-forum/libr#77 ·
I maintainer di solito rispondono entro 1 giorno
-
[UI] Guard webApis against undefined window in SSR environmentsForse già presa @madhavzanwar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno