Skip to content

tail follow unit test hangs on non-Windows: sys::Pid::dead() stub always returns false and the test is not cfg-gated #1637

Closed

Description

@caomengxuan666

Found in the captain review of PR #1626 (tail follow, #1488 wave).

The unit test follow_with_dead_writer_terminates_like_gnu hangs forever on non-Windows: the non-Windows stub of sys::Pid::dead() always returns false, and the test carries no #[cfg(windows)] gate. The Windows product and CI are unaffected; this only bites local non-Windows test runs.

Fix options (either is fine): gate the test with #[cfg(windows)], or implement a real non-Windows pid-liveness check for the stub.

Destination: small fix lane, 2.0 line. Refs #1626.

Activity

  1. added
    bug
    on Nov 14, 2026
  2. caomengxuan666 commented on Nov 14, 2026

    @caomengxuan666
    MemberAuthor

    接手:winx #1637 修法车道已开工(工作区 fix-winx-1637)。方案:按 issue 二选一,优先实现非 Windows 真实 pid 存活检查(若不可行则 cfg-gate 测试);修法 + 回归钉,首提交即 draft PR。

  3. caomengxuan666 commented on Nov 14, 2026

    @caomengxuan666
    MemberAuthor

    Closed manually by captain after PR #1668 merged (0195c57): non-Windows Pid::dead() now calls kill(pid, 0); both nails + the follow test are green on Windows CI. Refs-only PR, no auto-close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions