agentop tui: TestRunOptionsWiringEndpointBypass hangs intermittently on Windows

オープン 初心者向け
#2,158 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
cli, testing

調査の方向性

cmd/agentop/tui/picker_test.goから始めて、TestRunOptionsWiringEndpointBypassがどのようにtui.Runを呼び出し、Bubble Teaの入力を設定するかを追ってください。issueに記載されたコマンドを使ってWindowsで再現し、選択した入力設定によってstdinのブロックされた読み取りが防がれるか確認してください。Windowsで繰り返し実行してもタイムアウトせずに完了すれば成功です。

索引モデルが issue の本文から書いたものです。

説明

TestRunOptionsWiringEndpointBypass (cmd/agentop/tui/picker_test.go) sometimes hangs on Windows until go test times out. Seen on main at 9c6a8d76.

Reproduce (Windows 11, Go, no console attached to stdin):

cd cmd/agentop
go test -count=5 -timeout 60s -run TestRunOptionsWiringEndpointBypass ./tui/

Some runs pass in about 5 s. One of the five hangs and hits the 60 s timeout. A full go test ./tui/ then stops at Go's 10-minute default.

Where it hangs (goroutine dump at the timeout):

  • The test calls tui.Run with a context that's already cancelled.
  • bubbletea.(*Program).Run waits in semacquire for its read loop to finish.
  • The read loop (readLoop → readInputs → readAnsiInputs) is stuck in a blocking stdin read (syscall), which bubbletea's cancel reader can't interrupt on Windows when stdin isn't a console.

Possible fixes:

  • pass tea.WithInput(nil) (or an empty reader) when the test drives Run;
  • or give RunOptions an input override for tests;
  • or skip the test on Windows.

Assisted-By: Claude (Anthropic AI) [email protected]

主要言語
Go
スター
31
フォーク
49
平均マージ
9時間 43分
マージ済み PR(30日)
367

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rossoctl/cortex のほかの issue

rossoctl/cortex の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。