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
@@ -132,8 +134,9 @@ jobs:
132134 jitType : tracing
133135 runTestsParameters : >-
134136 --asan -x
135- -d zend_extension=opcache.so
136137 -d opcache.enable_cli=1
138+ - name : Extra tests
139+ uses : ./.github/actions/extra-tests
137140 - name : Notify Slack
138141 if : failure()
139142 uses : ./.github/actions/notify-slack
@@ -246,14 +249,12 @@ jobs:
246249 jitType : tracing
247250 runTestsParameters : >-
248251 ${{ matrix.run_tests_parameters }}
249- -d zend_extension=opcache.so
250252 -d opcache.enable_cli=1
251253 - name : Test OpCache
252254 uses : ./.github/actions/test-linux
253255 with :
254256 runTestsParameters : >-
255257 ${{ matrix.run_tests_parameters }}
256- -d zend_extension=opcache.so
257258 -d opcache.enable_cli=1
258259 - name : Test Function JIT
259260 # ASAN frequently timeouts. Each test run takes ~90 minutes, we can
@@ -264,8 +265,9 @@ jobs:
264265 jitType : function
265266 runTestsParameters : >-
266267 ${{ matrix.run_tests_parameters }}
267- -d zend_extension=opcache.so
268268 -d opcache.enable_cli=1
269+ - name : Extra tests
270+ uses : ./.github/actions/extra-tests
269271 - name : Verify generated files are up to date
270272 uses : ./.github/actions/verify-generated-files
271273 - name : Notify Slack
@@ -338,23 +340,22 @@ jobs:
338340 jitType : tracing
339341 runTestsParameters : >-
340342 ${{ matrix.run_tests_parameters }}
341- -d zend_extension=opcache.so
342343 -d opcache.enable_cli=1
343344 - name : Test OpCache
344345 uses : ./.github/actions/test-linux
345346 with :
346347 runTestsParameters : >-
347348 ${{ matrix.run_tests_parameters }}
348- -d zend_extension=opcache.so
349349 -d opcache.enable_cli=1
350350 - name : Test Function JIT
351351 uses : ./.github/actions/test-linux
352352 with :
353353 jitType : function
354354 runTestsParameters : >-
355355 ${{ matrix.run_tests_parameters }}
356- -d zend_extension=opcache.so
357356 -d opcache.enable_cli=1
357+ - name : Extra tests
358+ uses : ./.github/actions/extra-tests
358359 - name : Notify Slack
359360 if : failure()
360361 uses : ./.github/actions/notify-slack
@@ -398,22 +399,21 @@ jobs:
398399 with :
399400 jitType : tracing
400401 runTestsParameters : >-
401- -d zend_extension=opcache.so
402402 -d opcache.enable_cli=1
403403 - name : Test OpCache
404404 uses : ./.github/actions/test-macos
405405 with :
406406 runTestsParameters : >-
407- -d zend_extension=opcache.so
408407 -d opcache.enable_cli=1
409408 - name : Test Function JIT
410409 if : matrix.os != '14' || !matrix.zts
411410 uses : ./.github/actions/test-macos
412411 with :
413412 jitType : function
414413 runTestsParameters : >-
415- -d zend_extension=opcache.so
416414 -d opcache.enable_cli=1
415+ - name : Extra tests
416+ uses : ./.github/actions/extra-tests
417417 - name : Verify generated files are up to date
418418 uses : ./.github/actions/verify-generated-files
419419 - name : Notify Slack
@@ -474,7 +474,6 @@ jobs:
474474 with :
475475 jitType : tracing
476476 runTestsParameters : >-
477- -d zend_extension=opcache.so
478477 -d opcache.enable_cli=1
479478 - uses : codecov/codecov-action@v4
480479 if : ${{ !cancelled() }}
@@ -528,7 +527,6 @@ jobs:
528527 - name : Enable Opcache
529528 run : |
530529 echo memory_limit=-1 >> /etc/php.d/opcache.ini
531- echo zend_extension=opcache.so > /etc/php.d/opcache.ini
532530 echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
533531 echo opcache.enable=1 >> /etc/php.d/opcache.ini
534532 echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
@@ -555,14 +553,17 @@ jobs:
555553 repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
556554 X=0
557555 for repository in $repositories; do
558- printf "Testing amp/%s\n" " $repository"
556+ echo "::group:: $repository"
559557 git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
560558 cd "amphp-$repository"
561559 git rev-parse HEAD
562560 php /usr/bin/composer install --no-progress --ignore-platform-req=php+
561+ EXIT_CODE=0
563562 vendor/bin/phpunit || EXIT_CODE=$?
563+ echo -e "\n::endgroup::"
564564 if [ ${EXIT_CODE:-0} -gt 128 ]; then
565565 X=1;
566+ echo "Failed"
566567 fi
567568 cd ..
568569 done
@@ -586,14 +587,17 @@ jobs:
586587 repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
587588 X=0
588589 for repository in $repositories; do
589- printf "Testing reactphp/%s\n" " $repository"
590+ echo "::group:: $repository"
590591 git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
591592 cd "reactphp-$repository"
592593 git rev-parse HEAD
593594 php /usr/bin/composer install --no-progress --ignore-platform-req=php+
595+ EXIT_CODE=0
594596 vendor/bin/phpunit || EXIT_CODE=$?
597+ echo -e "\n::endgroup::"
595598 if [ $[EXIT_CODE:-0} -gt 128 ]; then
596599 X=1;
600+ echo "Failed"
597601 fi
598602 cd ..
599603 done
@@ -618,15 +622,19 @@ jobs:
618622 php /usr/bin/composer install --no-progress --ignore-platform-req=php+
619623 php ./phpunit install
620624 # 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);'
625+ 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);'
622626 # 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);'
627+ 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);'
624628 export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
625629 X=0
626630 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=$?
631+ echo "::group::$component"
632+ EXIT_CODE=0
633+ php ./phpunit $component --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group transient --exclude-group skip || EXIT_CODE=$?
634+ echo -e "\n::endgroup::"
628635 if [ ${EXIT_CODE:-0} -gt 128 ]; then
629636 X=1;
637+ echo "Failed"
630638 fi
631639 done
632640 exit $X
@@ -719,37 +727,32 @@ jobs:
719727 uses : ./.github/actions/test-linux
720728 with :
721729 runTestsParameters : >-
722- -d zend_extension=opcache.so
723730 -d opcache.enable_cli=1
724731 --file-cache-prime
725732 - name : Test File Cache (prime shm, use shm)
726733 uses : ./.github/actions/test-linux
727734 with :
728735 runTestsParameters : >-
729- -d zend_extension=opcache.so
730736 -d opcache.enable_cli=1
731737 --file-cache-use
732738 - name : Test File Cache (prime shm, use file)
733739 uses : ./.github/actions/test-linux
734740 with :
735741 runTestsParameters : >-
736- -d zend_extension=opcache.so
737742 -d opcache.enable_cli=1
738743 --file-cache-use
739744 -d opcache.file_cache_only=1
740745 - name : Test File Cache Only (prime)
741746 uses : ./.github/actions/test-linux
742747 with :
743748 runTestsParameters : >-
744- -d zend_extension=opcache.so
745749 -d opcache.enable_cli=1
746750 --file-cache-prime
747751 -d opcache.file_cache_only=1
748752 - name : Test File Cache Only (use)
749753 uses : ./.github/actions/test-linux
750754 with :
751755 runTestsParameters : >-
752- -d zend_extension=opcache.so
753756 -d opcache.enable_cli=1
754757 --file-cache-use
755758 -d opcache.file_cache_only=1
@@ -843,7 +846,6 @@ jobs:
843846 with :
844847 runTestsParameters : >-
845848 --msan
846- -d zend_extension=opcache.so
847849 -d opcache.enable_cli=1
848850 - name : Verify generated files are up to date
849851 uses : ./.github/actions/verify-generated-files
@@ -1076,3 +1078,4 @@ jobs:
10761078 with :
10771079 configurationParameters : >-
10781080 --${{ matrix.zts && 'enable' || 'disable' }}-zts
1081+ runExtraTests : true
0 commit comments