Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.3k
ARROW-3759: [R][CI] Build and test (no libarrow) on Windows in Appveyor#4538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
af1852e94c9a4239236f38c3e898f7327edd5e8f4e1ba4839b6f6c8d18803c315c0342fb1991119b60dff4cf5c3567f04153c3a20328bc3784eef1b6d6a74eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -130,13 +130,6 @@ def test_update_version_pre_tag | ||
| "+Version: #{@release_version}"], | ||
| ], | ||
| }, | ||
| { | ||
| path: "r/src/Makevars.win", | ||
| hunks: [ | ||
| ["-VERSION = #{@previous_version}.9000", | ||
| "+VERSION = #{@release_version}"], | ||
| ], | ||
| }, | ||
| { | ||
| path: "ruby/red-arrow-cuda/lib/arrow-cuda/version.rb", | ||
| hunks: [ | ||
| @@ -279,13 +272,6 @@ def test_update_version_post_tag | ||
| "+Version: #{@release_version}.9000"], | ||
| ], | ||
| }, | ||
| { | ||
| path: "r/src/Makevars.win", | ||
| hunks: [ | ||
| ["-VERSION = #{@release_version}", | ||
| "+VERSION = #{@release_version}.9000"], | ||
| ], | ||
| }, | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are these changes about? Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This patch makes Makevars.win be generated dynamically, so there's no longer a file that needs to be updated in the release scripts. | ||
| { | ||
| path: "ruby/red-arrow-cuda/lib/arrow-cuda/version.rb", | ||
| hunks: [ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| #!/bin/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. | ||
| # generate code | ||
| if [ "$ARROW_R_DEV" == "TRUE" ]; then | ||
| echo "*** Generating code with data-raw/codegen.R" | ||
| "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" data-raw/codegen.R | ||
| fi | ||
| VERSION=$(grep ^Version DESCRIPTION | sed s/Version:\ //) | ||
| # Try to find/download a C++ Arrow binary | ||
| "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "tools/winlibs.R" $VERSION | ||
| # If binary not found, script exits nonzero | ||
| if [ $? -ne 0 ]; then | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this expected? And should you exit immediately if this failure is encountered. MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I can add some comments to explain. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok now I understand more clearly. I think this warrants a comment or clearer message, e.g. "Failed to download and extract libarrow runtime and dependencies. The R arrow package will compile with shim methods. Please run arrow::install_arrow() to install required runtime libraries and recompile this package with proper support." Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or separate this message in half, one for users, and a comment for maintainers. MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just pushed some comments | ||
| # We'll have to install without libarrow. Note to the user how to rectify. | ||
| echo "------------------------- NOTE ---------------------------" | ||
| echo "After installation, please run arrow::install_arrow() to install" | ||
| echo "required runtime libraries" | ||
| echo "---------------------------------------------------------" | ||
| else | ||
| # Set the right flags to point to and enable arrow/parquet | ||
| RWINLIB="../windows/arrow-${VERSION}" | ||
| PKG_CFLAGS="-I${RWINLIB}/include -DARROW_STATIC -DPARQUET_STATIC -DARROW_R_WITH_PARQUET -DARROW_R_WITH_ARROW" | ||
| PKG_LIBS="-L${RWINLIB}/lib"'$(subst gcc,,$(COMPILED_BY))$(R_ARCH) '"-L${RWINLIB}/lib"'$(R_ARCH) '"-lparquet -larrow -lthrift -lboost_regex-mt-s -ldouble-conversion -lz -lws2_32" | ||
| fi | ||
| echo "*** Writing Makevars.win" | ||
| sed -e "s|@cflags@|$PKG_CFLAGS|" -e "s|@libs@|$PKG_LIBS|" src/Makevars.in > src/Makevars.win | ||
| # Success | ||
| exit 0 | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small bash nit, MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is copypasta from | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.