-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestHashJoinOperator affected by TestNG bug
- Loading branch information
0 parents
commit 513e761
Showing
5,398 changed files
with
800,487 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
target/ | ||
/var | ||
/*/var/ | ||
/presto-product-tests/**/var/ | ||
pom.xml.versionsBackup | ||
test-output/ | ||
test-reports/ | ||
/atlassian-ide-plugin.xml | ||
.idea | ||
.DS_Store | ||
.classpath | ||
.settings | ||
.project | ||
temp-testng-customsuite.xml | ||
test-output | ||
.externalToolBuilders | ||
*~ | ||
benchmark_outputs | ||
*.pyc | ||
*.class | ||
.checkstyle | ||
.mvn/timing.properties |
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,13 @@ | ||
# Parallel Build with Smart Builder | ||
|
||
Add this line if you want to use the Smart Builder with 8 threads: | ||
|
||
`-T 8 -b smart` | ||
|
||
Enabling this by default causes issues with tests as it usually consumes more resources than a normal laptop has, and it also causes issues with the maven-release-plugin. | ||
|
||
If you are working in a mode where you are not running the tests than turning on this option may be more convenient. | ||
|
||
Note that you can still use this option from the command line and it will override the default single threaded builder listed the `.mvn/maven.config`. | ||
|
||
|
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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extensions> | ||
<extension> | ||
<groupId>io.takari.maven</groupId> | ||
<artifactId>takari-smart-builder</artifactId> | ||
<version>0.4.0</version> | ||
</extension> | ||
<extension> | ||
<groupId>io.takari.aether</groupId> | ||
<artifactId>takari-concurrent-localrepo</artifactId> | ||
<version>0.0.7</version> | ||
</extension> | ||
<extension> | ||
<groupId>co.leantechniques</groupId> | ||
<artifactId>maven-buildtime-extension</artifactId> | ||
<version>3.0.0</version> | ||
</extension> | ||
</extensions> |
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 @@ | ||
-Xmx8192m |
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,2 @@ | ||
-b multithreaded | ||
|
Binary file not shown.
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 @@ | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip |
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,138 @@ | ||
language: java | ||
|
||
env: | ||
global: | ||
- MAVEN_OPTS="-Xmx512M -XX:+ExitOnOutOfMemoryError" | ||
- MAVEN_SKIP_CHECKS_AND_DOCS="-Dair.check.skip-all=true -Dmaven.javadoc.skip=true" | ||
- MAVEN_FAST_INSTALL="-DskipTests $MAVEN_SKIP_CHECKS_AND_DOCS -B -q -T C1" | ||
- ARTIFACTS_UPLOAD_PATH=travis_build_artifacts/${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER} | ||
- TEST_FLAGS="" | ||
matrix: | ||
- MAVEN_CHECKS=true | ||
- TEST_SPECIFIC_MODULES=presto-tests | ||
- TEST_SPECIFIC_MODULES=presto-tests TEST_FLAGS="-P ci-only" | ||
- TEST_SPECIFIC_MODULES=presto-raptor | ||
- TEST_SPECIFIC_MODULES=presto-accumulo | ||
- TEST_SPECIFIC_MODULES=presto-cassandra | ||
- TEST_SPECIFIC_MODULES=presto-hive | ||
- TEST_OTHER_MODULES=!presto-tests,!presto-raptor,!presto-accumulo,!presto-cassandra,!presto-hive,!presto-docs,!presto-server,!presto-server-rpm | ||
- PRODUCT_TESTS=true | ||
- HIVE_TESTS=true | ||
|
||
sudo: required | ||
dist: trusty | ||
|
||
cache: | ||
directories: | ||
- $HOME/.m2/repository | ||
|
||
services: | ||
- docker | ||
|
||
install: | ||
- ./mvnw -v | ||
- | | ||
if [[ -v TEST_SPECIFIC_MODULES ]]; then | ||
./mvnw install $MAVEN_FAST_INSTALL -pl $TEST_SPECIFIC_MODULES -am | ||
fi | ||
- | | ||
if [[ -v TEST_OTHER_MODULES ]]; then | ||
./mvnw install $MAVEN_FAST_INSTALL -pl '!presto-docs,!presto-server,!presto-server-rpm' | ||
fi | ||
- | | ||
if [[ -v PRODUCT_TESTS ]]; then | ||
./mvnw install $MAVEN_FAST_INSTALL -pl '!presto-docs,!presto-server-rpm' | ||
fi | ||
- | | ||
if [[ -v HIVE_TESTS ]]; then | ||
./mvnw install $MAVEN_FAST_INSTALL -pl presto-hive-hadoop2 -am | ||
fi | ||
script: | ||
- | | ||
if [[ -v MAVEN_CHECKS ]]; then | ||
./mvnw install -DskipTests -B -T C1 | ||
fi | ||
- | | ||
if [[ -v TEST_SPECIFIC_MODULES ]]; then | ||
./mvnw test $MAVEN_SKIP_CHECKS_AND_DOCS -B -pl $TEST_SPECIFIC_MODULES $TEST_FLAGS | ||
fi | ||
- | | ||
if [[ -v TEST_OTHER_MODULES ]]; then | ||
./mvnw test $MAVEN_SKIP_CHECKS_AND_DOCS -B -pl $TEST_OTHER_MODULES | ||
fi | ||
- | | ||
if [[ -v PRODUCT_TESTS ]]; then | ||
presto-product-tests/bin/run_on_docker.sh \ | ||
multinode -x quarantine,big_query,storage_formats,profile_specific_tests,tpcds | ||
fi | ||
- | | ||
if [[ -v PRODUCT_TESTS ]]; then | ||
presto-product-tests/bin/run_on_docker.sh \ | ||
singlenode-kerberos-hdfs-impersonation -g storage_formats,cli,hdfs_impersonation,authorization | ||
fi | ||
- | | ||
if [[ -v PRODUCT_TESTS ]]; then | ||
presto-product-tests/bin/run_on_docker.sh \ | ||
singlenode-ldap -g ldap_cli | ||
fi | ||
- | | ||
if [[ -v HIVE_TESTS ]]; then | ||
presto-hive-hadoop2/bin/run_on_docker.sh | ||
fi | ||
before_cache: | ||
# Make the cache stable between builds by removing build output | ||
- rm -rf $HOME/.m2/repository/com/facebook | ||
|
||
notifications: | ||
slack: | ||
secure: V5eyoGShxFoCcYJcp858vf/T6gC9KeMxL0C1EElcpZRcKBrIVZzvhek3HLHxZOxlghqnvNVsyDtU3u5orkEaAXeXj5c2dN+4XBsAB9oeN5MtQ0Z3VLAhZDqKIW1LzcXrq4DpzM0PkGhjfjum/P94/qFYk0UckPtB6a341AuYRo8= | ||
|
||
before_deploy: | ||
- mkdir /tmp/artifacts | ||
- cp -n presto-server/target/presto-server-*.tar.gz /tmp/artifacts | ||
- cp -n presto-server-rpm/target/presto-server-rpm-*.x86_64.rpm /tmp/artifacts | ||
- cp -n presto-product-tests/target/presto-product-tests-*-executable.jar /tmp/artifacts | ||
- cp -n presto-jdbc/target/presto-jdbc-*.jar /tmp/artifacts | ||
- cp -n presto-cli/target/presto-cli-*-executable.jar /tmp/artifacts | ||
- echo $TRAVIS_COMMIT > /tmp/artifacts/git-revision.txt | ||
- echo "<script>location='https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}'</script>" | ||
> /tmp/artifacts/travis_build.html | ||
- ls -lah /tmp/artifacts | ||
|
||
deploy: | ||
on: | ||
all_branches: true | ||
condition: -v DEPLOY_S3_ACCESS_KEY && -v MAVEN_CHECKS | ||
provider: s3 | ||
access_key_id: ${DEPLOY_S3_ACCESS_KEY} | ||
secret_access_key: ${DEPLOY_S3_SECRET_KEY} | ||
bucket: ${DEPLOY_S3_BUCKET} | ||
skip_cleanup: true | ||
local-dir: /tmp/artifacts | ||
upload-dir: ${ARTIFACTS_UPLOAD_PATH} | ||
acl: public_read | ||
|
||
after_script: | ||
- | | ||
if [[ -v DEPLOY_S3_ACCESS_KEY ]]; then | ||
sudo pip install awscli | ||
export AWS_ACCESS_KEY_ID=${DEPLOY_S3_ACCESS_KEY} | ||
export AWS_SECRET_ACCESS_KEY=${DEPLOY_S3_SECRET_KEY} | ||
JOB_ARTIFACTS_URL_PREFIX=s3://${DEPLOY_S3_BUCKET}/${ARTIFACTS_UPLOAD_PATH}/travis_jobs/${TRAVIS_JOB_NUMBER}-run | ||
JOB_RUN_ATTEMPTS=$( aws s3 ls ${JOB_ARTIFACTS_URL_PREFIX} | wc -l | tr -d '[:space:]' ) | ||
JOB_STATUS=$( [ "$TRAVIS_TEST_RESULT" == "0" ] && echo SUCCESS || echo FAILURE ) | ||
mkdir -p /tmp/job_artifacts/ | ||
rsync -av -m \ | ||
--include='**/' \ | ||
--include='**/surefire-reports/**.xml' \ | ||
--include='**/surefire-reports/emailable-report.html' \ | ||
--exclude='*' \ | ||
. /tmp/job_artifacts/ | ||
wget https://api.travis-ci.org/jobs/${TRAVIS_JOB_ID}/log.txt?deansi=true -O /tmp/job_artifacts/log.txt | ||
aws s3 sync /tmp/job_artifacts ${JOB_ARTIFACTS_URL_PREFIX}_$((JOB_RUN_ATTEMPTS + 1))-${JOB_STATUS} | ||
fi |
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,11 @@ | ||
# Contributing to Presto | ||
|
||
## Contributor License Agreement ("CLA") | ||
|
||
In order to accept your pull request, we need you to submit a CLA. You only need to do this once, so if you've done this for another Facebook open source project, you're good to go. If you are submitting a pull request for the first time, just let us know that you have completed the CLA and we can cross-check with your GitHub username. | ||
|
||
Complete your CLA here: <https://code.facebook.com/cla> | ||
|
||
## License | ||
|
||
By contributing to Presto, you agree that your contributions will be licensed under the [Apache License Version 2.0 (APLv2)](LICENSE). |
Oops, something went wrong.