Skip to content

Conversation

@swissspidy
Copy link
Member

Discovered while working on wp-cli/wp-cli-tests#274, this improves sub-process creation on Windows by redirecting output to files

Previously, created processes during Behat tests would just hang indefinitely.

@codecov
Copy link

codecov bot commented Oct 12, 2025

Codecov Report

❌ Patch coverage is 34.78261% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
php/WP_CLI/Process.php 34.78% 15 Missing ⚠️

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy marked this pull request as ready for review October 12, 2025 18:22
@swissspidy swissspidy requested a review from a team as a code owner October 12, 2025 18:22
@mrsdizzie
Copy link
Member

Is there a way to update wp-cli/wp-cli-tests#274 temporarily to use this branch and see that it fixes the problem? Looks OK at a glance but so did the previous code : )

@wojsmol
Copy link
Contributor

wojsmol commented Oct 22, 2025

Update branch is a matter of PR against wp-cli/wp-cli-tests#274 branch and it meagre.

@swissspidy
Copy link
Member Author

I think that is always a bit messy with Composer because both packages depend on each other.

But before wp-cli/wp-cli-tests@b44d869 I did use this changed class in that PR and it worked great. I just reverted it there for the review.

@swissspidy
Copy link
Member Author

nvm, it seems to work: wp-cli/wp-cli-tests#274

@swissspidy swissspidy merged commit faf9497 into main Oct 22, 2025
50 of 51 checks passed
@swissspidy swissspidy deleted the try/win branch October 22, 2025 19:19
@swissspidy swissspidy mentioned this pull request Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants