Skip to content

Commit db197ec

Browse files
committed
GH-46499: [CI][Crossbow][C++] Use apache/arrow for Meson
1 parent 7f645d4 commit db197ec

File tree

2 files changed

+132
-10
lines changed

2 files changed

+132
-10
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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: C++ Extra
19+
20+
on:
21+
push:
22+
branches:
23+
- '**'
24+
- '!dependabot/**'
25+
tags:
26+
- '**'
27+
paths:
28+
- '.dockerignore'
29+
- '.github/workflows/cpp_extra.yml'
30+
- 'ci/conda_env_*'
31+
- 'ci/docker/**'
32+
- 'ci/scripts/cpp_*'
33+
- 'ci/scripts/install_azurite.sh'
34+
- 'ci/scripts/install_gcs_testbench.sh'
35+
- 'ci/scripts/install_minio.sh'
36+
- 'ci/scripts/msys2_*'
37+
- 'ci/scripts/util_*'
38+
- 'cpp/**'
39+
- 'docker-compose.yml'
40+
- 'format/Flight.proto'
41+
- 'testing'
42+
pull_request:
43+
paths:
44+
- '.dockerignore'
45+
- '.github/workflows/cpp_extra.yml'
46+
- 'ci/conda_env_*'
47+
- 'ci/docker/**'
48+
- 'ci/scripts/cpp_*'
49+
- 'ci/scripts/install_azurite.sh'
50+
- 'ci/scripts/install_gcs_testbench.sh'
51+
- 'ci/scripts/install_minio.sh'
52+
- 'ci/scripts/msys2_*'
53+
- 'ci/scripts/util_*'
54+
- 'cpp/**'
55+
- 'docker-compose.yml'
56+
- 'format/Flight.proto'
57+
- 'testing'
58+
types:
59+
- labeled
60+
schedule:
61+
- cron: |
62+
0 0 * * *
63+
64+
concurrency:
65+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
66+
cancel-in-progress: true
67+
68+
permissions:
69+
contents: read
70+
pull-requests: write
71+
72+
env:
73+
ARCHERY_DEBUG: 1
74+
ARROW_ENABLE_TIMING_TESTS: OFF
75+
DOCKER_VOLUME_PREFIX: ".docker/"
76+
77+
jobs:
78+
docker:
79+
name: ${{ matrix.title }}
80+
runs-on: ${{ matrix.runs-on }}
81+
if: >-
82+
(github.event_name == 'pull_request' &&
83+
github.event.pull_request.label.name == 'CI: Extra') ||
84+
(github.event_name != 'pull_request')
85+
timeout-minutes: 75
86+
strategy:
87+
fail-fast: false
88+
matrix:
89+
include:
90+
- run-options: >-
91+
-e ARROW_USE_MESON=ON
92+
image: conda-cpp
93+
runs-on: ubuntu-latest
94+
title: AMD64 Ubuntu Meson
95+
steps:
96+
- name: Checkout Arrow
97+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
98+
with:
99+
fetch-depth: 0
100+
submodules: recursive
101+
- name: Cache Docker Volumes
102+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
103+
with:
104+
path: .docker
105+
key: ${{ matrix.image }}-${{ hashFiles('cpp/**') }}
106+
restore-keys: ${{ matrix.image }}-
107+
- name: Setup Python
108+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
109+
with:
110+
python-version: 3
111+
- name: Setup Archery
112+
run: python3 -m pip install -e dev/archery[docker]
113+
- name: Execute Docker Build
114+
env:
115+
ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
116+
ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
117+
run: |
118+
# GH-40558: reduce ASLR to avoid ASAN/LSAN crashes
119+
sudo sysctl -w vm.mmap_rnd_bits=28
120+
source ci/scripts/util_enable_core_dumps.sh
121+
archery docker run ${{ matrix.run-options || '' }} ${{ matrix.image }}
122+
- name: Docker Push
123+
if: >-
124+
success() &&
125+
github.event_name == 'push' &&
126+
github.repository == 'apache/arrow' &&
127+
github.ref_name == 'main'
128+
env:
129+
ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
130+
ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
131+
continue-on-error: true
132+
run: archery docker push ${{ matrix.image }}

dev/tasks/tasks.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -653,16 +653,6 @@ tasks:
653653
image: {{ image }}
654654
{% endfor %}
655655

656-
test-conda-cpp-meson:
657-
ci: github
658-
template: docker-tests/github.linux.yml
659-
params:
660-
# ARROW_USE_CCACHE=OFF is for using sccache
661-
flags: >-
662-
-e ARROW_USE_CCACHE=OFF
663-
-e ARROW_USE_MESON=ON
664-
image: conda-cpp
665-
666656
test-conda-cpp-valgrind:
667657
ci: github
668658
template: docker-tests/github.linux.yml

0 commit comments

Comments
 (0)