Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

An extra setup Escape can close Home in the tagged TUI test

オープン
#1,481 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
cli, testing-qa

調査の方向性

Start in internal/e2e/tmux_test.go at skipSetup around line 247, then read the setupIsUp predicate around line 273 and the tagged TestHomeRestoredNavigationNoModel/180 subtest. Run the stated e2e test and trace the helper's scripted transitions. Done means the delayed transition repeatedly leaves the test on Home, the unit test proves no Escape is sent after Home appears, and the timing assumption is recorded in invalidates.

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

説明

area:tests bug hygiene sev:papercut

Seen on dev@debffabf6. Surfaced while verifying #1389; not introduced by it.

What happened

TestHomeRestoredNavigationNoModel/180 failed once under load when skipSetup sent another Escape after setup had already disappeared. That Escape landed on Home and closed it. The helper checks the screen after each press but waits 900 ms before checking; a transition within that interval can put the next key on a different page. This is one observed flake, not a measured failure rate.

Replication

Deterministic (no model). In the tagged e2e rig, script setup to disappear immediately after an Escape while the next captured frame still contains setup text briefly. Call skipSetup; its loop can issue another Escape, which Home interprets as close. Assert the final page is Home. The real subtest is go test -tags e2e -run 'TestHomeRestoredNavigationNoModel/180' ./internal/e2e/.

Where

internal/e2e/tmux_test.go:247 at dev@debffabf6, skipSetup, sends up to six Escapes separated by a fixed sleep; its screen predicate is setupIsUp at :273.

The fix

Wait for a confirmed transition to the target page after each setup action, and stop sending Escape once that transition is observed.

Acceptance

  • e2e: the 180-column tagged subtest repeatedly ends on Home under a delayed setup transition.
  • Unit: a scripted transition test proves the helper sends no Escape after Home appears.
  • Record the former timing assumption in the test change entry's invalidates.
主要言語
Go
スター
115
フォーク
14
平均マージ
9時間 38分
マージ済み PR(30日)
730

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Agent-Field/CodeAF のほかの issue

Agent-Field/CodeAF の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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