rmetzger commented on a change in pull request #12268: URL: https://github.com/apache/flink/pull/12268#discussion_r429918097
########## File path: tools/ci/test_controller.sh ########## @@ -0,0 +1,127 @@ +#!/usr/bin/env bash +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +# +# This file contains generic control over the test execution. +# + +HERE="`dirname \"$0\"`" # relative +HERE="`( cd \"$HERE\" && pwd )`" # absolutized and normalized +if [ -z "$HERE" ] ; then + exit 1 +fi + +source "${HERE}/stage.sh" +source "${HERE}/maven-utils.sh" +source "${HERE}/controller_utils.sh" +source "${HERE}/watchdog.sh" +TEST=$1 + +# ============================================================================= +# Step 0: Check & print environment information & configure env +# ============================================================================= + +# check preconditions +if [ -z "$DEBUG_FILES" ] ; then + echo "ERROR: Environment variable 'DEBUG_FILES' is not set but expected by test_controller.sh" + exit 1 +fi + +if [ ! -d "$DEBUG_FILES" ] ; then + echo "ERROR: Environment variable DEBUG_FILES=$DEBUG_FILES points to a directory that does not exist" + exit 1 +fi + +if [ -z "$TEST" ] ; then + echo "ERROR: Environment variable 'TEST' is not set but expected by test_controller.sh" + exit 1 +fi + +echo "Printing environment information" + +echo "PATH=$PATH" +run_mvn -version +echo "Commit: $(git rev-parse HEAD)" +print_system_info + +# enable coredumps for this process +ulimit -c unlimited + +# configure JVMs to produce heap dumps +export JAVA_TOOL_OPTIONS="-XX:+HeapDumpOnOutOfMemoryError" + +# some tests provide additional logs if they find this variable +export IS_CI=true + +# ============================================================================= +# Step 1: Compile Flink (again) Review comment: Thanks, I will update the comment ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org