Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Tests: telemetry probes can exceed their 15s execFile timeout on Windows (cold tsx transpile + AV scanning)

Đang mở Phù hợp với người mới
#176 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@sean0407 đang làm issue này rồi.

Từ ngày 10/10/2026.

  • #177 của @sean0407 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/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ệ
node.js, typescript
Lĩnh vực
testing

Hướng nghiên cứu

Timeout nằm trong captureRuntime ở tests/telemetry.test.ts, nơi execFile được gọi với timeout: 15000 ở dòng 54. Hãy đọc helper này và ba test telemetry. Sau đó chạy pnpm test trên một máy mà các probe chạy chậm, hoặc suy luận từ các thời gian trong issue. Hoàn thành khi hai test telemetry được nêu tên đều pass trong một lần chạy song song đầy đủ mà không thay đổi hành vi CI. Lỗi symlink EPERM là vấn đề riêng trên Windows và nằm ngoài phạm vi của thay đổi này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happens

On Windows, pnpm test reports both telemetry tests as failures:

  • runtime telemetry carries OpenMuse attribution and the CLI-issued project identity (≈15.4s)
  • each SDK opt-out prevents telemetry with a configured project identity (≈15.2s)

Both die the same way: the probe child process is killed by the execFile timeout: 15000 at tests/telemetry.test.ts:54 with stdout: '', stderr: '', signal: 'SIGTERM' — it never reaches its console.log.

Environment
  • Windows 10 (10.0.18363), Node 24.20.0, pnpm 11.19.0, tsx 4.23.13
  • Reproduces on a clean clone with no local changes; the 149 other tests pass
Diagnosis

Each probe spawns a fresh node --import <tsx loader> --eval that re-transpiles the whole server dependency graph on the fly. Measured on this machine:

Scenario Result
telemetry file alone all 3 pass (7.2s / 32.9s / 7.8s per test)
staged probe from a temp cwd, alone app.ts import ≈5.9–6.4s, full probe ≈8.3s, exits cleanly
same probe inside full pnpm test (parallel files) child killed at the 15s limit, empty output

So the probes are correct; the 15s budget is just too tight once tsx's cold transpile is slowed by Windows Defender real-time scanning over node_modules/.pnpm and by the rest of the suite running in parallel. One solo run already took ~33s wall for its two probes, so headroom is thin on Windows even without load. CI (ubuntu, no AV, warm cache) is unaffected.

Suggested directions

Happy to send a PR for whichever fits:

  1. Raise the execFile timeout in captureRuntime from 15_000 to e.g. 60_000 (CI timing unchanged in practice; Windows stops flaking).
  2. Optionally add a CONTRIBUTING note for Windows contributors about Defender exclusions for the repo directory.
Related Windows observation

worker recovery preserves downloads when metadata cannot be inspected also fails on this machine with EPERM: operation not permitted, symlink ... — non-admin Windows can't create symlinks without Developer Mode. I can file that separately, or fold both into a short CONTRIBUTING "Windows notes" paragraph — maintainer preference welcome.

AI-use note: the failure was reproduced, timed and root-caused with an AI assistant's help; the numbers above are from runs on my machine.

Ngôn ngữ chính
TypeScript
Star
5.2k
Fork
730
Merge trung bình
3 ngày 20 giờ
Pull request đã merge (30 ngày)
96

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CopilotKit/openmuse

Tất cả issue của CopilotKit/openmuse

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.