Skip to content

GH-34843: [R] Fix R build failed caused by Acero refactor - #34844

Merged
assignUser merged 11 commits into
apache:mainfrom
icexelloss:refactor-r-window
Apr 5, 2023
Merged

GH-34843: [R] Fix R build failed caused by Acero refactor#34844
assignUser merged 11 commits into
apache:mainfrom
icexelloss:refactor-r-window

Conversation

@icexelloss

@icexellossicexelloss commented Apr 2, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@github-actions

Copy link
Copy Markdown

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

@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown

Revision: db6b52b

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

TaskStatus
conda-linux-aarch64-cpu-r41Azure
conda-linux-aarch64-cpu-r42Azure
conda-linux-x64-cpu-r41Azure
conda-linux-x64-cpu-r42Azure
conda-osx-arm64-cpu-r41Azure
conda-osx-arm64-cpu-r42Azure
conda-osx-x64-cpu-r41Azure
conda-osx-x64-cpu-r42Azure
conda-win-x64-cpu-r41Azure
homebrew-r-autobrewGithub Actions
homebrew-r-brewGithub Actions
r-binary-packagesGithub Actions
test-alpine-linux-cppGithub Actions
test-build-cpp-fuzzGithub Actions
test-conda-cppGithub Actions
test-conda-cpp-valgrindAzure
test-cuda-cppGithub Actions
test-debian-10-cpp-amd64Github Actions
test-debian-10-cpp-i386Github Actions
test-debian-11-cpp-amd64Github Actions
test-debian-11-cpp-i386Github Actions
test-fedora-35-cppGithub Actions
test-fedora-r-clang-sanitizerAzure
test-r-arrow-backwards-compatibilityGithub Actions
test-r-depsource-bundledAzure
test-r-depsource-systemGithub Actions
test-r-dev-duckdbGithub Actions
test-r-devdocsGithub Actions
test-r-gcc-11Github Actions
test-r-gcc-12Github Actions
test-r-install-localGithub Actions
test-r-install-local-minsizerelGithub Actions
test-r-library-r-base-latestAzure
test-r-linux-as-cranGithub Actions
test-r-linux-rchkGithub Actions
test-r-linux-valgrindAzure
test-r-minimal-buildAzure
test-r-offline-maximalGithub Actions
test-r-offline-minimalAzure
test-r-rhub-debian-gcc-devel-lto-latestAzure
test-r-rhub-debian-gcc-release-custom-ccacheAzure
test-r-rhub-ubuntu-gcc-release-latestAzure
test-r-rstudio-r-base-4.1-opensuse153Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8Azure
test-r-rstudio-r-base-4.2-focalAzure
test-r-ubuntu-22.04Github Actions
test-r-versionsGithub Actions
test-ubuntu-20.04-cppGithub Actions
test-ubuntu-20.04-cpp-20Github Actions
test-ubuntu-20.04-cpp-bundledGithub Actions
test-ubuntu-20.04-cpp-minimal-with-formatsGithub Actions
test-ubuntu-20.04-cpp-thread-sanitizerGithub Actions
test-ubuntu-22.04-cppGithub Actions
test-ubuntu-r-sanitizerAzure

@icexellossicexelloss changed the title GH-34843: Fix windows R buildGH-34843: [R} Fix windows R buildApr 3, 2023
@thisisnicthisisnic changed the title GH-34843: [R} Fix windows R buildGH-34843: [R] Fix windows R buildApr 3, 2023
@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown

Revision: 0c234bea39b22795628685dc787f73596c8a60e1

Submitted crossbow builds: ursacomputing/crossbow @ actions-eeab399aca

TaskStatus
conda-linux-aarch64-cpu-r41Azure
conda-linux-aarch64-cpu-r42Azure
conda-linux-x64-cpu-r41Azure
conda-linux-x64-cpu-r42Azure
conda-osx-arm64-cpu-r41Azure
conda-osx-arm64-cpu-r42Azure
conda-osx-x64-cpu-r41Azure
conda-osx-x64-cpu-r42Azure
conda-win-x64-cpu-r41Azure
homebrew-r-autobrewGithub Actions
homebrew-r-brewGithub Actions
r-binary-packagesGithub Actions
test-alpine-linux-cppGithub Actions
test-build-cpp-fuzzGithub Actions
test-conda-cppGithub Actions
test-conda-cpp-valgrindAzure
test-cuda-cppGithub Actions
test-debian-10-cpp-amd64Github Actions
test-debian-10-cpp-i386Github Actions
test-debian-11-cpp-amd64Github Actions
test-debian-11-cpp-i386Github Actions
test-fedora-35-cppGithub Actions
test-fedora-r-clang-sanitizerAzure
test-r-arrow-backwards-compatibilityGithub Actions
test-r-depsource-bundledAzure
test-r-depsource-systemGithub Actions
test-r-dev-duckdbGithub Actions
test-r-devdocsGithub Actions
test-r-gcc-11Github Actions
test-r-gcc-12Github Actions
test-r-install-localGithub Actions
test-r-install-local-minsizerelGithub Actions
test-r-library-r-base-latestAzure
test-r-linux-as-cranGithub Actions
test-r-linux-rchkGithub Actions
test-r-linux-valgrindAzure
test-r-minimal-buildAzure
test-r-offline-maximalGithub Actions
test-r-offline-minimalAzure
test-r-rhub-debian-gcc-devel-lto-latestAzure
test-r-rhub-debian-gcc-release-custom-ccacheAzure
test-r-rhub-ubuntu-gcc-release-latestAzure
test-r-rstudio-r-base-4.1-opensuse153Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8Azure
test-r-rstudio-r-base-4.2-focalAzure
test-r-ubuntu-22.04Github Actions
test-r-versionsGithub Actions
test-ubuntu-20.04-cppGithub Actions
test-ubuntu-20.04-cpp-20Github Actions
test-ubuntu-20.04-cpp-bundledGithub Actions
test-ubuntu-20.04-cpp-minimal-with-formatsGithub Actions
test-ubuntu-20.04-cpp-thread-sanitizerGithub Actions
test-ubuntu-22.04-cppGithub Actions
test-ubuntu-r-sanitizerAzure

@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown

Revision: 13de798

Submitted crossbow builds: ursacomputing/crossbow @ actions-d25bb2c4f9

TaskStatus
conda-linux-aarch64-cpu-r41Azure
conda-linux-aarch64-cpu-r42Azure
conda-linux-x64-cpu-r41Azure
conda-linux-x64-cpu-r42Azure
conda-osx-arm64-cpu-r41Azure
conda-osx-arm64-cpu-r42Azure
conda-osx-x64-cpu-r41Azure
conda-osx-x64-cpu-r42Azure
conda-win-x64-cpu-r41Azure
homebrew-r-autobrewGithub Actions
homebrew-r-brewGithub Actions
r-binary-packagesGithub Actions
test-alpine-linux-cppGithub Actions
test-build-cpp-fuzzGithub Actions
test-conda-cppGithub Actions
test-conda-cpp-valgrindAzure
test-cuda-cppGithub Actions
test-debian-10-cpp-amd64Github Actions
test-debian-10-cpp-i386Github Actions
test-debian-11-cpp-amd64Github Actions
test-debian-11-cpp-i386Github Actions
test-fedora-35-cppGithub Actions
test-fedora-r-clang-sanitizerAzure
test-r-arrow-backwards-compatibilityGithub Actions
test-r-depsource-bundledAzure
test-r-depsource-systemGithub Actions
test-r-dev-duckdbGithub Actions
test-r-devdocsGithub Actions
test-r-gcc-11Github Actions
test-r-gcc-12Github Actions
test-r-install-localGithub Actions
test-r-install-local-minsizerelGithub Actions
test-r-library-r-base-latestAzure
test-r-linux-as-cranGithub Actions
test-r-linux-rchkGithub Actions
test-r-linux-valgrindAzure
test-r-minimal-buildAzure
test-r-offline-maximalGithub Actions
test-r-offline-minimalAzure
test-r-rhub-debian-gcc-devel-lto-latestAzure
test-r-rhub-debian-gcc-release-custom-ccacheAzure
test-r-rhub-ubuntu-gcc-release-latestAzure
test-r-rstudio-r-base-4.1-opensuse153Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8Azure
test-r-rstudio-r-base-4.2-focalAzure
test-r-ubuntu-22.04Github Actions
test-r-versionsGithub Actions
test-ubuntu-20.04-cppGithub Actions
test-ubuntu-20.04-cpp-20Github Actions
test-ubuntu-20.04-cpp-bundledGithub Actions
test-ubuntu-20.04-cpp-minimal-with-formatsGithub Actions
test-ubuntu-20.04-cpp-thread-sanitizerGithub Actions
test-ubuntu-22.04-cppGithub Actions
test-ubuntu-r-sanitizerAzure

@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

@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
Copy Markdown
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

Copy link
Copy Markdown
ContributorAuthor

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

@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown

Revision: 2d48623

Submitted crossbow builds: ursacomputing/crossbow @ actions-fdf767b324

TaskStatus
conda-linux-aarch64-cpu-r41Azure
conda-linux-aarch64-cpu-r42Azure
conda-linux-x64-cpu-r41Azure
conda-linux-x64-cpu-r42Azure
conda-osx-arm64-cpu-r41Azure
conda-osx-arm64-cpu-r42Azure
conda-osx-x64-cpu-r41Azure
conda-osx-x64-cpu-r42Azure
conda-win-x64-cpu-r41Azure
homebrew-r-autobrewGithub Actions
homebrew-r-brewGithub Actions
r-binary-packagesGithub Actions
test-alpine-linux-cppGithub Actions
test-build-cpp-fuzzGithub Actions
test-conda-cppGithub Actions
test-conda-cpp-valgrindAzure
test-cuda-cppGithub Actions
test-debian-10-cpp-amd64Github Actions
test-debian-10-cpp-i386Github Actions
test-debian-11-cpp-amd64Github Actions
test-debian-11-cpp-i386Github Actions
test-fedora-35-cppGithub Actions
test-fedora-r-clang-sanitizerAzure
test-r-arrow-backwards-compatibilityGithub Actions
test-r-depsource-bundledAzure
test-r-depsource-systemGithub Actions
test-r-dev-duckdbGithub Actions
test-r-devdocsGithub Actions
test-r-gcc-11Github Actions
test-r-gcc-12Github Actions
test-r-install-localGithub Actions
test-r-install-local-minsizerelGithub Actions
test-r-library-r-base-latestAzure
test-r-linux-as-cranGithub Actions
test-r-linux-rchkGithub Actions
test-r-linux-valgrindAzure
test-r-minimal-buildAzure
test-r-offline-maximalGithub Actions
test-r-offline-minimalAzure
test-r-rhub-debian-gcc-devel-lto-latestAzure
test-r-rhub-debian-gcc-release-custom-ccacheAzure
test-r-rhub-ubuntu-gcc-release-latestAzure
test-r-rstudio-r-base-4.1-opensuse153Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8Azure
test-r-rstudio-r-base-4.2-focalAzure
test-r-ubuntu-22.04Github Actions
test-r-versionsGithub Actions
test-ubuntu-20.04-cppGithub Actions
test-ubuntu-20.04-cpp-20Github Actions
test-ubuntu-20.04-cpp-bundledGithub Actions
test-ubuntu-20.04-cpp-minimal-with-formatsGithub Actions
test-ubuntu-20.04-cpp-thread-sanitizerGithub Actions
test-ubuntu-22.04-cppGithub Actions
test-ubuntu-r-sanitizerAzure

@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown

Revision: 94ab634

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

TaskStatus
conda-linux-aarch64-cpu-r41Azure
conda-linux-aarch64-cpu-r42Azure
conda-linux-x64-cpu-r41Azure
conda-linux-x64-cpu-r42Azure
conda-osx-arm64-cpu-r41Azure
conda-osx-arm64-cpu-r42Azure
conda-osx-x64-cpu-r41Azure
conda-osx-x64-cpu-r42Azure
conda-win-x64-cpu-r41Azure
homebrew-r-autobrewGithub Actions
homebrew-r-brewGithub Actions
r-binary-packagesGithub Actions
test-alpine-linux-cppGithub Actions
test-build-cpp-fuzzGithub Actions
test-conda-cppGithub Actions
test-conda-cpp-valgrindAzure
test-cuda-cppGithub Actions
test-debian-10-cpp-amd64Github Actions
test-debian-10-cpp-i386Github Actions
test-debian-11-cpp-amd64Github Actions
test-debian-11-cpp-i386Github Actions
test-fedora-35-cppGithub Actions
test-fedora-r-clang-sanitizerAzure
test-r-arrow-backwards-compatibilityGithub Actions
test-r-depsource-bundledAzure
test-r-depsource-systemGithub Actions
test-r-dev-duckdbGithub Actions
test-r-devdocsGithub Actions
test-r-gcc-11Github Actions
test-r-gcc-12Github Actions
test-r-install-localGithub Actions
test-r-install-local-minsizerelGithub Actions
test-r-library-r-base-latestAzure
test-r-linux-as-cranGithub Actions
test-r-linux-rchkGithub Actions
test-r-linux-valgrindAzure
test-r-minimal-buildAzure
test-r-offline-maximalGithub Actions
test-r-offline-minimalAzure
test-r-rhub-debian-gcc-devel-lto-latestAzure
test-r-rhub-debian-gcc-release-custom-ccacheAzure
test-r-rhub-ubuntu-gcc-release-latestAzure
test-r-rstudio-r-base-4.1-opensuse153Azure
test-r-rstudio-r-base-4.2-centos7-devtoolset-8Azure
test-r-rstudio-r-base-4.2-focalAzure
test-r-ubuntu-22.04Github Actions
test-r-versionsGithub Actions
test-ubuntu-20.04-cppGithub Actions
test-ubuntu-20.04-cpp-20Github Actions
test-ubuntu-20.04-cpp-bundledGithub Actions
test-ubuntu-20.04-cpp-minimal-with-formatsGithub Actions
test-ubuntu-20.04-cpp-thread-sanitizerGithub Actions
test-ubuntu-22.04-cppGithub Actions
test-ubuntu-r-sanitizerAzure

@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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

@westonpace

Copy link
Copy Markdown
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

assignUser commented Apr 3, 2023

Copy link
Copy Markdown
Member

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

@westonpace

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@github-actions

Copy link
Copy Markdown

Revision: fdbc370

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

TaskStatus
test-r-minimal-buildAzure

@westonpace

Copy link
Copy Markdown
Member

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

@github-actions

Copy link
Copy Markdown

Revision: fdbc370

Submitted crossbow builds: ursacomputing/crossbow @ actions-ede3ef8fbe

TaskStatus
test-r-minimal-buildAzure

@assignUserassignUser left a comment

Copy link
Copy Markdown
Member

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-actionsgithub-actionsBot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Apr 5, 2023
@icexelloss

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown

Revision: fdbc370

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

TaskStatus
homebrew-r-autobrewGithub Actions
r-binary-packagesGithub Actions
test-r-minimal-buildAzure

@assignUser

Copy link
Copy Markdown
Member

I'll merge this to get things going again!

@assignUser
assignUser merged commit c219863 into apache:mainApr 5, 2023
@github-actionsgithub-actionsBot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Apr 5, 2023
@ursabot

Copy link
Copy Markdown

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
Copy Markdown
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 freeto 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

@icexelloss@assignUser@westonpace@thisisnic@ursabot@nealrichardson@kou@paleolimbot