Skip to content

GH-46092: [C++] Add filesystem related options to Meson - #46101

Merged
kou merged 3 commits into
apache:mainfrom
WillAyd:meson-add-filesystem
Apr 14, 2025
Merged

kou merged 3 commits into
apache:mainfrom
WillAyd:meson-add-filesystem

Conversation

@WillAyd

@WillAyd WillAyd commented Apr 10, 2025 •

Copy link
Copy Markdown
Contributor

Rationale for this change

This continues adding support for the Meson build system by adding filesystem support

What changes are included in this PR?

This implements the filesystem directory and adds support for Azure. GCS and S3 are stubbed out but will raise an error when a user attempts to enable them, strictly because they look like larger integrations to get the dependency chain properly configured.

Are these changes tested?

Locally yes

Are there any user-facing changes?

No

@WillAyd

WillAyd commented Apr 10, 2025

Copy link
Copy Markdown
Contributor Author

@github-actions crossbow submit *meson

@github-actions

Copy link
Copy Markdown

Revision: a2bdd12cfadb5fb4c0ff33410b437cfc3e9637b4

Submitted crossbow builds: ursacomputing/crossbow @ actions-df2349b5fe

Task Status
test-conda-cpp-meson GitHub Actions

Comment thread cpp/meson.build Outdated

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.

Suggested change
needs_filesystem = get_option('filesystem') or needs_azure or needs_gcs or needs_s3 or needs_hdfs
needs_filesystem = get_option('filesystem') or needs_azure or needs_gcs or needs_hdfs or needs_s3

Comment thread cpp/meson.options Outdated

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.

Based on its README: https://github.com/googleapis/google-cloud-cpp?tab=readme-ov-file#google-cloud-platform-c-client-libraries

Suggested change
description: 'Build Arrow with GCS support (requires the GCloud SDK for C++)',
description: 'Build Arrow with GCS support (requires the Google Cloud Platform C++ Client Libraries)',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No problem - do you want me to update DefineOptions.cmake with the new description as well?

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.

Yes, please.

Comment thread cpp/src/arrow/filesystem/meson.build Outdated
Comment on lines 77 to 79

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.

Suggested change
if needs_s3
endif

Comment thread cpp/src/arrow/filesystem/meson.build Outdated

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.

Can we remove this?

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.

@WillAyd I think that we can merge this once this is resolved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think I am misunderstanding the request - I removed all the empty branches but this one has a test in it. I think we want to keep this around right?

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.

Ah, sorry. You're right. I misunderstood.

I thought that we have disabler() dependency for needs_hdfs here but it doesn't exist. We need this if needs_hdfs.

Comment thread cpp/src/arrow/meson.build Outdated
Comment on lines 292 to 293

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.

Azure SDK for C++ prepared vcpkg automatically without this: https://github.com/Azure/azure-sdk-for-cpp/blob/27c2e5d335c9306d08aa49bd5fe92d0cc1628fe0/cmake-modules/AzureVcpkg.cmake#L17-L41

We don't want to use vcpkg here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok great - I will set to FALSE then. Should I update the CMake configuration as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah nevermind - ignore comment above. I was thinking this ENABLED something but I see it DISABLEs

Comment thread cpp/src/arrow/meson.build Outdated
Comment on lines 313 to 318

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.

Could you remove this for now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No problem at all (for gcs and s3)

Comment thread cpp/src/arrow/meson.build Outdated

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.

Could you remove this for now?

@WillAyd

WillAyd commented Apr 11, 2025

Copy link
Copy Markdown
Contributor Author

@github-actions crossbow submit *meson

@github-actions

Copy link
Copy Markdown

Revision: 3355228

Submitted crossbow builds: ursacomputing/crossbow @ actions-f11410af11

Task Status
test-conda-cpp-meson GitHub Actions

Comment thread cpp/cmake_modules/DefineOptions.cmake Outdated

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.

Could you fix this failure?

https://github.com/apache/arrow/actions/runs/14430422114/job/40464526899?pr=46101#step:7:423

CMake Error at cmake_modules/DefineOptions.cmake:27 (message):
  description for ARROW_GCS contained a

          line 86 characters long!
          (max is 80). Split it into more lines with semicolons
Call Stack (most recent call first):
  cmake_modules/DefineOptions.cmake:47 (check_description_length)
  cmake_modules/DefineOptions.cmake:348 (define_option)
  CMakeLists.txt:224 (include)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Whoops - should be fixed now

@kou kou 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

@kou kou changed the title GH-46092: [C++] Add filesystem option to Meson GH-46092: [C++] Add filesystem related options to Meson Apr 14, 2025
@github-actions

Copy link
Copy Markdown

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

@kou
kou merged commit 6b64396 into apache:main Apr 14, 2025
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 6b64396.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 7 possible false positives for unstable benchmarks that are known to sometimes produce them.

zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Apr 15, 2025
…#46101)

### Rationale for this change

This continues adding support for the Meson build system by adding filesystem support

### What changes are included in this PR?

This implements the filesystem directory and adds support for Azure. GCS and S3 are stubbed out but will raise an error when a user attempts to enable them, strictly because they look like larger integrations to get the dependency chain properly configured.

### Are these changes tested?

Locally yes

### Are there any user-facing changes?

No
* GitHub Issue: apache#46092

Authored-by: Will Ayd <william.ayd@icloud.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
# specific language governing permissions and limitations
# under the License.

[wrap-file]

@pitrou pitrou Apr 23, 2025 •

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.

Since there is nothing in the filename that says so, can we please add comments to those files mentioning that they are used by Meson? Or perhaps add a README in this directory. @WillAyd

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure no problem - I'll add a README to the directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants