|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +name: CUDA Extra |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + tags: |
| 23 | + - '**' |
| 24 | + pull_request: |
| 25 | + types: |
| 26 | + - labeled |
| 27 | + - opened |
| 28 | + - reopened |
| 29 | + - synchronize |
| 30 | + schedule: |
| 31 | + - cron: | |
| 32 | + 0 6 * * * |
| 33 | +
|
| 34 | +concurrency: |
| 35 | + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} |
| 36 | + cancel-in-progress: true |
| 37 | + |
| 38 | +permissions: |
| 39 | + actions: read |
| 40 | + contents: read |
| 41 | + pull-requests: read |
| 42 | + |
| 43 | +jobs: |
| 44 | + check-labels: |
| 45 | + if: github.event_name != 'schedule' || github.repository == 'apache/arrow' |
| 46 | + uses: ./.github/workflows/check_labels.yml |
| 47 | + secrets: inherit |
| 48 | + with: |
| 49 | + parent-workflow: cuda_extra |
| 50 | + |
| 51 | + docker: |
| 52 | + needs: check-labels |
| 53 | + name: ${{ matrix.title }} |
| 54 | + runs-on: "runs-on=${{ github.run_id }}/family=g4dn.xlarge/image=ubuntu24-gpu-x64/spot=capacity-optimized" |
| 55 | + if: >- |
| 56 | + needs.check-labels.outputs.force == 'true' || |
| 57 | + contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra') || |
| 58 | + contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra: CUDA') |
| 59 | + timeout-minutes: 75 |
| 60 | + strategy: |
| 61 | + fail-fast: false |
| 62 | + matrix: |
| 63 | + include: |
| 64 | + - cuda: 12.9.0 |
| 65 | + ubuntu: 24.04 |
| 66 | + image: ubuntu-cuda-cpp |
| 67 | + title: AMD64 Ubuntu 24 CUDA 12.9.0 |
| 68 | + - cuda: 11.7.1 |
| 69 | + ubuntu: 22.04 |
| 70 | + image: ubuntu-cuda-cpp |
| 71 | + title: AMD64 Ubuntu 22 CUDA 11.7.1 |
| 72 | + - cuda: 12.9.0 |
| 73 | + ubuntu: 24.04 |
| 74 | + image: ubuntu-cuda-python |
| 75 | + title: AMD64 Ubuntu 24 CUDA 12.9.0 Python |
| 76 | + - cuda: 11.7.1 |
| 77 | + ubuntu: 22.04 |
| 78 | + image: ubuntu-cuda-python |
| 79 | + title: AMD64 Ubuntu 22 CUDA 11.7.1 Python |
| 80 | + env: |
| 81 | + ARCHERY_DEBUG: 1 |
| 82 | + ARROW_ENABLE_TIMING_TESTS: OFF |
| 83 | + DOCKER_VOLUME_PREFIX: ".docker/" |
| 84 | + steps: |
| 85 | + - name: Checkout Arrow |
| 86 | + uses: actions/checkout@v6 |
| 87 | + with: |
| 88 | + fetch-depth: 0 |
| 89 | + submodules: recursive |
| 90 | + - name: Cache Docker Volumes |
| 91 | + uses: actions/cache@v5 |
| 92 | + with: |
| 93 | + path: .docker |
| 94 | + key: extra-${{ matrix.image }}-${{ hashFiles('cpp/**') }} |
| 95 | + restore-keys: extra-${{ matrix.image }}- |
| 96 | + - name: Setup Python |
| 97 | + uses: actions/setup-python@v6 |
| 98 | + with: |
| 99 | + python-version: 3 |
| 100 | + - name: Setup Archery |
| 101 | + run: python3 -m pip install -e dev/archery[docker] |
| 102 | + - name: Display NVIDIA SMI details |
| 103 | + run: | |
| 104 | + nvidia-smi |
| 105 | + nvidia-smi -L |
| 106 | + nvidia-smi -q -d Memory |
| 107 | + - name: Execute Docker Build |
| 108 | + continue-on-error: ${{ matrix.continue-on-error || false }} |
| 109 | + env: |
| 110 | + ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }} |
| 111 | + ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} |
| 112 | + CUDA: ${{ matrix.cuda }} |
| 113 | + UBUNTU: ${{ matrix.ubuntu }} |
| 114 | + run: | |
| 115 | + # GH-40558: reduce ASLR to avoid ASAN/LSAN crashes |
| 116 | + sudo sysctl -w vm.mmap_rnd_bits=28 |
| 117 | + source ci/scripts/util_enable_core_dumps.sh |
| 118 | + archery docker run ${{ matrix.run-options || '' }} ${{ matrix.image }} |
| 119 | + - name: Docker Push |
| 120 | + if: >- |
| 121 | + success() && |
| 122 | + github.event_name == 'push' && |
| 123 | + github.repository == 'apache/arrow' && |
| 124 | + github.ref_name == 'main' |
| 125 | + env: |
| 126 | + ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }} |
| 127 | + ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} |
| 128 | + continue-on-error: true |
| 129 | + run: archery docker push ${{ matrix.image }} |
| 130 | + |
| 131 | + report-extra-cpp: |
| 132 | + if: github.event_name == 'schedule' && always() |
| 133 | + needs: |
| 134 | + - docker |
| 135 | + uses: ./.github/workflows/report_ci.yml |
| 136 | + secrets: inherit |
0 commit comments