This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support Java 11 * config travis to use oracle jdk 11 * Java 11 support (#3399) * Support Java 11 * config travis to use oracle jdk 11 * Add check jdk version * Fix command arguments. Change insert gc_options Update list Fix gc-logging * Add missing parameter * typo * Add pause time * Add python3 for docker files * Revert "config travis to use oracle jdk 11" This reverts commit edaa84f. * Update unitest * Update unittest * Add JDK11 UnitTest * Add Unittest using Docker. * Add full test * Change JDK11 * Ignore PowerMock used for testing is not compatible with Java 11. * Change JDK11 for travis.yml * Update python * Update library requests, pylint * Revert "Update library requests, pylint" This reverts commit 7706d34. * Add ignore * Refactoring ReflectionUtils Co-authored-by: Ning Wang <wangninggm@gmail.com>
- Loading branch information
Showing
61 changed files
with
764 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ dist: trusty | |
language: java | ||
|
||
jdk: | ||
- oraclejdk8 | ||
- oraclejdk11 | ||
|
||
addons: | ||
apt: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/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. | ||
set -o nounset | ||
set -o errexit | ||
|
||
realpath() { | ||
echo "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")" | ||
} | ||
|
||
DOCKER_DIR=$(dirname $(dirname $(realpath $0))) | ||
PROJECT_DIR=$(dirname $DOCKER_DIR) | ||
|
||
verify_dockerfile_exists() { | ||
if [ ! -f $1 ]; then | ||
echo "The Dockerfiler $1 does not exist" | ||
exit 1 | ||
fi | ||
} | ||
|
||
dockerfile_path_for_platform() { | ||
echo "$SCRATCH_DIR/test/Dockerfile.$1" | ||
} | ||
|
||
copy_bazel_rc_to() { | ||
cp $PROJECT_DIR/tools/docker/bazel.rc $1 | ||
} | ||
|
||
DOCKER_FILE=$(dockerfile_path_for_platform $TARGET_PLATFORM) | ||
verify_dockerfile_exists $DOCKER_FILE | ||
copy_bazel_rc_to $SCRATCH_DIR/bazelrc | ||
|
||
echo "Building heron-compiler container" | ||
docker build -t heron-compiler:$TARGET_PLATFORM -f $DOCKER_FILE $SCRATCH_DIR | ||
|
||
echo "Running build in container" | ||
docker run \ | ||
--rm \ | ||
-e TARGET_PLATFORM=$TARGET_PLATFORM \ | ||
-e SCRATCH_DIR="/scratch" \ | ||
-e SOURCE_TARBALL="/src.tar.gz" \ | ||
-e HERON_VERSION=$HERON_VERSION \ | ||
-e HERON_GIT_REV="${HERON_GIT_REV}" \ | ||
-e HERON_BUILD_VERSION="${HERON_BUILD_VERSION}" \ | ||
-e HERON_BUILD_HOST="${HERON_BUILD_HOST}" \ | ||
-e HERON_BUILD_USER="${HERON_BUILD_USER}" \ | ||
-e HERON_BUILD_TIME="${HERON_BUILD_TIME}" \ | ||
-e HERON_TREE_STATUS="${HERON_TREE_STATUS}" \ | ||
-v "$SOURCE_TARBALL:/src.tar.gz:ro" \ | ||
-t heron-compiler:$TARGET_PLATFORM /test-platform.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/bin/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. | ||
set -o nounset | ||
set -o errexit | ||
|
||
# By default bazel creates files with mode 0555 which means they are only able to be read and not written to. This | ||
# causes cp to fail when trying to overwrite the file. This makes sure that if the file exists we can overwrite it. | ||
function copyFileToDest() { | ||
if [ -f $2 ]; then | ||
chmod 755 $2 | ||
fi | ||
|
||
cp $1 $2 | ||
} | ||
|
||
echo "Building heron with version $HERON_VERSION for platform $TARGET_PLATFORM" | ||
|
||
mkdir -p $SCRATCH_DIR | ||
cd $SCRATCH_DIR | ||
|
||
echo "Extracting source" | ||
tar -C . -xzf $SOURCE_TARBALL | ||
|
||
if [[ "$TARGET_PLATFORM" =~ "ubuntu" ]]; then | ||
CONFIG_PLATFORM=ubuntu | ||
elif [[ "$TARGET_PLATFORM" =~ "centos" ]]; then | ||
CONFIG_PLATFORM=centos | ||
elif [[ "$TARGET_PLATFORM" =~ "darwin" ]]; then | ||
CONFIG_PLATFORM=darwin | ||
elif [[ "$TARGET_PLATFORM" =~ "debian" ]]; then | ||
CONFIG_PLATFORM=debian | ||
elif [[ "$TARGET_PLATFORM" =~ "ubuntu_nostyle" ]]; then | ||
CONFIG_PLATFORM=ubuntu | ||
elif [[ "$TARGET_PLATFORM" =~ "centos_nostyle" ]]; then | ||
CONFIG_PLATFORM=centos | ||
elif [[ "$TARGET_PLATFORM" =~ "darwin_nostyle" ]]; then | ||
CONFIG_PLATFORM=darwin | ||
elif [[ "$TARGET_PLATFORM" =~ "debian_nostyle" ]]; then | ||
CONFIG_PLATFORM=debian | ||
else | ||
echo "Unknown platform: $TARGET_PLATFORM" | ||
exit 1 | ||
fi | ||
|
||
bazel version | ||
./bazel_configure.py | ||
bazel clean | ||
|
||
echo "UnitTest" | ||
bazel test -c opt --jobs 25 \ | ||
--config=$CONFIG_PLATFORM \ | ||
--test_output=all \ | ||
--test_summary=detailed \ | ||
heron/... \ | ||
heronpy/... \ | ||
examples/... \ | ||
storm-compatibility-examples/... \ | ||
eco-storm-examples/... \ | ||
eco-heron-examples/... \ | ||
contrib/... | ||
|
Oops, something went wrong.