fix PHP distribtest on monterey (#31567)

pull/31568/head
Jan Tattermusch 2 years ago committed by GitHub
parent 249645608e
commit 6cab039cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      test/distrib/php/run_distrib_test.sh
  2. 9
      test/distrib/php/run_distrib_test_macos.sh

@ -19,7 +19,10 @@ cd "$(dirname "$0")"
cp -r "$EXTERNAL_GIT_ROOT"/input_artifacts/grpc-*.tgz .
find . -regex ".*/grpc-[0-9].*.tgz" | cut -b3- | \
MAKEFLAGS=-j xargs pecl install
# get name of the PHP package archive to test (we don't know
# the exact version string in advance)
GRPC_PEAR_PACKAGE_NAME=$(find . -regex '.*/grpc-[0-9].*.tgz' | sed 's|./||')
MAKEFLAGS=-j pecl install "${GRPC_PEAR_PACKAGE_NAME}"
php -d extension=grpc.so -d max_execution_time=300 distribtest.php

@ -19,7 +19,12 @@ cd "$(dirname "$0")"
cp -r "$EXTERNAL_GIT_ROOT"/input_artifacts/grpc-*.tgz .
find . -regex ".*/grpc-[0-9].*.tgz" | cut -b3- | \
xargs sudo MAKEFLAGS=-j pecl install
# get name of the PHP package archive to test (we don't know
# the exact version string in advance)
GRPC_PEAR_PACKAGE_NAME=$(find . -regex '.*/grpc-[0-9].*.tgz' | sed 's|./||')
# Use -j4 since higher parallelism can lead to "resource unavailable"
# errors during the build. See b/257261061#comment4
sudo MAKEFLAGS=-j4 pecl install "${GRPC_PEAR_PACKAGE_NAME}"
php -d extension=grpc.so -d max_execution_time=300 distribtest.php

Loading…
Cancel
Save