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

fix(e2e): docs_site test intermittently times out

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

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

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

評価

難易度
2/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, nodejs
領域
ci-cd, testing-qa

調査の方向性

タイムアウトは e2e/test/commands/create/docs_site/docs_site_test.dart にあります。修正方法は、flame_game のテストに合わせて Duration(minutes: 5) に引き上げることです。任意で、テストが実行する npm install の呼び出しに --no-audit --no-fund --prefer-offline を追加できます。e2e でそのテストファイルを実行して合格することを確認し、Directory not empty という teardown エラーが出なくなったかを確認してください。

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

説明

Description

The create docs_site e2e test (e2e/test/commands/create/docs_site/docs_site_test.dart) intermittently times out on main.

Failing run: https://github.com/VeryGoodOpenSource/very_good_cli/actions/runs/37757567540/job/113245773965

TimeoutException after 0:02:00.000000: Test timed out after 2 minutes.
FileSystemException: Deletion failed, path = '/tmp/MCMMJN' (OS Error: Directory not empty, errno = 39)

The failing commit (#1756) is unrelated to docs_site, and the following run on main (37779724241) passed on the same code, so this is flakiness, not a regression.

Root cause

The test has a 2-minute timeout, but it normally takes almost that long:

Run Result "Run Tests (e2e)" step duration
35327672012 ✅ 1m52s
35616186431 ✅ 1m47s
36122147301 ✅ 1m49s
37757567540 ❌ 2m15s (timeout)

Most of the time goes to npm install. The generated project has no package-lock.json, and CI has no npm cache, so every run installs ~1,300 packages fresh from the registry. Timing each step locally:

Step Duration
npm install 72s
npm run format 1s
npm run lint 1s
npm run build 8s

On CI the time depends on registry speed, so the test sometimes runs past the limit.

The Directory not empty error is a side effect: the test teardown deletes the temp directory while npm is still writing to it after the timeout.

The 2-minute timeout was copied from the Dart/Flutter e2e tests. The other tests that install heavy dependencies already use longer limits: flame_game has 5 minutes and flutter_plugin has 8.

Proposed fix

  1. Raise the timeout in docs_site_test.dart to Duration(minutes: 5), matching flame_game.
  2. Optionally, speed up the install with npm install --no-audit --no-fund --prefer-offline. Caching npm through actions/setup-node won't work as-is, because it needs a lockfile and the template doesn't ship one.
主要言語
Dart
スター
2.4k
フォーク
244
平均マージ
1日 4時間
マージ済み PR(30日)
25

環境構築

はじめの一歩

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

VeryGoodOpenSource/very_good_cli のほかの issue

VeryGoodOpenSource/very_good_cli の issue をすべて見る

似ている issue

Dart の issue をもっと見る

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

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