8585 with :
8686 runTestsParameters : >-
8787 --asan -x
88+ - name : Extra tests
89+ uses : ./.github/actions/extra-tests
8890 ALPINE :
8991 if : inputs.run_alpine
9092 name : ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS
@@ -134,6 +136,8 @@ jobs:
134136 --asan -x
135137 -d zend_extension=opcache.so
136138 -d opcache.enable_cli=1
139+ - name : Extra tests
140+ uses : ./.github/actions/extra-tests
137141 - name : Notify Slack
138142 if : failure()
139143 uses : ./.github/actions/notify-slack
@@ -266,6 +270,8 @@ jobs:
266270 ${{ matrix.run_tests_parameters }}
267271 -d zend_extension=opcache.so
268272 -d opcache.enable_cli=1
273+ - name : Extra tests
274+ uses : ./.github/actions/extra-tests
269275 - name : Verify generated files are up to date
270276 uses : ./.github/actions/verify-generated-files
271277 - name : Notify Slack
@@ -355,6 +361,8 @@ jobs:
355361 ${{ matrix.run_tests_parameters }}
356362 -d zend_extension=opcache.so
357363 -d opcache.enable_cli=1
364+ - name : Extra tests
365+ uses : ./.github/actions/extra-tests
358366 - name : Notify Slack
359367 if : failure()
360368 uses : ./.github/actions/notify-slack
@@ -414,6 +422,8 @@ jobs:
414422 runTestsParameters : >-
415423 -d zend_extension=opcache.so
416424 -d opcache.enable_cli=1
425+ - name : Extra tests
426+ uses : ./.github/actions/extra-tests
417427 - name : Verify generated files are up to date
418428 uses : ./.github/actions/verify-generated-files
419429 - name : Notify Slack
@@ -555,14 +565,17 @@ jobs:
555565 repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
556566 X=0
557567 for repository in $repositories; do
558- printf "Testing amp/%s\n" " $repository"
568+ echo "::group:: $repository"
559569 git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
560570 cd "amphp-$repository"
561571 git rev-parse HEAD
562572 php /usr/bin/composer install --no-progress --ignore-platform-req=php+
573+ EXIT_CODE=0
563574 vendor/bin/phpunit || EXIT_CODE=$?
575+ echo -e "\n::endgroup::"
564576 if [ ${EXIT_CODE:-0} -gt 128 ]; then
565577 X=1;
578+ echo "Failed"
566579 fi
567580 cd ..
568581 done
@@ -586,14 +599,17 @@ jobs:
586599 repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
587600 X=0
588601 for repository in $repositories; do
589- printf "Testing reactphp/%s\n" " $repository"
602+ echo "::group:: $repository"
590603 git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
591604 cd "reactphp-$repository"
592605 git rev-parse HEAD
593606 php /usr/bin/composer install --no-progress --ignore-platform-req=php+
607+ EXIT_CODE=0
594608 vendor/bin/phpunit || EXIT_CODE=$?
609+ echo -e "\n::endgroup::"
595610 if [ $[EXIT_CODE:-0} -gt 128 ]; then
596611 X=1;
612+ echo "Failed"
597613 fi
598614 cd ..
599615 done
@@ -618,15 +634,19 @@ jobs:
618634 php /usr/bin/composer install --no-progress --ignore-platform-req=php+
619635 php ./phpunit install
620636 # Test causes a heap-buffer-overflow but I cannot reproduce it locally...
621- php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "/** @group skip */ \n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);'
637+ 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);'
622638 # Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668
623- php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "/** @group skip */ \n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);'
639+ 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);'
624640 export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
625641 X=0
626642 for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
627- php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$?
643+ echo "::group::$component"
644+ EXIT_CODE=0
645+ php ./phpunit $component --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group transient --exclude-group skip || EXIT_CODE=$?
646+ echo -e "\n::endgroup::"
628647 if [ ${EXIT_CODE:-0} -gt 128 ]; then
629648 X=1;
649+ echo "Failed"
630650 fi
631651 done
632652 exit $X
@@ -1066,6 +1086,7 @@ jobs:
10661086 - zts : ${{ !inputs.run_freebsd_zts && true || '*never*' }}
10671087 name : " FREEBSD_${{ matrix.zts && 'ZTS' || 'NTS' }}"
10681088 runs-on : ubuntu-latest
1089+ timeout-minutes : 50
10691090 steps :
10701091 - name : git checkout
10711092 uses : actions/checkout@v4
@@ -1076,3 +1097,4 @@ jobs:
10761097 with :
10771098 configurationParameters : >-
10781099 --${{ matrix.zts && 'enable' || 'disable' }}-zts
1100+ runExtraTests : true
0 commit comments