Skip to content

Commit 7d80c1c

Browse files
authored
Fix RC binary verification (#106)
Closes GH-104
1 parent c35facd commit 7d80c1c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dev/release/verify-rc.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ test_source_distribution() {
242242
}
243243

244244
test_apt() {
245-
pushd "${TARGET_SOURCE_DIR}"
245+
pushd "${ARROW_TMPDIR}"
246246

247247
show_header "Testing APT packages"
248248

@@ -268,16 +268,16 @@ test_apt() {
268268
done
269269
else
270270
curl --get \
271-
--data branch=${VERSION}-${RC_NUMBER} \
272-
https://api.github.com/repos/${SOURCE_REPOSITORY}/actions/workflows/package.yaml/runs > \
273-
package_run.json
274-
if [ $(jq -r '.total_count' package_run.json) -eq 0 ]; then
271+
--data branch=${VERSION}-rc${RC_NUMBER} \
272+
https://api.github.com/repos/${SOURCE_REPOSITORY}/actions/workflows/verify-rc.yaml/runs > \
273+
verify_rc_run.json
274+
if [ $(jq -r '.total_count' verify_rc_run.json) -eq 0 ]; then
275275
echo "APT packages test on GitHub Actions isn't ran yet."
276276
return 1
277277
fi
278278
echo "APT packages test was ran on GitHub Actions:"
279-
echo " $(jq -r '.workflow_runs[0].html_url' package_run.json)"
280-
conclusion="$(jq -r '.workflow_runs[0].conclusion' package_run.json)"
279+
echo " $(jq -r '.workflow_runs[0].html_url' verify_rc_run.json)"
280+
conclusion="$(jq -r '.workflow_runs[0].conclusion' verify_rc_run.json)"
281281
if [ "${conclusion}" != "success" ]; then
282282
echo "It was not succeeded: ${conclusion}"
283283
return 1
@@ -301,7 +301,7 @@ test_binary_distribution() {
301301
: ${TEST_BINARIES:=${TEST_DEFAULT}}
302302

303303
if [ "${GITHUB_ACTIONS:-}" = "true" ] || \
304-
ruby -r arrow-flight-sql -e 'true' > dev/null 2>&1; then
304+
ruby -r arrow-flight-sql -e 'true' > /dev/null 2>&1; then
305305
: ${TEST_SOURCE_MANUAL:=0}
306306
else
307307
: ${TEST_SOURCE_MANUAL:=1}
@@ -310,11 +310,11 @@ fi
310310
TEST_SUCCESS=no
311311

312312
setup_tempdir
313-
ensure_source_directory
314313
if [ ${TEST_SOURCE} -gt 0 ]; then
314+
ensure_source_directory
315315
test_source_distribution
316316
fi
317-
if [ ${TEST_BINARY} -gt 0 ]; then
317+
if [ ${TEST_BINARIES} -gt 0 ]; then
318318
test_binary_distribution
319319
fi
320320

0 commit comments

Comments
 (0)