Skip to content

Commit

Permalink
apacheGH-31735: [Docs][Release] Move release verification guide to de…
Browse files Browse the repository at this point in the history
…velopers documentation (apache#39960)

### Rationale for this change

The current verification guide is obsolete and should not be on the wiki.

### What changes are included in this PR?

Adding a new page with the release verification information.

### Are these changes tested?

The documentation will be generated and will use the preview-docs job.

### Are there any user-facing changes?

Yes but not relevant in terms of code changes.
* Closes: apache#31735

Lead-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
2 people authored and zanmato1984 committed Feb 28, 2024
1 parent 8a9a87e commit d5f64e5
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 138 deletions.
19 changes: 0 additions & 19 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,6 @@ Status closed
URL https://github.com/apache/arrow/issues/Y
```

## Verifying Release Candidates

We have provided a script to assist with verifying release candidates on Linux
and macOS:

```shell
bash dev/release/verify-release-candidate.sh 0.7.0 0
```

Read the script and check the notes in dev/release for information about system
dependencies.

On Windows, we have a script that verifies C++ and Python (requires Visual
Studio 2015):

```
dev/release/verify-release-candidate.bat apache-arrow-0.7.0.tar.gz
```

# Integration testing

Build the following base image used by multiple tests:
Expand Down
2 changes: 1 addition & 1 deletion dev/release/02-source-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_vote
[10]: https://apache.jfrog.io/artifactory/arrow/python-rc/#{@release_version}-rc0
[11]: https://apache.jfrog.io/artifactory/arrow/ubuntu-rc/
[12]: https://github.com/apache/arrow/blob/#{@current_commit}/CHANGELOG.md
[13]: https://cwiki.apache.org/confluence/display/ARROW/How+to+Verify+Release+Candidates
[13]: https://arrow.apache.org/docs/developers/release_verification.html
[14]: #{verify_pr_url || "null"}
VOTE
end
Expand Down
2 changes: 1 addition & 1 deletion dev/release/02-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ The vote will be open for at least 72 hours.
[10]: https://apache.jfrog.io/artifactory/arrow/python-rc/${version}-rc${rc}
[11]: https://apache.jfrog.io/artifactory/arrow/ubuntu-rc/
[12]: https://github.com/apache/arrow/blob/${release_hash}/CHANGELOG.md
[13]: https://cwiki.apache.org/confluence/display/ARROW/How+to+Verify+Release+Candidates
[13]: https://arrow.apache.org/docs/developers/release_verification.html
[14]: ${verify_pr_url}
MAIL
echo "---------------------------------------------------------"
Expand Down
6 changes: 2 additions & 4 deletions dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

## Release management scripts

To learn more, see the project wiki:
To learn more, see the project documentation:

https://cwiki.apache.org/confluence/display/ARROW/Release+Management+Guide

and [VERIFY.md](VERIFY.md)
https://arrow.apache.org/docs/developers/release.html
113 changes: 0 additions & 113 deletions dev/release/VERIFY.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/source/developers/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ All participation in the Apache Arrow project is governed by the ASF's

To learn about the detailed information on the steps followed to perform a release, see :ref:`release`.

.. dropdown:: Release Verification Process
:animate: fade-in-slide-down
:class-title: sd-fs-5
:class-container: sd-shadow-none

To learn how to verify a release, see :ref:`release_verification`.

.. toctree::
:maxdepth: 2
:hidden:
Expand All @@ -226,3 +233,4 @@ All participation in the Apache Arrow project is governed by the ASF's
benchmarks
documentation
release
release_verification
2 changes: 2 additions & 0 deletions docs/source/developers/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ Verify the Release
# on dev@arrow.apache.org. To regenerate the email template use
SOURCE_DEFAULT=0 SOURCE_VOTE=1 dev/release/02-source.sh <version> <rc-number>
See :ref:`release_verification` for details.

Voting and approval
===================

Expand Down
144 changes: 144 additions & 0 deletions docs/source/developers/release_verification.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
.. 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.
.. _release_verification:

============================
Release Verification Process
============================

This page provides detailed information on the steps followed to perform
a release verification on the major platforms.

Principles
==========

The Apache Arrow Release Approval process follows the guidelines defined at the
`Apache Software Foundation Release Approval <https://www.apache.org/legal/release-policy.html#release-approval>`_.

For a release vote to pass, a minimum of three positive binding votes and more
positive binding votes than negative binding votes MUST be cast.
Releases may not be vetoed. Votes cast by PMC members are binding, however,
non-binding votes are greatly encouraged and a sign of a healthy project.

Running the release verification
================================

Linux and macOS
---------------

In order to run the verification script either for the source release or the
binary artifacts see the following guidelines:

.. code-block::
# this will create and automatically clean up a temporary directory for the verification environment and will run the source verification
TEST_DEFAULT=0 TEST_SOURCE=1 verify-release-candidate.sh $VERSION $RC_NUM
# this will create and automatically clean up a temporary directory for the verification environment and will run the binary verification
TEST_DEFAULT=0 TEST_BINARIES=1 dev/release/verify-release-candidate.sh $VERSION $RC_NUM
# to verify only certain implementations use the TEST_DEFAULT=0 and TEST_* variables
# here are a couple of examples, but see the source code for the available options
TEST_DEFAULT=0 TEST_CPP=1 verify-release-candidate.sh $VERSION $RC_NUM # only C++ tests
TEST_DEFAULT=0 TEST_CPP=1 TEST_PYTHON=1 verify-release-candidate.sh $VERSION $RC_NUM # C++ and Python tests
TEST_DEFAULT=0 TEST_INTEGRATION_CPP=1 TEST_INTEGRATION_JAVA=1 verify-release-candidate.sh $VERSION $RC_NUM # C++ and Java integration tests
# to verify certain binaries use the TEST_* variables as:
TEST_DEFAULT=0 TEST_WHEELS=1 verify-release-candidate.sh $VERSION $RC_NUM # only Wheels
TEST_DEFAULT=0 TEST_APT=1 verify-release-candidate.sh $VERSION $RC_NUM # only APT packages
TEST_DEFAULT=0 TEST_YUM=1 verify-release-candidate.sh $VERSION $RC_NUM # only YUM packages
TEST_DEFAULT=0 TEST_JARS=1 verify-release-candidate.sh $VERSION $RC_NUM # only JARS
Windows
-------

In order to run the verification script on Windows you have to download
the source tarball from the SVN dist system that you wish to verify:

.. code-block::
dev\release\verify-release-candidate.bat %VERSION% %RC_NUM%
System Configuration Instructions
=================================

You will need some tools installed like curl, git, etcetera.

Ubuntu
------

You might have to install some packages on your system. The following
utility script can be used to set your Ubuntu system. This wil install
the required packages to perform a source verification on a clean
Ubuntu:

.. code-block::
# From the arrow clone
sudo dev/release/setup-ubuntu.sh
macOS ARM
---------

.. code-block::
# From the arrow clone
brew install gpg
brew bundle --file=cpp/Brewfile
brew bundle --file=c_glib/Brewfile
brew uninstall node
# You might need to add node, ruby java and maven to the PATH, follow
# instructions from brew after installing.
brew install node@20
brew install ruby
brew install openjdk
brew install maven
Windows 11
----------

To be defined

Casting your vote
=================

Once you have performed the verification you can cast your vote by responding
to the vote thread on dev@arrow.apache.org and supply your result.

If the verification was successful you can send your +1 vote. We usually send
along with the vote the command that was executed and the local versions used.
As an example:

.. code-block::
+1
I've verified successfully the sources and binaries with:
TEST_DEFAULT=0 TEST_SOURCE=1 dev/release/verify-release-candidate.sh 15.0.0 1
TEST_DEFAULT=0 TEST_BINARIES=1 dev/release/verify-release-candidate.sh 15.0.0 1
with:
* Python 3.10.12
* gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
* NVIDIA CUDA Build cuda_11.5.r11.5/compiler.30672275_0
* openjdk version "17.0.9" 2023-10-17
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
* dotnet 7.0.115
* Ubuntu 22.04 LTS
If there were some issues during verification please report them on the
mail thread to diagnose the issue.

0 comments on commit d5f64e5

Please sign in to comment.