fix(e2e): docs_site test intermittently times out
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, nodejs
- Lĩnh vực
- ci-cd, testing-qa
Hướng nghiên cứu
Timeout nằm trong e2e/test/commands/create/docs_site/docs_site_test.dart; cách sửa là tăng nó lên Duration(minutes: 5), khớp với test flame_game. Tùy chọn, thêm --no-audit --no-fund --prefer-offline vào lệnh npm install mà test chạy. Chạy file test đó trong e2e để xác nhận nó vượt qua, và kiểm tra xem lỗi teardown Directory not empty còn xuất hiện hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Raise the timeout in
docs_site_test.darttoDuration(minutes: 5), matchingflame_game. - Optionally, speed up the install with
npm install --no-audit --no-fund --prefer-offline. Caching npm throughactions/setup-nodewon't work as-is, because it needs a lockfile and the template doesn't ship one.
- Ngôn ngữ chính
- Dart
- Star
- 2.4k
- Fork
- 244
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của VeryGoodOpenSource/very_good_cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
VeryGoodOpenSource/very_good_cli#1783 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
VeryGoodOpenSource/very_good_cli#1784 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
VeryGoodOpenSource/very_good_cli#1782 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 55/100
VeryGoodOpenSource/very_good_cli#1781 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
VeryGoodOpenSource/very_good_cli#1780 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của VeryGoodOpenSource/very_good_cli
Issue tương tự
-
area::build area::tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
linagora/twake-on-matrix#3504 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Packages] [flutter_shaders] InkWell shader golden test fails on Flutter stable and Master channelsĐang mởfrom: manual-qa
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
README highlightsĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
patarapolw/lingua_srs#22 ·
-
interruptRestart fails with "Tool <name> not found" for namespaced tools (ns/tool)Có thể đã có người làm @esrakadah đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
genkit-ai/genkit-dart#657 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug Cosmetic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
linagora/tmail-flutter#5067 ·
Maintainer thường phản hồi trong vòng 1 ngày