[Console] Skip broken tests on OSX #57619
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On OSX running the following command results in the test being abrutply terminated:
I could narrow it down to
src/Symfony/Component/Console/Tests/ApplicationTest.php
. I think this is a bug from the pcntl extensions as running any problematic test individual result in a successful test and I cannot find any static state that should interfere with this (at least at the Symfony code level).My observations are that the application instance, which is the
$this
, of this closure, changes when executing the whole test case.I'm unsure where to start to report this to PHP and would appreciate some help there or at least to confirm this is not a Symfony issue but a PHP one.
Meanwhile I could observe this behaviour on different machines including @chalasr. So I'm proposing to disable those problematic tests for OSX meanwhile as otherwise the test suite is not even executable on OSX.
FWIW ran it with:
OSX: 14.5 (23F79) on M3
PHP: 8.3.8
pcntl enabled (compiled PHP with
--enable-pcntl
)