From 792c6b97e5194cac933f7e45405d5d6c0c9577f3 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Fri, 17 Mar 2023 15:25:02 +0100 Subject: [PATCH 1/3] Add AMPHP, ReactPHP, Revolt PHP in community job --- .github/workflows/nightly.yml | 61 +++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4617343647410..2073bdfae4c09 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -360,6 +360,27 @@ jobs: echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini + + - name: Test AMPHP + if: matrix.branch.ref != 'PHP-8.0' + run: | + repositories="amp byte-stream cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server" + X=0 + for repository in $repositories; do + printf "Testing amp/%s\n" "$repository" + git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1 + cd "amphp-$repository" + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-reqs + export ASAN_OPTIONS=exitcode=139 + vendor/bin/phpunit || EXIT_CODE=$? + if [ ${EXIT_CODE:-0} -gt 128 ]; then + X=1; + fi + cd .. + done + exit $X + - name: Test Laravel if: matrix.branch.ref != 'PHP-8.0' run: | @@ -371,9 +392,43 @@ jobs: php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("*/\n public function testSharedGet()", "* @group skip\n */\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);' export ASAN_OPTIONS=exitcode=139 php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$? - if [ $EXIT_CODE -gt 128 ]; then + if [ ${EXIT_CODE:-0} -gt 128 ]; then exit 1 fi + + - name: Test ReactPHP + if: matrix.branch.ref != 'PHP-8.0' + run: | + repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream" + X=0 + for repository in $repositories; do + printf "Testing reactphp/%s\n" "$repository" + git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1 + cd "reactphp-$repository" + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-reqs + export ASAN_OPTIONS=exitcode=139 + vendor/bin/phpunit || EXIT_CODE=$? + if [ $[EXIT_CODE:-0} -gt 128 ]; then + X=1; + fi + cd .. + done + exit $X + + - name: Test Revolt PHP + if: matrix.branch.ref != 'PHP-8.0' + run: | + git clone https://github.com/revoltphp/event-loop.git --depth=1 + cd event-loop + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-reqs + export ASAN_OPTIONS=exitcode=139 + vendor/bin/phpunit || EXIT_CODE=$? + if [ ${EXIT_CODE:-0} -gt 128 ]; then + exit 1 + fi + - name: Test Symfony if: matrix.branch.ref != 'PHP-8.0' run: | @@ -391,7 +446,7 @@ jobs: X=0 for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$? - if [ $EXIT_CODE -gt 128 ]; then + if [ ${EXIT_CODE:-0} -gt 128 ]; then X=1; fi done @@ -405,7 +460,7 @@ jobs: export ASAN_OPTIONS=exitcode=139 php /usr/bin/composer install --no-progress --ignore-platform-reqs php ./phpunit || EXIT_CODE=$? - if [ $EXIT_CODE -gt 128 ]; then + if [ ${EXIT_CODE:-0} -gt 128 ]; then exit 1 fi - name: 'Symfony Preloading' From f7e4b64d7a160d06f0e32189d460ac0a09573552 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Fri, 7 Jul 2023 14:26:49 +0200 Subject: [PATCH 2/3] Remove amp/byte-stream, as it's unstable --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2073bdfae4c09..619b998fd42da 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -364,7 +364,7 @@ jobs: - name: Test AMPHP if: matrix.branch.ref != 'PHP-8.0' run: | - repositories="amp byte-stream cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server" + repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server" X=0 for repository in $repositories; do printf "Testing amp/%s\n" "$repository" From 10f383fecc759177db4f8e13c969d1aa8ae1f899 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Fri, 21 Jul 2023 12:26:05 +0200 Subject: [PATCH 3/3] WS --- .github/workflows/nightly.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 619b998fd42da..3d72752a23a88 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -360,7 +360,6 @@ jobs: echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini - - name: Test AMPHP if: matrix.branch.ref != 'PHP-8.0' run: | @@ -380,7 +379,6 @@ jobs: cd .. done exit $X - - name: Test Laravel if: matrix.branch.ref != 'PHP-8.0' run: | @@ -395,7 +393,6 @@ jobs: if [ ${EXIT_CODE:-0} -gt 128 ]; then exit 1 fi - - name: Test ReactPHP if: matrix.branch.ref != 'PHP-8.0' run: | @@ -415,7 +412,6 @@ jobs: cd .. done exit $X - - name: Test Revolt PHP if: matrix.branch.ref != 'PHP-8.0' run: | @@ -428,7 +424,6 @@ jobs: if [ ${EXIT_CODE:-0} -gt 128 ]; then exit 1 fi - - name: Test Symfony if: matrix.branch.ref != 'PHP-8.0' run: |