-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Cherry-pick GH actions script from TrinoDB #15649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| x() { | ||
| echo "+ $*" >&2 | ||
| "$@" | ||
| } | ||
|
|
||
| max_retry_time_seconds=$(( 30 * 60 )) | ||
| retry_delay_seconds=10 | ||
|
|
||
| END=$(( $(date +%s) + ${max_retry_time_seconds} )) | ||
|
|
||
| while (( $(date +%s) < $END )); do | ||
| x "$@" && exit 0 | ||
| sleep "${retry_delay_seconds}" | ||
| done | ||
|
|
||
| echo "$0: retrying [$*] timed out" >&2 | ||
| exit 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,201 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
| env: | ||
| # An envar that signals to tests we are executing in the CI environment | ||
| CONTINUOUS_INTEGRATION: true | ||
| MAVEN_OPTS: "-Xmx1024M -XX:+ExitOnOutOfMemoryError" | ||
| MAVEN_INSTALL_OPTS: "-Xmx2G -XX:+ExitOnOutOfMemoryError" | ||
| MAVEN_FAST_INSTALL: "-B -V --quiet -T C1 -DskipTests -Dair.check.skip-all -Dmaven.javadoc.skip=true" | ||
| MAVEN_TEST: "-B -Dair.check.skip-all -Dmaven.javadoc.skip=true -DLogTestDurationListener.enabled=true --fail-at-end" | ||
| RETRY: .github/bin/retry | ||
|
|
||
| jobs: | ||
| maven-checks: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| timeout-minutes: 45 | ||
| steps: | ||
| - name: Free Disk Space | ||
| run: | | ||
| df -h | ||
| sudo apt-get clean | ||
| df -h | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Maven Checks | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw install -B -V -T C1 -DskipTests -P ci -pl '!:presto-server-rpm' | ||
| - name: Test Server RPM | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw verify -B -P ci -pl :presto-server-rpm | ||
| - name: Clean Maven Output | ||
| run: ./mvnw clean -pl '!:presto-server,!:presto-cli' | ||
|
|
||
| web-ui-checks: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Web UI Checks | ||
| run: presto-main/bin/check_webui.sh | ||
|
|
||
| hive-tests: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Install Hive Module | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw install ${MAVEN_FAST_INSTALL} -am -pl :presto-hive-hadoop2 | ||
| - name: Run Hive Tests | ||
| run: presto-hive-hadoop2/bin/run_hive_tests.sh | ||
| - name: Run Hive S3 Tests | ||
| env: | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.HIVE_AWS_ACCESSKEY }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.HIVE_AWS_SECRETKEY }} | ||
| S3_BUCKET: "presto-ci-test" | ||
| S3_BUCKET_ENDPOINT: "s3.us-east-2.amazonaws.com" | ||
| run: | | ||
| if [ "${AWS_ACCESS_KEY_ID}" != "" ]; then | ||
| presto-hive-hadoop2/bin/run_hive_s3_tests.sh | ||
| fi | ||
| - name: Run Hive Glue Tests | ||
| env: | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.HIVE_AWS_ACCESSKEY }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.HIVE_AWS_SECRETKEY }} | ||
| run: | | ||
| if [ "${HIVE_AWS_ACCESS_KEY_ID}" != "" ]; then | ||
| ./mvnw test ${MAVEN_TEST} -pl :presto-hive -P test-hive-glue | ||
| fi | ||
|
|
||
| test-other-modules: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Maven Install | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw install ${MAVEN_FAST_INSTALL} -pl '!:presto-docs,!:presto-server,!:presto-server-rpm' | ||
| - name: Maven Tests | ||
| run: | | ||
| ./mvnw test ${MAVEN_TEST} -pl ' | ||
| !presto-tests, | ||
| !presto-raptor, | ||
| !presto-accumulo, | ||
| !presto-cassandra, | ||
| !presto-hive, | ||
| !presto-kudu, | ||
| !presto-docs, | ||
| !presto-server, | ||
| !presto-server-rpm, | ||
| !presto-main, | ||
| !presto-mongodb, | ||
| !presto-spark-package, | ||
| !presto-spark-launcher, | ||
| !presto-spark-testing, | ||
| !presto-spark-base, | ||
| !presto-redis, | ||
| !presto-elasticsearch, | ||
| !presto-orc, | ||
| !presto-thrift-connector' | ||
|
|
||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| modules: | ||
| - ":presto-docs" | ||
| - ":presto-tests -P presto-tests-execution-memory" | ||
| - ":presto-tests -P presto-tests-general" | ||
| - ":presto-tests -P ci-only-distributed-non-hash-gen" | ||
| - ":presto-tests -P ci-only-tpch-distributed-queries" | ||
| - ":presto-tests -P ci-only-local-queries" | ||
| - ":presto-tests -P ci-only-distributed-queries" | ||
| - ":presto-tests -P ci-only-aggregation-queries" | ||
| - ":presto-tests -P ci-only-plan-determinism" | ||
| - ":presto-raptor" | ||
| - ":presto-accumulo" | ||
| - ":presto-cassandra -P test-cassandra-integration-smoke-test" | ||
| - ":presto-hive" | ||
| - ":presto-hive -P test-hive-materialized-queries" | ||
| - ":presto-hive -P test-hive-materialized-aggregations" | ||
| - ":presto-hive -P test-hive-recoverable-execution" | ||
| - ":presto-hive -P test-hive-pushdown-filter-queries-basic" | ||
| - ":presto-hive -P test-hive-pushdown-filter-queries-advanced" | ||
| - ":presto-hive -P test-hive-repartitioning" | ||
| - ":presto-hive -P test-hive-parquet" | ||
| - ":presto-main" | ||
| - ":presto-mongodb -P test-mongo-distributed-queries" | ||
| - ":presto-redis -P test-redis-integration-smoke-test" | ||
| - ":presto-elasticsearch" | ||
| - ":presto-orc" | ||
| - ":presto-thrift-connector" | ||
| - ":presto-spark-base" | ||
| timeout-minutes: 80 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Maven Install | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw install ${MAVEN_FAST_INSTALL} -am -pl $(echo '${{ matrix.modules }}' | cut -d' ' -f1) | ||
| - name: Maven Tests | ||
| run: ./mvnw test ${MAVEN_TEST} -pl ${{ matrix.modules }} | ||
|
|
||
| kudu: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Maven Install | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw install ${MAVEN_FAST_INSTALL} -am -pl presto-kudu | ||
| - name: Kudu Tests | ||
| run: | | ||
| presto-kudu/bin/run_kudu_tests.sh 3 null | ||
| presto-kudu/bin/run_kudu_tests.sh 1 "" | ||
| presto-kudu/bin/run_kudu_tests.sh 1 presto:: | ||
|
|
||
| spark-integration: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Maven Install | ||
| run: | | ||
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | ||
| $RETRY ./mvnw install ${MAVEN_FAST_INSTALL} -am -pl presto-kudu | ||
| - name: Maven Tests | ||
| run: $RETRY ./mvnw install ${MAVEN_FAST_INSTALL} -am -pl presto-spark-launcher,presto-spark-package,presto-spark-testing -P test-presto-spark-integration-smoke-test |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: cleanup | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '*/5 * * * *' | ||
|
|
||
| jobs: | ||
| cancel: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: n1hility/cancel-previous-runs@2e3c1893986568a2197c41957b9c809cbcf1a61e | ||
| with: | ||
| token: ${{ github.token }} | ||
| workflow: ci.yml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip | ||
| distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2236,3 +2236,4 @@ | |
| 2227 Asia/Famagusta | ||
| 2228 Europe/Saratov | ||
| 2229 Asia/Qostanay | ||
| 2230 America/Nuuk | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ | |
| import com.google.common.collect.ImmutableList; | ||
| import io.airlift.slice.Slice; | ||
| import io.airlift.slice.Slices; | ||
| import org.testng.SkipException; | ||
| import org.testng.annotations.Test; | ||
|
|
||
| import java.util.Collections; | ||
|
|
@@ -117,6 +118,9 @@ public void testNewBlockBuilderLike() | |
| @Test | ||
| public void testNewBlockBuilderLikeForLargeBlockBuilder() | ||
| { | ||
| if (true) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you instead disable it in the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then it doesn't show up in the count as skipped?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interesting. maybe we should be doing that in general then. |
||
| throw new SkipException("https://github.com/prestodb/presto/issues/15653 - Skipped because it OOMs"); | ||
| } | ||
| List<Type> channels = ImmutableList.of(VARCHAR); | ||
| PageBuilder pageBuilder = new PageBuilder(channels); | ||
| BlockBuilder largeVarcharBlockBuilder = pageBuilder.getBlockBuilder(0); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.