You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by jl...@apache.org on 2021/02/25 21:32:10 UTC
[incubator-pinot] 01/01: Delete Travis CI
This is an automated email from the ASF dual-hosted git repository.
jlli pushed a commit to branch drop-travis-ci
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
commit 0b97847cf579c24df71c19b74d5749e5f4229416
Author: Jack Li(Analytics Engineering) <jl...@jlli-mn1.linkedin.biz>
AuthorDate: Thu Feb 25 13:31:34 2021 -0800
Delete Travis CI
---
.travis.yml | 91 -------------------
.travis/.ci.settings.xml | 31 -------
.travis/.travis_install.sh | 49 -----------
.travis/.travis_nightly_build.sh | 32 -------
.travis/.travis_quickstart.sh | 146 -------------------------------
.travis/.travis_quickstart_openjdk.sh | 32 -------
.travis/.travis_set_deploy_build_opts.sh | 27 ------
.travis/.travis_test.sh | 53 -----------
8 files changed, 461 deletions(-)
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 8006c5b..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,91 +0,0 @@
-language: java
-os: linux
-dist: trusty
-
-# Prevent test build of a documentation-only change.
-#
-# if: conditions are preferred as they obviate job creation. However, they can only use
-# pre-defined env variables or globals that can be evaluated statically. The other way to skip
-# is to exit early. We do that here to prevent overhead of running tests that only include Markdown
-# (documentation) updates.
-_terminate_if_only_docs: &terminate_if_only_docs
- - |
- if [ -n "${TRAVIS_COMMIT_RANGE}" ] && ! git diff --name-only "${TRAVIS_COMMIT_RANGE}" -- | grep -qv '\.md$'; then
- echo "Stopping job as changes only affect documentation (ex. README.md)"
- travis_terminate 0
- fi
-
-before_install:
- - *terminate_if_only_docs
- - sudo apt-get update && sudo apt-get install -y --no-install-recommends gdb
- - mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && chmod +x ~/bin/jq
- - export PATH=$PATH:~/bin
- - jq --version
- - curl -sSL -o ~/bin/install-jdk.sh https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh && chmod +x ~/bin/install-jdk.sh
- - source ./.travis/.travis_set_deploy_build_opts.sh
-
-before_cache:
- - rm -rf $HOME/.m2/repository/org/apache/pinot
-
-cache:
- directories:
- - $HOME/.m2
- yarn: true
-
-addons:
- firefox: latest
-
-install:
- - ./.travis/.travis_install.sh
-
-#branches:
-# only:
-# - master
-
-stages:
- - test
- - name: deploy
-# if: branch = master
-
-jobs:
- include:
-# - name: "Integration Tests - OracleJDK 8"
-# jdk: oraclejdk8
-# script:
-# - ./.travis/.travis_test.sh
-# env:
-# - RUN_INTEGRATION_TESTS=true
-# - name: "Unit Tests - OracleJDK 8"
-# jdk: oraclejdk8
-# script:
-# - ./.travis/.travis_test.sh
-# env:
-# - RUN_INTEGRATION_TESTS=false
-# - name: "QuickStart - Java 8 & OpenJDK 14-15"
-# jdk: oraclejdk8
-# script:
-# - ./.travis/.travis_quickstart.sh
-# - jdk_switcher use openjdk8
-# - ./.travis/.travis_install.sh
-# - ./.travis/.travis_quickstart.sh
-# - ./.travis/.travis_quickstart_openjdk.sh 14
-# - ./.travis/.travis_quickstart_openjdk.sh 15
-# - name: "QuickStart - OpenJDK 10-13"
-# jdk: openjdk10
-# script:
-# - java -version
-# - ./.travis/.travis_quickstart.sh
-# - ./.travis/.travis_quickstart_openjdk.sh 11
-# - ./.travis/.travis_quickstart_openjdk.sh 12
-# - ./.travis/.travis_quickstart_openjdk.sh 13
- - stage: deploy
- script:
- - travis_wait 40 ./.travis/.travis_nightly_build.sh
-
-env:
- global:
- - secure: R3NdobUAThkk6BBzXapek6PiuWHWa1ldnJBvXpk2TAi7Lua/Ctgg8EHCSve7+MK4SU3XFJSi1th32+VSy0K/ARfdVcxiVh6EJSL/Nw0LRQSvGk7VjO382SsWCFoJuZBBqjy9DfBgRLdoqEPfulIBC0XBxjJ+4xedRptkZo7+TAAvtB8Y32EA5ve+Z4cdJipLF1tviL5q2rVbkNXucYUYO2XIv5HOzF2Xy3Hw6ls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3VscDTLYosHLcYv3HjqV+d+vIQS39RjzWTKaMleBH5m8kYSeGZer [...]
diff --git a/.travis/.ci.settings.xml b/.travis/.ci.settings.xml
deleted file mode 100644
index 587dd4f..0000000
--- a/.travis/.ci.settings.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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.
-
--->
-<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
- xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
- <servers>
- <server>
- <id>bintray-linkedin-maven</id>
- <username>${env.MVN_DEPLOY_BINTRAY_USER}</username>
- <password>${env.MVN_DEPLOY_BINTRAY_KEY}</password>
- </server>
- </servers>
-</settings>
diff --git a/.travis/.travis_install.sh b/.travis/.travis_install.sh
deleted file mode 100755
index 4c40d1a..0000000
--- a/.travis/.travis_install.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash -x
-#
-# 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.
-#
-
-# Ignore changes not related to pinot code
-echo 'Changed files:'
-git diff --name-only $TRAVIS_COMMIT_RANGE
-if [ $? -ne 0 ]; then
- echo 'Commit range is invalid.'
- exit 1
-fi
-
-KAFKA_BUILD_OPTS=""
-if [ "$KAFKA_VERSION" != '2.0' ] && [ "$KAFKA_VERSION" != '' ]; then
- KAFKA_BUILD_OPTS="-Dkafka.version=${KAFKA_VERSION}"
-fi
-
-# Java version
-java -version
-
-echo "Full Pinot build"
-if [ "$TRAVIS_JDK_VERSION" != 'oraclejdk8' ]; then
- # JDK 11 prints more logs exceeding Travis limits.
- mvn clean install -B -DskipTests=true -Pbin-dist -Dmaven.javadoc.skip=true ${DEPLOY_BUILD_OPTS} ${KAFKA_BUILD_OPTS} > /tmp/mvn_build_log
- if [ $? -eq 0 ]; then
- exit 0
- else
- tail -1000 /tmp/mvn_build_log
- exit 1
- fi
-else
- mvn clean install -B -DskipTests=true -Pbin-dist -Dmaven.javadoc.skip=true ${DEPLOY_BUILD_OPTS} ${KAFKA_BUILD_OPTS} || exit $?
-fi
diff --git a/.travis/.travis_nightly_build.sh b/.travis/.travis_nightly_build.sh
deleted file mode 100755
index d33e6a2..0000000
--- a/.travis/.travis_nightly_build.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash -x
-#
-# 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.
-#
-
-if [ -n "${DEPLOY_BUILD_OPTS}" ]; then
- echo "Deploying to bintray"
- echo "Current branch name: ${TRAVIS_BRANCH}"
-
- BUILD_VERSION=$(grep -E "<version>(.*)-SNAPSHOT</version>" pom.xml | cut -d'>' -f2 | cut -d'<' -f1 | cut -d'-' -f1)
- echo "Current build version: $BUILD_VERSION${DEV_VERSION}"
- mvn versions:set -DnewVersion="$BUILD_VERSION${DEV_VERSION}" -q -B
- mvn versions:commit -q -B
-
- # Deploy to bintray
- mvn deploy -s .travis/.ci.settings.xml -DscmBranch="${TRAVIS_BRANCH}" -DskipTests -q -DretryFailedDeploymentCount=5 -DaltDeploymentRepository=bintray-linkedin-maven::default::'https://api.bintray.com/maven/linkedin/maven/pinot/;publish=1;override=1'
-fi
diff --git a/.travis/.travis_quickstart.sh b/.travis/.travis_quickstart.sh
deleted file mode 100755
index f3c231c..0000000
--- a/.travis/.travis_quickstart.sh
+++ /dev/null
@@ -1,146 +0,0 @@
-#!/bin/bash -x
-#
-# 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.
-#
-
-# Java version
-java -version
-
-# Quickstart
-DIST_BIN_DIR=`ls -d pinot-distribution/target/apache-pinot-*/apache-pinot-*`
-cd "${DIST_BIN_DIR}"
-
-# Test quick-start-batch
-bin/quick-start-batch.sh &
-PID=$!
-
-PASS=0
-
-# Wait for 30 seconds for table to be set up, then at most 5 minutes to reach the desired state
-sleep 30
-for i in $(seq 1 150)
-do
- QUERY_RES=`curl -X POST --header 'Accept: application/json' -d '{"sql":"select count(*) from baseballStats limit 1","trace":false}' http://localhost:8000/query/sql`
- if [ $? -eq 0 ]; then
- COUNT_STAR_RES=`echo "${QUERY_RES}" | jq '.resultTable.rows[0][0]'`
- if [[ "${COUNT_STAR_RES}" =~ ^[0-9]+$ ]] && [ "${COUNT_STAR_RES}" -eq 97889 ]; then
- PASS=1
- break
- fi
- fi
- sleep 2
-done
-
-cleanup () {
- # Terminate the process and wait for the clean up to be done
- kill "$1"
- while true;
- do
- kill -0 "$1" && sleep 1 || break
- done
-
- # Delete ZK directory
- rm -rf '/tmp/PinotAdmin/zkData'
-}
-
-cleanup "${PID}"
-if [ "${PASS}" -eq 0 ]; then
- echo 'Batch Quickstart failed: Cannot get correct result for count star query.'
- exit 1
-fi
-
-# Test quick-start-streaming
-bin/quick-start-streaming.sh &
-PID=$!
-
-PASS=0
-RES_1=0
-
-# Wait for 30 seconds for table to be set up, then at most 5 minutes to reach the desired state
-sleep 30
-for i in $(seq 1 150)
-do
- QUERY_RES=`curl -X POST --header 'Accept: application/json' -d '{"sql":"select count(*) from meetupRsvp limit 1","trace":false}' http://localhost:8000/query/sql`
- if [ $? -eq 0 ]; then
- COUNT_STAR_RES=`echo "${QUERY_RES}" | jq '.resultTable.rows[0][0]'`
- if [[ "${COUNT_STAR_RES}" =~ ^[0-9]+$ ]] && [ "${COUNT_STAR_RES}" -gt 0 ]; then
- if [ "${RES_1}" -eq 0 ]; then
- RES_1="${COUNT_STAR_RES}"
- continue
- elif [ "${COUNT_STAR_RES}" -gt "${RES_1}" ]; then
- PASS=1
- break
- fi
- fi
- fi
- sleep 2
-done
-
-cleanup "${PID}"
-if [ "${PASS}" -eq 0 ]; then
- if [ "${RES_1}" -eq 0 ]; then
- echo 'Streaming Quickstart test failed: Cannot get correct result for count star query.'
- exit 1
- fi
- echo 'Streaming Quickstart test failed: Cannot get incremental counts for count star query.'
- exit 1
-fi
-
-# Test quick-start-hybrid
-cd bin
-./quick-start-hybrid.sh &
-PID=$!
-
-PASS=0
-RES_1=0
-
-# Wait for 30 seconds for table to be set up, then at most 5 minutes to reach the desired state
-sleep 30
-for i in $(seq 1 150)
-do
- QUERY_RES=`curl -X POST --header 'Accept: application/json' -d '{"sql":"select count(*) from airlineStats limit 1","trace":false}' http://localhost:8000/query/sql`
- if [ $? -eq 0 ]; then
- COUNT_STAR_RES=`echo "${QUERY_RES}" | jq '.resultTable.rows[0][0]'`
- if [[ "${COUNT_STAR_RES}" =~ ^[0-9]+$ ]] && [ "${COUNT_STAR_RES}" -gt 0 ]; then
- if [ "${RES_1}" -eq 0 ]; then
- RES_1="${COUNT_STAR_RES}"
- continue
- elif [ "${COUNT_STAR_RES}" -gt "${RES_1}" ]; then
- PASS=1
- break
- fi
- fi
- fi
- sleep 2
-done
-
-cleanup "${PID}"
-if [ "${PASS}" -eq 0 ]; then
- if [ "${RES_1}" -eq 0 ]; then
- echo 'Hybrid Quickstart test failed: Cannot get correct result for count star query.'
- exit 1
- fi
- echo 'Hybrid Quickstart test failed: Cannot get incremental counts for count star query.'
- exit 1
-fi
-
-cd ../../../../../
-pwd
-mvn clean > /dev/null
-
-exit 0
diff --git a/.travis/.travis_quickstart_openjdk.sh b/.travis/.travis_quickstart_openjdk.sh
deleted file mode 100755
index fd395ca..0000000
--- a/.travis/.travis_quickstart_openjdk.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash -x
-#
-# 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.
-#
-
-JDK_VERSION=$1
-JAVA_HOME=$HOME/openjdk${JDK_VERSION}
-rm -rf "${JAVA_HOME}"
-. ~/bin/install-jdk.sh --feature "${JDK_VERSION}" --cacerts --target "${JAVA_HOME}"
-gdb --batch-silent --pid=$$ --eval-command='call unbind_variable("script_name")'
-gdb --batch-silent --pid=$$ --eval-command='call unbind_variable("script_version")'
-rm -rf jdk.tar.gz
-echo "${JAVA_HOME}"
-java -version
-./.travis/.travis_install.sh
-./.travis/.travis_quickstart.sh
-rm -rf "${JAVA_HOME}"
diff --git a/.travis/.travis_set_deploy_build_opts.sh b/.travis/.travis_set_deploy_build_opts.sh
deleted file mode 100755
index 1d5d1a7..0000000
--- a/.travis/.travis_set_deploy_build_opts.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash -x
-#
-# 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.
-#
-
-if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
- export DEV_VERSION="-dev-${TRAVIS_BUILD_NUMBER}"
- export DEPLOY_BUILD_OPTS="-Dsha1=-dev-${TRAVIS_BUILD_NUMBER}"
- npm install -g npm-login-noninteractive
-else
- export DEPLOY_BUILD_OPTS=""
-fi
diff --git a/.travis/.travis_test.sh b/.travis/.travis_test.sh
deleted file mode 100755
index d692b61..0000000
--- a/.travis/.travis_test.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash -x
-#
-# 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.
-#
-
-# Only run tests for JDK 8
-if [ "$TRAVIS_JDK_VERSION" != 'oraclejdk8' ]; then
- echo 'Skip tests for version other than oracle jdk8.'
- exit 0
-fi
-
-passed=0
-
-KAFKA_BUILD_OPTS=""
-if [ "$KAFKA_VERSION" != '2.0' ] && [ "$KAFKA_VERSION" != '' ]; then
- KAFKA_BUILD_OPTS="-Dkafka.version=${KAFKA_VERSION}"
-fi
-
-# Only run integration tests if needed
-if [ "$RUN_INTEGRATION_TESTS" != 'false' ]; then
- mvn test -B -P travis,integration-tests-only ${DEPLOY_BUILD_OPTS} ${KAFKA_BUILD_OPTS}
- if [ $? -eq 0 ]; then
- passed=1
- fi
-else
- mvn test -B -P travis,no-integration-tests ${DEPLOY_BUILD_OPTS} ${KAFKA_BUILD_OPTS}
- if [ $? -eq 0 ]; then
- passed=1
- fi
-fi
-
-if [ $passed -eq 1 ]; then
- # Only send code coverage data if passed
- bash <(cat .codecov_bash)
- exit 0
-else
- exit 1
-fi
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org