Skip to content

Conversation

@icexelloss
Copy link
Contributor

@icexelloss icexelloss commented Apr 2, 2023

Rationale for this change

There was an issue with window R build introduced by this PR:
#34711

What changes are included in this PR?

Many changes to the build files

Are these changes tested?

crossbow builds

Are there any user-facing changes?

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

⚠️ GitHub issue #34843 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added Component: R awaiting committer review Awaiting committer review labels Apr 2, 2023
@icexelloss
Copy link
Contributor Author

@github-actions crossbow submit -g r -g cpp

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

Revision: db6b52b

Submitted crossbow builds: ursacomputing/crossbow @ actions-315577d6e3

Task Status
conda-linux-aarch64-cpu-r41 Azure
conda-linux-aarch64-cpu-r42 Azure
conda-linux-x64-cpu-r41 Azure
conda-linux-x64-cpu-r42 Azure
conda-osx-arm64-cpu-r41 Azure
conda-osx-arm64-cpu-r42 Azure
conda-osx-x64-cpu-r41 Azure
conda-osx-x64-cpu-r42 Azure
conda-win-x64-cpu-r41 Azure
homebrew-r-autobrew Github Actions
homebrew-r-brew Github Actions
r-binary-packages Github Actions
test-alpine-linux-cpp Github Actions
test-build-cpp-fuzz Github Actions
test-conda-cpp Github Actions
test-conda-cpp-valgrind Azure
test-cuda-cpp Github Actions
test-debian-10-cpp-amd64 Github Actions
test-debian-10-cpp-i386 Github Actions
test-debian-11-cpp-amd64 Github Actions
test-debian-11-cpp-i386 Github Actions
test-fedora-35-cpp Github Actions
test-fedora-r-clang-sanitizer Azure
test-r-arrow-backwards-compatibility Github Actions
test-r-depsource-bundled Azure
test-r-depsource-system Github Actions
test-r-dev-duckdb Github Actions
test-r-devdocs Github Actions
test-r-gcc-11 Github Actions
test-r-gcc-12 Github Actions
test-r-install-local Github Actions
test-r-install-local-minsizerel Github Actions
test-r-library-r-base-latest Azure
test-r-linux-as-cran Github Actions
test-r-linux-rchk Github Actions
test-r-linux-valgrind Azure
test-r-minimal-build Azure
test-r-offline-maximal Github Actions
test-r-offline-minimal Azure
test-r-rhub-debian-gcc-devel-lto-latest Azure
test-r-rhub-debian-gcc-release-custom-ccache Azure
test-r-rhub-ubuntu-gcc-release-latest Azure
test-r-rstudio-r-base-4.1-opensuse153 Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8 Azure
test-r-rstudio-r-base-4.2-focal Azure
test-r-ubuntu-22.04 Github Actions
test-r-versions Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-20 Github Actions
test-ubuntu-20.04-cpp-bundled Github Actions
test-ubuntu-20.04-cpp-minimal-with-formats Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions
test-ubuntu-22.04-cpp Github Actions
test-ubuntu-r-sanitizer Azure

@icexelloss icexelloss changed the title GH-34843: Fix windows R build GH-34843: [R} Fix windows R build Apr 3, 2023
@thisisnic thisisnic changed the title GH-34843: [R} Fix windows R build GH-34843: [R] Fix windows R build Apr 3, 2023
@icexelloss icexelloss requested a review from assignUser as a code owner April 3, 2023 12:44
@icexelloss
Copy link
Contributor Author

@github-actions crossbow submit -g r -g cpp

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Revision: 0c234bea39b22795628685dc787f73596c8a60e1

Submitted crossbow builds: ursacomputing/crossbow @ actions-eeab399aca

Task Status
conda-linux-aarch64-cpu-r41 Azure
conda-linux-aarch64-cpu-r42 Azure
conda-linux-x64-cpu-r41 Azure
conda-linux-x64-cpu-r42 Azure
conda-osx-arm64-cpu-r41 Azure
conda-osx-arm64-cpu-r42 Azure
conda-osx-x64-cpu-r41 Azure
conda-osx-x64-cpu-r42 Azure
conda-win-x64-cpu-r41 Azure
homebrew-r-autobrew Github Actions
homebrew-r-brew Github Actions
r-binary-packages Github Actions
test-alpine-linux-cpp Github Actions
test-build-cpp-fuzz Github Actions
test-conda-cpp Github Actions
test-conda-cpp-valgrind Azure
test-cuda-cpp Github Actions
test-debian-10-cpp-amd64 Github Actions
test-debian-10-cpp-i386 Github Actions
test-debian-11-cpp-amd64 Github Actions
test-debian-11-cpp-i386 Github Actions
test-fedora-35-cpp Github Actions
test-fedora-r-clang-sanitizer Azure
test-r-arrow-backwards-compatibility Github Actions
test-r-depsource-bundled Azure
test-r-depsource-system Github Actions
test-r-dev-duckdb Github Actions
test-r-devdocs Github Actions
test-r-gcc-11 Github Actions
test-r-gcc-12 Github Actions
test-r-install-local Github Actions
test-r-install-local-minsizerel Github Actions
test-r-library-r-base-latest Azure
test-r-linux-as-cran Github Actions
test-r-linux-rchk Github Actions
test-r-linux-valgrind Azure
test-r-minimal-build Azure
test-r-offline-maximal Github Actions
test-r-offline-minimal Azure
test-r-rhub-debian-gcc-devel-lto-latest Azure
test-r-rhub-debian-gcc-release-custom-ccache Azure
test-r-rhub-ubuntu-gcc-release-latest Azure
test-r-rstudio-r-base-4.1-opensuse153 Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8 Azure
test-r-rstudio-r-base-4.2-focal Azure
test-r-ubuntu-22.04 Github Actions
test-r-versions Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-20 Github Actions
test-ubuntu-20.04-cpp-bundled Github Actions
test-ubuntu-20.04-cpp-minimal-with-formats Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions
test-ubuntu-22.04-cpp Github Actions
test-ubuntu-r-sanitizer Azure

@icexelloss
Copy link
Contributor Author

@github-actions crossbow submit -g r -g cpp

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Revision: 13de798

Submitted crossbow builds: ursacomputing/crossbow @ actions-d25bb2c4f9

Task Status
conda-linux-aarch64-cpu-r41 Azure
conda-linux-aarch64-cpu-r42 Azure
conda-linux-x64-cpu-r41 Azure
conda-linux-x64-cpu-r42 Azure
conda-osx-arm64-cpu-r41 Azure
conda-osx-arm64-cpu-r42 Azure
conda-osx-x64-cpu-r41 Azure
conda-osx-x64-cpu-r42 Azure
conda-win-x64-cpu-r41 Azure
homebrew-r-autobrew Github Actions
homebrew-r-brew Github Actions
r-binary-packages Github Actions
test-alpine-linux-cpp Github Actions
test-build-cpp-fuzz Github Actions
test-conda-cpp Github Actions
test-conda-cpp-valgrind Azure
test-cuda-cpp Github Actions
test-debian-10-cpp-amd64 Github Actions
test-debian-10-cpp-i386 Github Actions
test-debian-11-cpp-amd64 Github Actions
test-debian-11-cpp-i386 Github Actions
test-fedora-35-cpp Github Actions
test-fedora-r-clang-sanitizer Azure
test-r-arrow-backwards-compatibility Github Actions
test-r-depsource-bundled Azure
test-r-depsource-system Github Actions
test-r-dev-duckdb Github Actions
test-r-devdocs Github Actions
test-r-gcc-11 Github Actions
test-r-gcc-12 Github Actions
test-r-install-local Github Actions
test-r-install-local-minsizerel Github Actions
test-r-library-r-base-latest Azure
test-r-linux-as-cran Github Actions
test-r-linux-rchk Github Actions
test-r-linux-valgrind Azure
test-r-minimal-build Azure
test-r-offline-maximal Github Actions
test-r-offline-minimal Azure
test-r-rhub-debian-gcc-devel-lto-latest Azure
test-r-rhub-debian-gcc-release-custom-ccache Azure
test-r-rhub-ubuntu-gcc-release-latest Azure
test-r-rstudio-r-base-4.1-opensuse153 Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8 Azure
test-r-rstudio-r-base-4.2-focal Azure
test-r-ubuntu-22.04 Github Actions
test-r-versions Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-20 Github Actions
test-ubuntu-20.04-cpp-bundled Github Actions
test-ubuntu-20.04-cpp-minimal-with-formats Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions
test-ubuntu-22.04-cpp Github Actions
test-ubuntu-r-sanitizer Azure

@icexelloss
Copy link
Contributor Author

For the mac build: https://github.com/ursacomputing/crossbow/actions/runs/4596858239/jobs/8118844443

I noticed "ARROW_ACERO" is not on from log on
(L815)

==> Installing apache-arrow-static --HEAD

(L900)

==> cmake ../cpp -DCMAKE_INSTALL_PREFIX=/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/build-apache-arrow-static/Cellar/apache-arrow-static/HEAD-0c234be -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -DARROW_BUILD_SHARED=OFF -DARROW_BUILD_UTILITIES=ON -DARROW_COMPUTE=ON -DARROW_CSV=ON -DARROW_DATASET=ON -DARROW_FILESYSTEM=ON -DARROW_GCS=ON -DARROW_JEMALLOC=ON -DARROW_JSON=ON -DARROW_MIMALLOC=ON -DARROW_PARQUET=ON -DARROW_S3=ON -DARROW_VERBOSE_THIRDPARTY_BUILD=ON -DARROW_WITH_BROTLI=ON -DARROW_WITH_BZ2=ON -DARROW_WITH_LZ4=ON -DARROW_WITH_SNAPPY=ON -DARROW_WITH_ZLIB=ON -DARROW_WITH_ZSTD=ON -DLZ4_HOME=/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/build-apache-arrow-static/opt/lz4 -DPARQUET_BUILD_EXECUTABLES=ON -DTHRIFT_HOME=/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/build-apache-arrow-static/opt/thrift

But I have yet to figure out where is the macOS build file for this.

@icexelloss
Copy link
Contributor Author

@assignUser per comments here: #34844 (comment)

I am not too familiar with the build system - do you by chance know where the build script for "R on mac" is? (Or knows who might know that)?

@assignUser
Copy link
Member

Yes they are in dev/tasks/homebrew-formulae there are multiple once for homebrew and autpbrew (the shadow version of homebrew for use on CRAN/EOL macOS)

@icexelloss icexelloss requested review from kou and raulcd as code owners April 3, 2023 15:26
@icexelloss
Copy link
Contributor Author

@github-actions crossbow submit -g r -g cpp

@icexelloss
Copy link
Contributor Author

Thanks @assignUser! Sorry to bother u with another question, looks like my attempt to fix window build is unsuccessful after passing (-larrow_acero) to the linking option. I suspect that the Arrow C++ library is not build with Acero in the window R build. Do you by any chance knows which file controls the Arrow C++ build flag in the "windows R build?

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Revision: 2d48623

Submitted crossbow builds: ursacomputing/crossbow @ actions-fdf767b324

Task Status
conda-linux-aarch64-cpu-r41 Azure
conda-linux-aarch64-cpu-r42 Azure
conda-linux-x64-cpu-r41 Azure
conda-linux-x64-cpu-r42 Azure
conda-osx-arm64-cpu-r41 Azure
conda-osx-arm64-cpu-r42 Azure
conda-osx-x64-cpu-r41 Azure
conda-osx-x64-cpu-r42 Azure
conda-win-x64-cpu-r41 Azure
homebrew-r-autobrew Github Actions
homebrew-r-brew Github Actions
r-binary-packages Github Actions
test-alpine-linux-cpp Github Actions
test-build-cpp-fuzz Github Actions
test-conda-cpp Github Actions
test-conda-cpp-valgrind Azure
test-cuda-cpp Github Actions
test-debian-10-cpp-amd64 Github Actions
test-debian-10-cpp-i386 Github Actions
test-debian-11-cpp-amd64 Github Actions
test-debian-11-cpp-i386 Github Actions
test-fedora-35-cpp Github Actions
test-fedora-r-clang-sanitizer Azure
test-r-arrow-backwards-compatibility Github Actions
test-r-depsource-bundled Azure
test-r-depsource-system Github Actions
test-r-dev-duckdb Github Actions
test-r-devdocs Github Actions
test-r-gcc-11 Github Actions
test-r-gcc-12 Github Actions
test-r-install-local Github Actions
test-r-install-local-minsizerel Github Actions
test-r-library-r-base-latest Azure
test-r-linux-as-cran Github Actions
test-r-linux-rchk Github Actions
test-r-linux-valgrind Azure
test-r-minimal-build Azure
test-r-offline-maximal Github Actions
test-r-offline-minimal Azure
test-r-rhub-debian-gcc-devel-lto-latest Azure
test-r-rhub-debian-gcc-release-custom-ccache Azure
test-r-rhub-ubuntu-gcc-release-latest Azure
test-r-rstudio-r-base-4.1-opensuse153 Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8 Azure
test-r-rstudio-r-base-4.2-focal Azure
test-r-ubuntu-22.04 Github Actions
test-r-versions Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-20 Github Actions
test-ubuntu-20.04-cpp-bundled Github Actions
test-ubuntu-20.04-cpp-minimal-with-formats Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions
test-ubuntu-22.04-cpp Github Actions
test-ubuntu-r-sanitizer Azure

@icexelloss
Copy link
Contributor Author

@github-actions crossbow submit -g r -g cpp

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Revision: 94ab634

Submitted crossbow builds: ursacomputing/crossbow @ actions-6f5022991e

Task Status
conda-linux-aarch64-cpu-r41 Azure
conda-linux-aarch64-cpu-r42 Azure
conda-linux-x64-cpu-r41 Azure
conda-linux-x64-cpu-r42 Azure
conda-osx-arm64-cpu-r41 Azure
conda-osx-arm64-cpu-r42 Azure
conda-osx-x64-cpu-r41 Azure
conda-osx-x64-cpu-r42 Azure
conda-win-x64-cpu-r41 Azure
homebrew-r-autobrew Github Actions
homebrew-r-brew Github Actions
r-binary-packages Github Actions
test-alpine-linux-cpp Github Actions
test-build-cpp-fuzz Github Actions
test-conda-cpp Github Actions
test-conda-cpp-valgrind Azure
test-cuda-cpp Github Actions
test-debian-10-cpp-amd64 Github Actions
test-debian-10-cpp-i386 Github Actions
test-debian-11-cpp-amd64 Github Actions
test-debian-11-cpp-i386 Github Actions
test-fedora-35-cpp Github Actions
test-fedora-r-clang-sanitizer Azure
test-r-arrow-backwards-compatibility Github Actions
test-r-depsource-bundled Azure
test-r-depsource-system Github Actions
test-r-dev-duckdb Github Actions
test-r-devdocs Github Actions
test-r-gcc-11 Github Actions
test-r-gcc-12 Github Actions
test-r-install-local Github Actions
test-r-install-local-minsizerel Github Actions
test-r-library-r-base-latest Azure
test-r-linux-as-cran Github Actions
test-r-linux-rchk Github Actions
test-r-linux-valgrind Azure
test-r-minimal-build Azure
test-r-offline-maximal Github Actions
test-r-offline-minimal Azure
test-r-rhub-debian-gcc-devel-lto-latest Azure
test-r-rhub-debian-gcc-release-custom-ccache Azure
test-r-rhub-ubuntu-gcc-release-latest Azure
test-r-rstudio-r-base-4.1-opensuse153 Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8 Azure
test-r-rstudio-r-base-4.2-focal Azure
test-r-ubuntu-22.04 Github Actions
test-r-versions Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-20 Github Actions
test-ubuntu-20.04-cpp-bundled Github Actions
test-ubuntu-20.04-cpp-minimal-with-formats Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions
test-ubuntu-22.04-cpp Github Actions
test-ubuntu-r-sanitizer Azure

@icexelloss
Copy link
Contributor Author

cc @westonpace - add u as collaborator to my repo - feel free to push

@westonpace
Copy link
Member

Ok. I'm reproducing the test-r-minimal-build failure now. I'll try pulling these changes and then see what else needs done.

@assignUser
Copy link
Member

assignUser commented Apr 3, 2023

@icexelloss it looks like you need to add these changes to ci/scripts/r_windows_build.sh and ci/scripts/PKGBUILD

@westonpace
Copy link
Member

These jobs are incredibly long running 😲 . In the meantime I verified that the test-alpine-linux-cpp failure is unrelated and have a fix proposed in #34870.

* Making Acero off on minimal builds.  Adding 'skip if no snappy' to parquet test that needs snappy.

* Various changes to allow R to build without acero

* Skipping query engine tests if acero not enabled

* Disabling example that depended on Acero if Acero is not enabled

* Add arrow_with_acero function

* Turns out @examplesIf has to replace @examples
@westonpace
Copy link
Member

@github-actions crossbow submit test-r-minimal-build

@github-actions
Copy link

github-actions bot commented Apr 5, 2023

Revision: fdbc370

Submitted crossbow builds: ursacomputing/crossbow @ actions-1eeda5ce75

Task Status
test-r-minimal-build Azure

@westonpace
Copy link
Member

@github-actions crossbow submit test-r-minimal-build

@github-actions
Copy link

github-actions bot commented Apr 5, 2023

Revision: fdbc370

Submitted crossbow builds: ursacomputing/crossbow @ actions-ede3ef8fbe

Task Status
test-r-minimal-build Azure

Copy link
Member

@assignUser assignUser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 merging this to unblock the tests Thanks working on this!

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Apr 5, 2023
@icexelloss
Copy link
Contributor Author

@github-actions crossbow submit test-r-minimal-build r-binary-packages homebrew-r-autobrew

@github-actions
Copy link

github-actions bot commented Apr 5, 2023

Revision: fdbc370

Submitted crossbow builds: ursacomputing/crossbow @ actions-82ec0861a3

Task Status
homebrew-r-autobrew Github Actions
r-binary-packages Github Actions
test-r-minimal-build Azure

@assignUser
Copy link
Member

I'll merge this to get things going again!

@assignUser assignUser merged commit c219863 into apache:main Apr 5, 2023
@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Apr 5, 2023
@ursabot
Copy link

ursabot commented Apr 6, 2023

Benchmark runs are scheduled for baseline = 2678db3 and contender = c219863. c219863 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.0% ⬆️0.0%] test-mac-arm
[Finished ⬇️1.28% ⬆️0.26%] ursa-i9-9960x
[Failed ⬇️0.0% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] c2198630 ec2-t3-xlarge-us-east-2
[Failed] c2198630 test-mac-arm
[Finished] c2198630 ursa-i9-9960x
[Failed] c2198630 ursa-thinkcentre-m75q
[Finished] 2678db3d ec2-t3-xlarge-us-east-2
[Failed] 2678db3d test-mac-arm
[Finished] 2678db3d ursa-i9-9960x
[Failed] 2678db3d ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@nealrichardson
Copy link
Member

👍 @thisisnic @assignUser reminder that these changes will need to be upstreamed to autobrew at CRAN release time (fyi @jeroen)

nealrichardson added a commit that referenced this pull request Apr 7, 2023
#34844 inadvertently resulted in `skip_if_not_available("acero")` to
always skip.
liujiacheng777 pushed a commit to LoongArch-Python/arrow that referenced this pull request May 11, 2023
apache#34844 inadvertently resulted in `skip_if_not_available("acero")` to
always skip.
ArgusLi pushed a commit to Bit-Quill/arrow that referenced this pull request May 15, 2023
…he#34844)

### Rationale for this change
There was an issue with window R build introduced by this PR:
apache#34711

### What changes are included in this PR?
Many changes to the build files

### Are these changes tested?
crossbow builds

### Are there any user-facing changes?

* Closes: apache#34843

Lead-authored-by: Weston Pace <weston.pace@gmail.com>
Co-authored-by: Li Jin <ice.xelloss@gmail.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
ArgusLi pushed a commit to Bit-Quill/arrow that referenced this pull request May 15, 2023
apache#34844 inadvertently resulted in `skip_if_not_available("acero")` to
always skip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[R] Windows R build fails

8 participants