You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/29 16:21:09 UTC

[GitHub] [arrow-adbc] lidavidm commented on a diff in pull request #174: chore: set up release process

lidavidm commented on code in PR #174:
URL: https://github.com/apache/arrow-adbc/pull/174#discussion_r1034972554


##########
dev/release/04-binary-download.sh:
##########
@@ -0,0 +1,59 @@
+#!/usr/bin/env bash
+# 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.
+
+set -ex
+
+main() {
+    local -r source_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+    local -r source_top_dir="$( cd "${source_dir}/../../" && pwd )"
+    pushd "${source_top_dir}"
+
+    if [ "$#" -ne 2 ]; then
+        echo "Usage: $0 <version> <rc-num>"
+        exit 1
+    fi
+
+    local -r version="$1"
+    local -r rc_number="$2"
+    local -r tag="adbc-${version}"
+    local -r rc_branch="release-${version}-rc${rc_number}"
+
+    : ${REPOSITORY:="apache/arrow"}
+
+    echo "Waiting for GitHub Actions workflow on ${REPOSITORY}:${rc_branch}"
+
+    local -r run_id=$(gh run list \
+                         --repo "${REPOSITORY}" \
+                         --workflow=packaging-wheels.yml \
+                         --json 'databaseId,event,headBranch' \
+                         --jq ".[] | select(.event == \"workflow_dispatch\" and .headBranch == \"${rc_branch}\") | .databaseId" \
+                          | head -n1)
+
+    echo "Found GitHub Actions workflow with ID: ${run_id}"
+    gh run watch --repo "${REPOSITORY}" --exit-status "${run_id}"
+    gh run view --repo "${REPOSITORY}" "${run_id}"
+
+    local -r download_dir="packages/release-${version}-rc${rc_number}"
+    rm -rf "${download_dir}"
+    mkdir -p "${download_dir}"
+    gh run download --repo "${REPOSITORY}" --dir "${download_dir}" "${run_id}"

Review Comment:
   Releases might still be convenient for discoverability, but I suppose then you run into the problem of having to clean them up.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org