Find what keeps macOS CLI processes alive after commands
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- macos, node.js, typescript
Hướng nghiên cứu
Start with packages/cli/src/lib/force-exit.ts and trace the command shutdown path that calls scheduleForceExit(). The issue asks to identify any event-loop handle keeping commands alive on macOS; compare findings with the earlier fixes in getsentry/cli#1488 and the reported exit telemetry loss in #1448. Done means the lingering handle is reproduced and identified, with evidence that supports deciding whether the backstop is still needed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On macOS, scheduleForceExit() (packages/cli/src/lib/force-exit.ts) arms an unref'd 100 ms process.exit() after every command. It is a backstop, not a fix: we don't know which handle, if any, still keeps the event loop alive after a command finishes.
- getsentry/cli#1237: commands hung after writing their output. getsentry/cli#1396 added the backstop for every command.
- getsentry/cli#1488 then closed undici's global dispatcher, which fixed the known cause (pooled keep-alive sockets). The backstop stayed for "a libuv refcount quirk", which nobody has reproduced since.
- The backstop has a cost: on macOS it cuts off the exit telemetry flush (#1448).
- History: in getsentry/cli#782, #833, and #835, a forced exit after
initwas later removed once the real leak was found. That leak was the workaround itself. - #1955 adds the
sentry-cli/no-process-exitlint rule. The backstop is one of its allowed exceptions, so it should not get wider (#1950).
Raised by BYK in review of #1955.
--
- Ngôn ngữ chính
- TypeScript
- Star
- 957
- Fork
- 174
- Merge trung bình
- 22 giờ 56 phút
- Pull request đã merge (30 ngày)
- 345
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 getsentry/toolkit
-
CLI enhancement MCP
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
getsentry/toolkit#1908 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs MCP URL normalization retains query strings and fragmentsCó thể đã có người làm @pcbeingused333 đã nhận 5 ngày trước. Đang mởbug MCP
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
getsentry/toolkit#1618 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/toolkit#1471 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
getsentry/toolkit#1975 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Release v4 as the Sentry CLI, replacing sentry-cliCó thể đã có người làm @BYK đã nhận 1 ngày trước. Đang mở
getsentry/toolkit#1965 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/toolkit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
appandflow/stim#5258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/docs framework/hugo help wanted language/markdown
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
lingdojo/kana-dojo#33660 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
drizzle-team/drizzle-orm#6639 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100