Skip to content

chore: use ps-list instead of pidtree to remove wmic - #5479

Merged
JoshuaKGoldberg merged 2 commits into
mainfrom
fix-5467
Oct 2, 2025
Merged

JoshuaKGoldberg merged 2 commits into
mainfrom
fix-5467

Conversation

@mark-wiemer

@mark-wiemer mark-wiemer commented Oct 2, 2025 •

Copy link
Copy Markdown
Member

PR Checklist

Overview

pidtree relies on wmic, an outdated Windows utility which is no longer included in the latest versions of Windows Server. GitHub Actions uses Windows Server, so any test using wmic fails, including our 2 tests that use pidtree. We are able to switch to a more modern ps-list (no new deps in package-lock) to fix this.

Took this opportunity to simplify the tests as well: They now expect a list of falses indicating the processes don't exist. Although this may harm debuggability, these tests haven't failed in years and readability feels more important for future maintenance work.

ps-list requires Node 20+, so this is blocked on #5477

@mark-wiemer mark-wiemer added the status: blocked Waiting for something else to be resolved label Oct 2, 2025
@JoshuaKGoldberg JoshuaKGoldberg removed the status: blocked Waiting for something else to be resolved label Oct 2, 2025

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Person in green suit dancing in front of an RV. Caption: GREEN

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Praise] 👌 very clean in this file, nice!

Comment thread package.json
"needle": "^2.5.0",
"npm-run-all2": "^6.2.0",
"nyc": "^15.1.0",
"pidtree": "^0.5.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Non-Actionable] It is kind of funny to me that pidtree's README.md mentions it exists because a previous project is unmaintained. And pidtree itself is now unmaintained, last commit 3 years ago.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the circle of life :)

@JoshuaKGoldberg
JoshuaKGoldberg merged commit b2985b3 into main Oct 2, 2025
81 checks passed
@JoshuaKGoldberg
JoshuaKGoldberg deleted the fix-5467 branch October 2, 2025 12:10
lennonnikolas pushed a commit to lennonnikolas/mocha that referenced this pull request Jan 24, 2026
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🛠 Repo: test-node:integration on windows-latest for --parallel tests

2 participants