Merge pull request #22908 from HannahShiSFB/ignore-valgrind-undef-errors

PHP: ignore-valgrind-undef-errors from php7.3
pull/22949/head
Stanley Cheung 5 years ago committed by GitHub
commit 811f9b1bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/php/bin/run_tests.sh
  2. 6
      src/php/docker/php-future/Dockerfile
  3. 6
      templates/src/php/docker/php-future/Dockerfile.template

@ -29,7 +29,8 @@ for arg in "$@"
do do
if [[ "$arg" == "--skip-persistent-channel-tests" ]]; then if [[ "$arg" == "--skip-persistent-channel-tests" ]]; then
SKIP_PERSISTENT_CHANNEL_TESTS=true SKIP_PERSISTENT_CHANNEL_TESTS=true
break elif [[ "$arg" == "--ignore-valgrind-undef-errors" ]]; then
VALGRIND_UNDEF_VALUE_ERRORS="--undef-value-errors=no"
fi fi
done done
@ -43,6 +44,7 @@ export USE_ZEND_ALLOC=0
# Detect whether valgrind is executable # Detect whether valgrind is executable
if [ -x "$(command -v valgrind)" ]; then if [ -x "$(command -v valgrind)" ]; then
$(which valgrind) --error-exitcode=10 --leak-check=yes \ $(which valgrind) --error-exitcode=10 --leak-check=yes \
$VALGRIND_UNDEF_VALUE_ERRORS \
$(which php) $extension_dir -d max_execution_time=300 \ $(which php) $extension_dir -d max_execution_time=300 \
../tests/MemoryLeakTest/MemoryLeakTest.php ../tests/MemoryLeakTest/MemoryLeakTest.php
fi fi

@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM php:7.4.0RC1-buster FROM php:7.4.5-buster
RUN apt-get -qq update && apt-get -qq install -y \ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \ autoconf automake git libtool pkg-config \
wget zlib1g-dev valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8 ARG MAKEFLAGS=-j8
@ -36,4 +36,4 @@ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}
CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests"] CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests", "--ignore-valgrind-undef-errors"]

@ -14,11 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM php:7.4.0RC1-buster FROM php:7.4.5-buster
RUN apt-get -qq update && apt-get -qq install -y ${'\\'} RUN apt-get -qq update && apt-get -qq install -y ${'\\'}
autoconf automake git libtool pkg-config ${'\\'} autoconf automake git libtool pkg-config ${'\\'}
wget zlib1g-dev valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8 ARG MAKEFLAGS=-j8
@ -29,4 +29,4 @@
<%include file="../pecl_ext_build_src.include" /> <%include file="../pecl_ext_build_src.include" />
CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests"] CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests", "--ignore-valgrind-undef-errors"]

Loading…
Cancel
Save