Hyukjin Kwon created SPARK-60854:
------------------------------------
Summary: Fix `release-build.sh` finalize failing for the first
release of a series
Key: SPARK-60854
URL: https://issues.apache.org/jira/browse/SPARK-60854
Project: Spark
Issue Type: Bug
Components: Project Infra
Affects Versions: 5.0.0
Reporter: Hyukjin Kwon
The {{finalize}} step of {{dev/create-release/release-build.sh}} fails at its
last step, "Remove old releases from the mirror", when the release is the first
one of its series (x.y.0, or the first preview of a series).
The release workflow sets {{DEBUG_MODE=1}}, so {{release-util.sh}} enables
{{set -o pipefail}}. In
{code:bash}
OLD_VERSION=$(svn ls https://dist.apache.org/repos/dist/release/spark/ | \
grep "^spark-$RELEASE_SERIES" | \
grep -v "^spark-$RELEASE_VERSION/" | \
sed 's#/##' | sed 's/^spark-//' | \
sort -V | tail -n 1)
{code}
{{grep -v}} selects nothing when there is no older release of the series, exits
with 1, and {{set -e}} aborts the script before the "No previous ... version
found to remove" branch and {{exit 0}}. The workflow is reported as failed
although every release step has already completed. This happened when
finalizing Spark 4.3.0.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]