Skip to content

Commit 1182b14

Browse files
committed
[skip ci] Fix timeout in Symfony community build
FileInputHelperTest::testReadWithPasteDetectionAbortsBeyondMaxBytes() causes massive amounts of system calls with USE_ZEND_ALLOC=0, leading to timeouts. Skip this test in our build. Closes GH-22450
1 parent 98b8632 commit 1182b14

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,10 @@ jobs:
573573
php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);'
574574
# Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668
575575
php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);'
576+
# Causes massive amounts of system calls with USE_ZEND_ALLOC=0, exceeding the timeout
577+
if [ -e 'src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php' ]; then
578+
php -r '$c = file_get_contents("src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php"); $c = str_replace("public function testReadWithPasteDetectionAbortsBeyondMaxBytes()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testReadWithPasteDetectionAbortsBeyondMaxBytes()", $c); file_put_contents("src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php", $c);'
579+
fi
576580
export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
577581
X=0
578582
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do

0 commit comments

Comments
 (0)