raulcd commented on code in PR #47600:
URL: https://github.com/apache/arrow/pull/47600#discussion_r2362340681
##########
dev/release/04-binary-download.sh:
##########
@@ -39,3 +42,11 @@ crossbow_job_prefix="release-${version_with_rc}"
: ${CROSSBOW_JOB_ID:="${crossbow_job_prefix}-${CROSSBOW_JOB_NUMBER}"}
archery crossbow download-artifacts --no-fetch ${CROSSBOW_JOB_ID} "$@"
+
+# Wait for the GitHub Workflow that creates the Linux packages
+# to finish before downloading the artifacts.
+. "${SOURCE_DIR}/utils-watch-gh-workflow.sh" "${release_tag}"
"linux_packaging.yml"
+
+RUN_ID=$(get_run_id)
+# Download the artifacts created by the linux_packaging.yml workflow
+download_artifacts "${SOURCE_DIR}/../../packages/${CROSSBOW_JOB_ID}"
Review Comment:
The downloaded artifact maintains the repository structure, see:
```
$ tree packages/almalinux-8-amd64/
packages/almalinux-8-amd64/
├── apache-arrow
│ └── yum
│ └── repositories
│ └── almalinux
│ └── 8
│ ├── source
│ │ └── SRPMS
│ │ └── arrow-22.0.0.dev20250919-1.el8.src.rpm
│ └── x86_64
│ └── Packages
│ ├──
arrow2200-acero-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-acero-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-compute-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-compute-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-dataset-glib-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-dataset-glib-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-dataset-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-dataset-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-glib-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-glib-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-sql-glib-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-sql-glib-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-sql-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-flight-sql-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-glib-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-glib-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow2200-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-acero-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-compute-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-dataset-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-dataset-glib-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-dataset-glib-doc-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-debugsource-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-flight-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-flight-glib-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-flight-glib-doc-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-flight-sql-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-flight-sql-glib-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-flight-sql-glib-doc-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-glib-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-glib-doc-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-tools-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
arrow-tools-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva2200-glib-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva2200-glib-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva2200-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva2200-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva-glib-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
gandiva-glib-doc-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet2200-glib-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet2200-glib-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet2200-libs-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet2200-libs-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet-glib-devel-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet-glib-doc-22.0.0.dev20250919-1.el8.x86_64.rpm
│ ├──
parquet-tools-22.0.0.dev20250919-1.el8.x86_64.rpm
│ └──
parquet-tools-debuginfo-22.0.0.dev20250919-1.el8.x86_64.rpm
└── apache-arrow-release
└── yum
└── repositories
└── almalinux
└── 8
├── source
│ └── SRPMS
│ └──
apache-arrow-release-22.0.0.dev20250919-1.el8.src.rpm
└── x86_64
└── Packages
└──
apache-arrow-release-22.0.0.dev20250919-1.el8.noarch.rpm
```
but the ones from archery are on a flat folder. I am unsure how the signing
of those work, should we flatten them?
```
$ tree packages/nightly-packaging-2025-09-19-0/almalinux-8-amd64/
packages/nightly-packaging-2025-09-19-0/almalinux-8-amd64/
├── apache-arrow-release-22.0.0.dev150-1.el8.noarch.rpm
├── apache-arrow-release-22.0.0.dev150-1.el8.src.rpm
├── arrow2200-acero-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-acero-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-compute-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-compute-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-dataset-glib-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-dataset-glib-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-dataset-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-dataset-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-22.0.0.dev150-1.el8.src.rpm
├── arrow2200-flight-glib-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-glib-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-sql-glib-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-sql-glib-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-sql-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-flight-sql-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-glib-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-glib-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow2200-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-acero-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-compute-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-dataset-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-dataset-glib-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-dataset-glib-doc-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-debugsource-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-flight-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-flight-glib-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-flight-glib-doc-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-flight-sql-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-flight-sql-glib-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-flight-sql-glib-doc-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-glib-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-glib-doc-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-tools-22.0.0.dev150-1.el8.x86_64.rpm
├── arrow-tools-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva2200-glib-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva2200-glib-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva2200-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva2200-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva-glib-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── gandiva-glib-doc-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet2200-glib-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet2200-glib-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet2200-libs-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet2200-libs-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet-glib-devel-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet-glib-doc-22.0.0.dev150-1.el8.x86_64.rpm
├── parquet-tools-22.0.0.dev150-1.el8.x86_64.rpm
└── parquet-tools-debuginfo-22.0.0.dev150-1.el8.x86_64.rpm
1 directory, 57 files
```
##########
.github/workflows/linux_packaging.yml:
##########
@@ -0,0 +1,368 @@
+# 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: Linux Packaging Extra
+
+on:
+ push:
+ branches:
+ - '**'
+ - '!dependabot/**'
+ paths:
+ - '.dockerignore'
+ - '.github/workflows/check_labels.yml'
+ - '.github/workflows/linux_packaging.yml'
+ - '.github/workflows/report_ci.yml'
+ - 'cpp/**'
+ - 'c_glib/**'
+ - 'dev/tasks/linux-packages/**'
+ - 'format/Flight.proto'
+ - 'testing'
+ tags:
+ - '**'
+ pull_request:
+ paths:
+ - '.dockerignore'
+ - '.github/workflows/check_labels.yml'
+ - '.github/workflows/linux_packaging.yml'
+ - '.github/workflows/report_ci.yml'
+ - 'cpp/**'
+ - 'c_glib/**'
+ - 'dev/tasks/linux-packages/**'
+ - 'format/Flight.proto'
+ - 'testing'
+ types:
+ - labeled
+ - opened
+ - reopened
+ - synchronize
+ schedule:
+ - cron: "0 2 * * *"
+ workflow_dispatch:
+ inputs:
+ version:
+ description: "The Arrow version"
+ type: string
+ required: true
+ no_rc_version:
+ description: "The Arrow version without RC"
+ type: string
+ required: true
+
+concurrency:
+ group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{
github.workflow }}
+ cancel-in-progress: true
+
+permissions:
+ contents: read
+
+jobs:
+ check-labels:
+ uses: ./.github/workflows/check_labels.yml
+ secrets: inherit
+ with:
+ label: "CI: Extra: Linux Packaging"
+ parent-workflow: linux_packaging
+
+ package:
+ needs: check-labels
+ name: ${{ matrix.title }}
+ runs-on: ${{ matrix.runs-on }}
+ if: needs.check-labels.outputs.ci-extra == 'true'
+ timeout-minutes: 75
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - architecture: amd64
+ runs-on: ubuntu-latest
+ target: almalinux-8
+ title: AlmaLinux 8 AMD64
+ task-namespace: yum
+ upload-extensions:
+ - rpm
+ env:
+ DOCKER_VOLUME_PREFIX: ".docker/"
+ ARROW_VERSION: ${{ inputs.version || ''}}
+ NO_RC_VERSION: ${{ inputs.no_rc_version || ''}}
+ steps:
+ - name: Checkout Arrow
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #
v5.0.0
+ with:
+ fetch-depth: 0
+ submodules: recursive
+ - name: Free up disk space
+ if: runner.os == 'Linux' && runner.arch == 'X64'
+ shell: bash
+ run: |
+ ci/scripts/util_free_space.sh
+ - name: Cache Docker Volumes
+ uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
+ with:
+ path: .docker
+ key: extra-${{ matrix.target }}-${{ hashFiles('cpp/**') }}
+ restore-keys: extra-${{ matrix.target }}-
+ - name: Set up Ruby
+ run: |
+ sudo apt update
+ sudo apt install -y \
+ rake \
+ ruby \
+ ruby-dev
+ - name: Get Arrow Version
+ id: get-arrow-version
+ run: |
+ # In case of dev (no workflow_dispatch inputs) compute ARROW_VERSION
and
+ # use the same version for NO_RC_VERSION.
+ if [ -z "${ARROW_VERSION}" ]; then
+ ARROW_VERSION=$(git describe --tags --abbrev=0 --match
"apache-arrow-[0-9]*.*" | sed 's/^apache-arrow-//')
+ ARROW_VERSION="${ARROW_VERSION}$(date +%Y%m%d)"
+ echo "ARROW_VERSION=${ARROW_VERSION}" >> $GITHUB_ENV
+ echo "NO_RC_VERSION=${ARROW_VERSION}" >> $GITHUB_ENV
+ fi
+ - name: Build
+ run: |
+ set -e
+ pushd dev/tasks/linux-packages
+ rake version:update ARROW_RELEASE_TIME="$(date --iso-8601=seconds)"
+ rake docker:pull || :
+ rake --trace ${{ matrix.task-namespace }}:build BUILD_DIR=build
+ popd
+ env:
+ APT_TARGETS: ${{ matrix.target }}
+ # TODO: Investigate what is this REPO variable and where is coming
from
+ REPO: ${{ secrets.REPO }}
+ YUM_TARGETS: ${{ matrix.target }}
+ - name: Login to Dockerhub
+ if: >-
+ success() &&
+ github.event_name == 'push' &&
+ github.repository == 'apache/arrow' &&
+ github.ref_name == 'main'
+ uses: docker/login-action@v2
+ with:
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Docker Push
+ continue-on-error: true
+ if: >-
+ success() &&
+ github.event_name == 'push' &&
+ github.repository == 'apache/arrow' &&
+ github.ref_name == 'main'
+ shell: bash
+ run: |
+ pushd dev/tasks/linux-packages
+ rake docker:push
+ popd
+ env:
+ APT_TARGETS: ${{ matrix.target }}
+ REPO: ${{ secrets.REPO }}
+ YUM_TARGETS: ${{ matrix.target }}
+ - name: Build artifact paths
+ id: artifact-paths
+ shell: bash
+ run: |
+ paths=""
+ for ext in ${{ join(matrix.upload-extensions, ' ') }}; do
+ paths="$paths
dev/tasks/linux-packages/*/*/repositories/**/*.${ext}"
+ done
+ echo $paths
+ echo "paths=$paths" >> $GITHUB_OUTPUT
+ - name: Upload the artifacts to the job
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
# v4.6.2
+ with:
+ name: ${{ matrix.target }}-${{ matrix.architecture }}
+ path: ${{ steps.artifact-paths.outputs.paths }}
+ - name: Download Artifacts
+ uses: actions/download-artifact@v4
+ with:
+ path: artifacts-downloaded
+ - name: Expected uploaded yum artifacts
Review Comment:
Should we move this and the next step to individual shell scripts (or python
/ ruby tests)?
This is only for yum and we will have to do something similar for `.deb`
which makes the workflow slightly long to work with.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]