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

Flaky server tests on CI: DiagnosticsService startup error, ShowUI isolation browser start

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

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

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

評価

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

調査の方向性

Start with src/server/__tests__/diagnostics-service.test.ts and src/server/__tests__/show-ui-isolation.test.ts, then read startServer in src/server/index.ts and the browser startup hook. Reproduce both failures on Linux by running each test in a loop and trace the startup errors and Chrome stderr handling. Done when the cause of each intermittent failure is fixed and both tests pass at least 50 consecutive runs on Linux.

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

説明

Two server tests fail on CI from time to time and pass on a rerun. Each one blocks unrelated PRs until someone reruns the job.

1. DiagnosticsService fatal startup error on stderr

DiagnosticsService > keeps fatal startup errors visible on stderr while recording diagnostics (src/server/__tests__/diagnostics-service.test.ts). It appears in 6 of the 7 failed runs of the CI workflow before 2026-10-29 (e.g. 40896064562, 39715621460, 39713535549, 39713507980, 39381580281, 39144653837). It passed 3 out of 3 times locally on macOS.

The test starts a server on a free port, then starts a second one on the same port and expects it to exit with Failed to start server. Is port <port> in use? on stderr. In the failing run, stderr had:

[Server] Uncaught exception:
Error
    at startServer (src/server/index.ts:380:15)

startServer (src/server/index.ts) catches the error from Bun.serve and rethrows new Error(message, { cause }), where message is the original message or the fallback text. The printed error has an empty message, so either the stderr was cut off, or the error reached the handler some other way than expected. The cause is not established.

2. ShowUI page frame isolation: browser did not start

page frame isolation in a real browser (src/server/__tests__/show-ui-isolation.test.ts, added in #207) failed in run 40905539947 (PR #211, which only changes the version and the CHANGELOG). The test launches headless Chrome with --remote-debugging-port=0 and waits up to 20 s for DevTools listening on on stderr. Chrome printed nothing in that time, so the hook failed with browser did not start and no isolation check ran. It passed in both CI runs of #207. The cause is not established: a slow cold start, a startup prompt, or output going somewhere else are all possible.

What to do

  • Reproduce each on Linux (the CI runner), for example by running the test in a loop.
  • Find the cause and fix it in the server or the test, without retries or a longer timeout that only hides it.
  • Done when each test passes in a loop of at least 50 runs on Linux.
主要言語
TypeScript
スター
490
フォーク
47
平均マージ
10時間 53分
マージ済み PR(30日)
81

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

GoDiao/dreamcoder のほかの issue

GoDiao/dreamcoder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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