File: r_extra.yml

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (223 lines) | stat: -rw-r--r-- 6,870 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# 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.

name: R Extra

on:
  push:
    branches:
      - '**'
      - '!dependabot/**'
    paths:
      - '.dockerignore'
      - '.github/workflows/check_labels.yml'
      - '.github/workflows/r_extra.yml'
      - '.github/workflows/report_ci.yml'
      - 'ci/docker/**'
      - 'ci/etc/rprofile'
      - 'ci/scripts/PKGBUILD'
      - 'ci/scripts/cpp_*.sh'
      - 'ci/scripts/install_minio.sh'
      - 'ci/scripts/r_*.sh'
      - 'cpp/**'
      - 'compose.yaml'
      - 'dev/archery/archery/**'
      - 'r/**'
    tags:
      - '**'
  pull_request:
    paths:
      - '.dockerignore'
      - '.github/workflows/check_labels.yml'
      - '.github/workflows/r_extra.yml'
      - '.github/workflows/report_ci.yml'
      - 'ci/docker/**'
      - 'ci/etc/rprofile'
      - 'ci/scripts/PKGBUILD'
      - 'ci/scripts/cpp_*.sh'
      - 'ci/scripts/install_minio.sh'
      - 'ci/scripts/r_*.sh'
      - 'cpp/**'
      - 'compose.yaml'
      - 'dev/archery/archery/**'
      - 'r/**'
    types:
      - labeled
      - opened
      - reopened
      - synchronize
  schedule:
    - cron: |
        0 4 * * *

concurrency:
  group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
  cancel-in-progress: true

permissions:
  actions: read
  contents: read
  pull-requests: read

jobs:
  check-labels:
    if: github.event_name != 'schedule' || github.repository == 'apache/arrow'
    uses: ./.github/workflows/check_labels.yml
    secrets: inherit
    with:
      parent-workflow: r_extra

  docker:
    needs: check-labels
    name: ${{ matrix.title }}
    runs-on: ${{ matrix.runs-on }}
    if: >-
      needs.check-labels.outputs.force == 'true' ||
      contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra') ||
      contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra: R')
    timeout-minutes: 75
    strategy:
      fail-fast: false
      matrix:
        include:
          - envs:
              - R_IMAGE=r-ver
              - R_ORG=rocker
            image: r
            runs-on: ubuntu-latest
            title: Rocker R-ver
          - envs:
              - R_IMAGE=r-ver
              - R_ORG=rocker
            image: r
            runs-on: ubuntu-latest
            run-options: >-
              -e ARROW_DEPENDENCY_SOURCE=BUNDLED
            title: Rocker R-ver - Bundled Dependencies
          - envs:
              - R_IMAGE=r-ver
              - R_ORG=rocker
            image: r
            runs-on: ubuntu-latest
            run-options: >-
              -e LIBARROW_MINIMAL=TRUE
            title: Rocker R-ver - Minimal
          - envs:
              - R_IMAGE=r-ver
              - R_ORG=rocker
            image: r
            runs-on: ubuntu-latest
            run-options: >-
              -e ARROW_OFFLINE_BUILD=true
            title: Rocker R-ver - Offline build
          - envs:
              - R_IMAGE=ubuntu-release
              - R_ORG=rhub
            image: r
            runs-on: ubuntu-latest
            title: Rhub
          - envs:
              - R_CUSTOM_CCACHE=true
              - R_IMAGE=ubuntu-gcc12
              - R_ORG=rhub
            image: r
            runs-on: ubuntu-latest
            title: Rhub GCC 12
          - envs:
              - R_IMAGE=gcc13
              - R_ORG=rhub
            image: r
            runs-on: ubuntu-latest
            run-options: >-
              -e INSTALL_ARGS=--use-LTO
            title: Rhub GCC 13 with LTO
          - envs:
              - R_IMAGE=r-base
              - R_ORG=rstudio
              - R_TAG=4.2-jammy
            image: r
            runs-on: ubuntu-latest
            title: RStudio R-Base 4.2
    env:
      ARCHERY_DEBUG: 1
      ARROW_ENABLE_TIMING_TESTS: OFF
      DOCKER_VOLUME_PREFIX: ".docker/"
    steps:
      - name: Checkout Arrow
        uses: actions/checkout@v6
        with:
          fetch-depth: 0
          submodules: recursive
      - name: Cache Docker Volumes
        uses: actions/cache@v5
        with:
          path: .docker
          key: extra-${{ matrix.image }}-${{ hashFiles('cpp/**') }}
          restore-keys: extra-${{ matrix.image }}-
      - name: Setup Python
        uses: actions/setup-python@v6
        with:
          python-version: 3
      - name: Setup Archery
        run: python3 -m pip install -e dev/archery[docker]
      - name: Execute Docker Build
        continue-on-error: ${{ matrix.continue-on-error || false }}
        env:
          ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
          ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
          ENVS: ${{ toJSON(matrix.envs) }}
        run: |
          source ci/scripts/util_enable_core_dumps.sh
          if [ "${ENVS}" != "null" ]; then
            echo "${ENVS}" | jq -r '.[]' | while read env; do
              echo "${env}" >> .env
            done
          fi
          archery docker run ${{ matrix.run-options || '' }} ${{ matrix.image }}
      - name: Docker Push
        if: >-
          success() &&
          github.event_name == 'push' &&
          github.repository == 'apache/arrow' &&
          github.ref_name == 'main'
        env:
          ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
          ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
        continue-on-error: true
        run: archery docker push ${{ matrix.image }}
      - name: Dump install logs
        run: cat r/check/arrow.Rcheck/00install.out
        if: always()
        continue-on-error: true
      - name: Dump test logs
        run: cat r/check/arrow.Rcheck/tests/testthat.Rout*
        if: always()
        continue-on-error: true
      - name: Save the test output
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: test-output-{{ "${{ matrix.config.r_image }}" }}
          path: r/check/arrow.Rcheck/tests/testthat.Rout*
        continue-on-error: true

  report-extra-cpp:
    if: github.event_name == 'schedule' && always()
    needs:
      - docker
    uses: ./.github/workflows/report_ci.yml
    secrets: inherit