-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64 #4238
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
Closed
martin-g
wants to merge
9
commits into
apache:master
from
martin-g:zeppelin-5543-use-circle.ci-for-testing-on-linux-arm64
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0303361
ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64
martin-g ee2f0f8
ZEPPELIN-5543 Code review feedback
martin-g 77f6922
ZEPPELIN-5543 Install wget
martin-g 1fff1f5
ZEPPELIN-5543 Split Maven build into install w/o tests + verify
martin-g 92ff950
ZEPPELIN-5543 Do not fail 'mvn install' step
martin-g 13e25b2
ZEPPELIN-5543 Make the setup similar to GitHub Actions 'core' workflow
martin-g f1014df
ZEPPELIN-5543 Exclude notebookrepo-mongo
martin-g b2dda9a
ZEPPELIN-5543 Properly setup the env vars for the whole build job
martin-g 29d030f
ZEPPELIN-5543 Try CirrusCI
martin-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,104 @@ | ||
| # | ||
| # 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. | ||
| # | ||
|
|
||
| version: 2.1 | ||
|
|
||
| commands: | ||
| build-common: | ||
| parameters: | ||
| jdk_version: | ||
| # 8, 11, 17, ... | ||
| type: integer | ||
| default: 8 | ||
|
|
||
| steps: | ||
| - checkout | ||
|
|
||
| - restore_cache: | ||
| keys: | ||
| - maven-repo-v1-{{ .Branch }}-{{ checksum "pom.xml" }} | ||
| - maven-repo-v1-{{ .Branch }}- | ||
| - maven-repo-v1- | ||
|
|
||
| - run: | ||
| name: Delete ~/.m2/repository/org/apache/zeppelin | ||
| command: rm -rf ~/.m2/repository/org/apache/zeppelin | ||
|
|
||
| - run: | ||
| name: Install build tools | ||
| command: | | ||
| sudo apt-get update -y | ||
| DEBIAN_FRONTEND=noninteractive \ | ||
| DEBCONF_NONINTERACTIVE_SEEN=true \ | ||
| TZ=UTC \ | ||
| sudo apt-get install -y --no-install-recommends openjdk-<< parameters.jdk_version >>-jdk maven wget | ||
|
|
||
| - run: | ||
| name: Print JDK and Maven versions | ||
| command: | | ||
| java -version | ||
| mvn -version | ||
|
|
||
| - run: | ||
| name: install application with some interpreter | ||
| command: | | ||
| mvn install -Pbuild-distr -DskipRat -DskipTests -pl zeppelin-server,zeppelin-web,spark-submit,spark/spark-dependencies,markdown,angular,shell -am -Phelium-dev -Pexamples -Phadoop3 --batch-mode --no-transfer-progress --fail-never | ||
|
|
||
| - run: | ||
| name: install and test plugins | ||
| command: mvn package -DskipRat -pl zeppelin-plugins,-org.apache.zeppelin:notebookrepo-mongo -amd -B | ||
|
|
||
| - run: | ||
| name: run tests with hadoop3 | ||
| command: | | ||
| mvn verify -Pusing-packaged-distr -DskipRat -pl zeppelin-server,zeppelin-web,spark-submit,spark/spark-dependencies,markdown,angular,shell -am -Phelium-dev -Pexamples -Phadoop3 -Dtests.to.exclude=**/org/apache/zeppelin/spark/* -DfailIfNoTests=false | ||
|
|
||
| - save_cache: | ||
| paths: | ||
| - ~/.m2 | ||
| key: maven-repo-v1-{{ .Branch }}-{{ checksum "pom.xml" }} | ||
|
|
||
| - run: | ||
| name: Maven verify | ||
| command: mvn clean verify -Pspark-3.0 -Pspark-scala-2.12 --also-make-dependents --batch-mode --no-transfer-progress | ||
|
|
||
| jobs: | ||
| build-arm64: | ||
| machine: | ||
| image: ubuntu-2004:202101-01 | ||
| resource_class: arm.medium | ||
|
|
||
| environment: | ||
| MAVEN_OPTS: "-Xms1024M -Xmx2048M -XX:MaxMetaspaceSize=1024m -XX:-UseGCOverheadLimit -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3" | ||
| ZEPPELIN_HELIUM_REGISTRY: helium | ||
| SPARK_PRINT_LAUNCH_COMMAND: "true" | ||
| SPARK_LOCAL_IP: "127.0.0.1" | ||
| ZEPPELIN_LOCAL_IP: "127.0.0.1" | ||
| JAVA_HOME: "/usr/lib/jvm/java-8-openjdk-arm64/" | ||
|
|
||
| working_directory: ~/zeppelin | ||
|
|
||
| steps: | ||
| - build-common | ||
|
|
||
| workflows: | ||
| version: 2 | ||
| run-build-and-tests: | ||
| jobs: | ||
| - build-arm64 | ||
This file contains hidden or 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,23 @@ | ||
| # | ||
| # 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. | ||
| # | ||
|
|
||
| test_task: | ||
| arm_container: | ||
| image: 3.8.2-openjdk-8-slim | ||
| test_script: mvn install -Pbuild-distr -DskipRat -DskipTests -pl zeppelin-server,zeppelin-web,spark-submit,spark/spark-dependencies,markdown,angular,shell -am -Phelium-dev -Pexamples -Phadoop3 --batch-mode --no-transfer-progress --fail-never |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.