Skip to content

Run with parallel runner only when proc_open is not disabled#1451

Merged
ondrejmirtes merged 2 commits intophpstan:1.7.xfrom
mvorisek:fix_no_open_proc_support
Jun 22, 2022
Merged

Run with parallel runner only when proc_open is not disabled#1451
ondrejmirtes merged 2 commits intophpstan:1.7.xfrom
mvorisek:fix_no_open_proc_support

Conversation

@mvorisek
Copy link
Contributor

fixes phpstan/phpstan#7488

phpstan already accounts for disabled proc_open when detecting available CPU cores

@mvorisek mvorisek changed the title Run with parallel runner only when 2 or more processes are needed Run with parallel runner only when 2+ processes are needed Jun 21, 2022
@ondrejmirtes
Copy link
Member

I can't merge this change, it's basically a revert of a previous commit where I did this on purpose so that fatal errors happen in subprocesses and PHPStan still finishes with a nice outpur.

@mvorisek
Copy link
Contributor Author

No problem, I will update the condition to check explicitly for proc_open (this is the only function checked/used by the parallel process manager).

@mvorisek mvorisek force-pushed the fix_no_open_proc_support branch from 184f27a to f4a0685 Compare June 21, 2022 14:03
@mvorisek mvorisek changed the title Run with parallel runner only when 2+ processes are needed Run with parallel runner only when proc_open is not disabled Jun 21, 2022
@mvorisek mvorisek force-pushed the fix_no_open_proc_support branch from f4a0685 to 1687bcf Compare June 21, 2022 14:29
@mvorisek mvorisek force-pushed the fix_no_open_proc_support branch from 1687bcf to 6287d7b Compare June 21, 2022 14:30
@ondrejmirtes ondrejmirtes merged commit a6163fd into phpstan:1.7.x Jun 22, 2022
@ondrejmirtes
Copy link
Member

Thank you. Please open a new PR with an integration test in phpstan/phpstan. Do not modify an existing test but add a new one.

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.

2 participants