Skip to content

Conversation

@WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Aug 8, 2025

Rationale for this change

The meson configuration is missing some symbols for flight that appear to come from the testing library.

What changes are included in this PR?

Updates to the Meson configuration

Are these changes tested?

Yes

Are there any user-facing changes?

No

@WillAyd WillAyd requested a review from lidavidm as a code owner August 8, 2025 18:19
@github-actions
Copy link

github-actions bot commented Aug 8, 2025

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

@WillAyd WillAyd force-pushed the fix-flight-visibility branch 2 times, most recently from a959636 to 84ec299 Compare August 8, 2025 18:23
@WillAyd WillAyd added the CI: Extra Run extra CI label Aug 8, 2025
@WillAyd WillAyd marked this pull request as draft August 8, 2025 18:23
@WillAyd WillAyd force-pushed the fix-flight-visibility branch from 84ec299 to 209c2a9 Compare August 8, 2025 19:15
@WillAyd WillAyd force-pushed the fix-flight-visibility branch from 209c2a9 to f040de5 Compare August 8, 2025 21:45
@WillAyd WillAyd marked this pull request as ready for review August 8, 2025 22:03
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Seems fine to me, but I'm not familiar with Meson. Anything that jumps out to you @kou?

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Aug 9, 2025
arrow_testing_dep,
rapidjson_dep,
gflags_dep,
gtest_dep,
Copy link
Member

Choose a reason for hiding this comment

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

Do we need gtest_dep with arrow_testing_dep?
arrow_testing_dep includes gtest_main_dep.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its a bit confusing and there might be a better way to word things, but with this PR we now have a few dependencies being declared:

  • arrow_testing_dep, which just exposes the testing library
  • arrow_test_dep, which exposes multiple dependencies that are used to compile and run tests in arrow
  • arrow_test_dep_no_main which is used by tests that declare their own main function

I could use arrow_test_dep_no_main here instead; it would add a few superfluous dependencies but is closer to what this test requires

Copy link
Member

Choose a reason for hiding this comment

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

Ah, sorry. I was wrong.

Let's use arrow_test_dep_no_main here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK - I think I've used that where it makes sense in this PR. Let me know what you think!

arrow_testing_dep,
filesystem_dep,
gmock_dep,
gtest_main_dep,
Copy link
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 with arrow_testing_dep?

arrow_testing_dep,
filesystem_dep,
gmock_dep,
gtest_dep,
Copy link
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 with arrow_testing_dep?

arrow_dep,
arrow_testing_dep,
benchmark_main_dep,
gtest_dep,
Copy link
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 with arrow_testing_dep?

Comment on lines 243 to 244
gtest_dep,
gmock_dep,
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove them with arrow_testing_dep?

],
)

grpc_cpp = dependency('grpc++')
Copy link
Member

Choose a reason for hiding this comment

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

It seems that this isn't used in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Surprisingly it is, because using this as a dependency will ensure that override_find_program is called for the grpc_cpp_plugin. Without this, if you don't have that installed on your system then the build will fail

Copy link
Member

Choose a reason for hiding this comment

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

Wow!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm I take that back - we already have this up on L47. Let me take another look...

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Related to the comment above, this is transitively required by grpc (and in turn the grpc_cpp_plugin)

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting merge Awaiting merge labels Aug 9, 2025
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Aug 11, 2025
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

arrow_testing_lib = static_library(
'arrow_testing',
sources: arrow_testing_srcs,
dependencies: [arrow_dep, filesystem_dep, gmock_dep, gtest_main_dep],
Copy link
Member

Choose a reason for hiding this comment

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

Should we use gtest_dep not gtest_main_dep here because libarrow_testing doesn't need main()?

Suggested change
dependencies: [arrow_dep, filesystem_dep, gmock_dep, gtest_main_dep],
dependencies: [arrow_dep, filesystem_dep, gmock_dep, gtest_dep],

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Aug 12, 2025
@kou kou merged commit 3c460f7 into apache:main Aug 12, 2025
37 of 39 checks passed
@kou kou removed the awaiting merge Awaiting merge label Aug 12, 2025
@conbench-apache-arrow
Copy link

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

There weren't enough matching historic benchmark results to make a call on whether there were regressions.

The full Conbench report has more details.

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