|
| 1 | +# Apache Zeppelin 에러 조치 테스트용 |
| 2 | +name: test-frontend |
| 3 | + |
| 4 | +on: |
| 5 | + workflow_dispatch: |
| 6 | + |
| 7 | +env: |
| 8 | + MAVEN_OPTS: >- |
| 9 | + -Xms1024M -Xmx2048M -XX:MaxMetaspaceSize=1024m -XX:-UseGCOverheadLimit |
| 10 | + -Dhttp.keepAlive=false |
| 11 | + -Dmaven.wagon.http.pool=false |
| 12 | + -Dmaven.wagon.http.retryHandler.count=3 |
| 13 | + MAVEN_ARGS: >- |
| 14 | + -B --no-transfer-progress |
| 15 | + ZEPPELIN_HELIUM_REGISTRY: helium |
| 16 | + SPARK_PRINT_LAUNCH_COMMAND: "true" |
| 17 | + SPARK_LOCAL_IP: 127.0.0.1 |
| 18 | + ZEPPELIN_LOCAL_IP: 127.0.0.1 |
| 19 | + INTERPRETERS: '!hbase,!jdbc,!file,!flink,!cassandra,!elasticsearch,!bigquery,!alluxio,!livy,!groovy,!java,!neo4j,!sparql,!mongodb' |
| 20 | + |
| 21 | +permissions: |
| 22 | + contents: read # to fetch code (actions/checkout) |
| 23 | + |
| 24 | +jobs: |
| 25 | + test-selenium-with-spark-module-for-spark-3-4: |
| 26 | + runs-on: ubuntu-24.04 |
| 27 | + defaults: |
| 28 | + run: |
| 29 | + shell: bash -l {0} |
| 30 | + steps: |
| 31 | + - name: Checkout |
| 32 | + uses: actions/checkout@v4 |
| 33 | + |
| 34 | + - name: Tune Runner VM |
| 35 | + uses: ./.github/actions/tune-runner-vm |
| 36 | + |
| 37 | + - name: Set up JDK 11 |
| 38 | + uses: actions/setup-java@v4 |
| 39 | + with: |
| 40 | + distribution: 'temurin' |
| 41 | + java-version: 11 |
| 42 | + |
| 43 | + - name: Cache local Maven repository |
| 44 | + uses: actions/cache@v4 |
| 45 | + with: |
| 46 | + path: | |
| 47 | + ~/.m2/repository |
| 48 | + !~/.m2/repository/org/apache/zeppelin/ |
| 49 | + ~/.spark-dist |
| 50 | + ~/.cache |
| 51 | + key: ${{ runner.os }}-zeppelin-${{ hashFiles('**/pom.xml') }} |
| 52 | + restore-keys: | |
| 53 | + ${{ runner.os }}-zeppelin- |
| 54 | +
|
| 55 | + - name: Setup conda environment with python 3.9 and R |
| 56 | + uses: conda-incubator/setup-miniconda@v3 |
| 57 | + with: |
| 58 | + activate-environment: python_3_with_R |
| 59 | + environment-file: testing/env_python_3_with_R.yml |
| 60 | + python-version: 3.9 |
| 61 | + channels: conda-forge,defaults |
| 62 | + channel-priority: strict |
| 63 | + auto-activate-base: false |
| 64 | + use-mamba: true |
| 65 | + |
| 66 | + - name: Make IRkernel available to Jupyter |
| 67 | + run: | |
| 68 | + R -e "IRkernel::installspec()" |
| 69 | +
|
| 70 | + - name: Install Environment |
| 71 | + run: | |
| 72 | + ./mvnw clean install -DskipTests -am -pl zeppelin-integration -Pweb-classic -Pintegration -Pspark-scala-2.12 -Pspark-3.4 -Pweb-dist ${MAVEN_ARGS} |
| 73 | +
|
| 74 | + - name: run tests |
| 75 | + run: | |
| 76 | + xvfb-run --auto-servernum --server-args="-screen 0 1600x1024x16" ./mvnw verify -DfailIfNoTests=false -pl zeppelin-integration -Pweb-classic -Pintegration -Pspark-scala-2.12 -Pspark-3.4 -Pweb-dist -Pusing-source-tree ${MAVEN_ARGS} |
| 77 | +
|
| 78 | + - name: Print zeppelin logs |
| 79 | + if: always() |
| 80 | + run: if [ -d "logs" ]; then cat logs/*; fi |
0 commit comments