Tests: telemetry probes can exceed their 15s execFile timeout on Windows (cold tsx transpile + AV scanning)
Maintainer thường phản hồi trong vòng 1 ngày
Đá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:
- Raise the
execFiletimeout incaptureRuntimefrom15_000to e.g.60_000(CI timing unchanged in practice; Windows stops flaking). - 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
- 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 CopilotKit/openmuse
-
"Contains" page watch never matches when its text has a trailing spaceCó thể đã có người làm @RaphaelFakhri đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
CopilotKit/openmuse#184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] Dark modeĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 24/100
CopilotKit/openmuse#181 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
CopilotKit/openmuse#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
CopilotKit/openmuse#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
CopilotKit/openmuse#78 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CopilotKit/openmuse
Issue tương tự
-
Edit: Tele Posadas HDĐang mởcheck:passed streams:edit
Độ 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
-
area:mcp bug has repro platform:vscode regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anthropics/claude-code#103970 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
skillopt: success-reflect prompt omits the edit schema, so every success-only edit is droppedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Workspace secrets/constants containing "$" are corrupted when resolved in data source optionsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sdk-typescript: unquoted COPY globs in shell form are silently dropped from the image build contextĐang mởbug javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày