Skip to content

Commit

Permalink
ARROW-5054: [Release][Flight] Test Flight in Linux/macOS release veri…
Browse files Browse the repository at this point in the history
…fication scripts

Author: Sutou Kouhei <[email protected]>
Author: Wes McKinney <[email protected]>

Closes apache#4613 from wesm/ARROW-5054 and squashes the following commits:

a4917ca <Sutou Kouhei> Add Emacs configuration for editing .sh
487cf64 <Sutou Kouhei> Add missing ninja argument
575cfe5 <Sutou Kouhei> Fix path
cb8ea34 <Sutou Kouhei> Don't create dummy top-level .git to avoid Java test failure
84bfd31 <Sutou Kouhei> Restore Go test
a5a7b76 <Sutou Kouhei> Add support GLib test without configure
e73e270 <Sutou Kouhei> Update the required Node.js version
b81ef91 <Sutou Kouhei> Add support for verifying local source
3eaa826 <Sutou Kouhei> Use $PWD
49c3bda <Sutou Kouhei> Unify verification script again
f8e0f95 <Wes McKinney> Fix C++ unit tests at least
21c8719 <Wes McKinney> Add test-release-verification.sh script to help
3cee087 <Wes McKinney> Move release verification functions into a separate bash script to make reuse / testing easier
  • Loading branch information
kou authored and wesm committed Jun 25, 2019
1 parent eb96726 commit 6a5c43e
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 95 deletions.
20 changes: 20 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
;;; 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.

((sh-mode . ((indent-tabs-mode . nil)
(sh-indentation . 2)
(sh-basic-offset . 2))))
2 changes: 2 additions & 0 deletions dev/release/02-source-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def test_glib_configure
def test_csharp_git_commit_information
source
Dir.chdir("#{@tag_name}/csharp") do
FileUtils.mv("dummy.git", "../.git")
sh("dotnet", "pack", "-c", "Release")
FileUtils.mv("../.git", "dummy.git")
Dir.chdir("artifacts/Apache.Arrow/Release") do
sh("unzip", "Apache.Arrow.#{@snapshot_version}.nupkg")
FileUtils.chmod(0400, "Apache.Arrow.nuspec")
Expand Down
6 changes: 4 additions & 2 deletions dev/release/02-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ cp -R -L ${tag}.tmp ${tag}
rm -rf ${tag}.tmp

# Create a dummy .git/ directory to download the source files from GitHub with Source Link in C#.
mkdir ${tag}/.git && cd $_
dummy_git=${tag}/csharp/dummy.git
mkdir ${dummy_git}
pushd ${dummy_git}
echo ${release_hash} > HEAD
echo '[remote "origin"] url = https://github.com/apache/arrow.git' >> config
mkdir objects refs
cd -
popd

# Create new tarball from modified source directory
tar czf ${tarball} ${tag}
Expand Down
2 changes: 2 additions & 0 deletions dev/release/post-06-csharp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ curl \
rm -rf ${archive_name}
tar xf ${tar_gz}
pushd ${archive_name}/csharp
mv dummy.git ../.git
dotnet pack -c Release
mv ../.git dummy.git
for package in artifacts/Apache.Arrow/Release/*.{nupkg,snupkg}; do
dotnet nuget push \
${package} \
Expand Down
Loading

0 comments on commit 6a5c43e

Please sign in to comment.