Skip to content

Conversation

@WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Apr 11, 2025

Rationale for this change

Flatbuffers statically requires that the version used to generate the prototypes within the code base is the same version used to compile it. A system install of Flatbuffers is therefore highly unlikely to be usable

What changes are included in this PR?

Removed the system install of Flatbuffers on macOS

Are these changes tested?

In CI

Are there any user-facing changes?

No

@WillAyd
Copy link
Contributor Author

WillAyd commented Apr 11, 2025

@github-actions crossbow submit verify-rc-source-cpp-macos-amd64

@github-actions
Copy link

Revision: b27bf7e

Submitted crossbow builds: ursacomputing/crossbow @ actions-4ebe73daec

Task Status
verify-rc-source-cpp-macos-amd64 GitHub Actions

@WillAyd
Copy link
Contributor Author

WillAyd commented Apr 11, 2025

@kou maybe this is viable? Or we should pin the version of flatbuffers used in the Brewfile?

@kou
Copy link
Member

kou commented Apr 11, 2025

@github-actions crossbow submit verify-rc-source-ruby-macos-amd64

@kou
Copy link
Member

kou commented Apr 11, 2025

@github-actions crossbow submit verify-rc-source-*-macos-arm64

@github-actions
Copy link

Revision: b27bf7e

Submitted crossbow builds: ursacomputing/crossbow @ actions-febc5892d7

Task Status
verify-rc-source-ruby-macos-amd64 GitHub Actions

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

Yes. We can use this for 20.0.0. But I feel that this is a workaround... I think that our build should work with system Flatbuffers (that isn't 24). In the case, we should use bundled Flatbuffers not system Flatbuffers.

@github-actions
Copy link

Revision: b27bf7e

Submitted crossbow builds: ursacomputing/crossbow @ actions-4c932a1672

Task Status
verify-rc-source-cpp-macos-arm64 GitHub Actions
verify-rc-source-csharp-macos-arm64 GitHub Actions
verify-rc-source-integration-macos-arm64 GitHub Actions
verify-rc-source-js-macos-arm64 GitHub Actions
verify-rc-source-python-macos-arm64 GitHub Actions
verify-rc-source-ruby-macos-arm64 GitHub Actions

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Apr 11, 2025
@WillAyd
Copy link
Contributor Author

WillAyd commented Apr 11, 2025

I believe flatbuffers requires that the version used to generate the code must be exactly the same version used to compile the code. So from that perspective the Arrow build system dependency should either be vendored, or you would have to ensure your system has the exact same version

@kou
Copy link
Member

kou commented Apr 11, 2025

Right. We're using the vendored approach. So I think that we should use the vendored Flatbuffers even when there is a system Flatbuffers. (I think that it's a real fix.)

@kou kou changed the title GH-46067: [CI][C++] Remove system flatbuffers from macOS GH-46067: [CI][C++] Remove system Flatbuffers from macOS Apr 11, 2025
@kou kou merged commit 32641ec into apache:main Apr 11, 2025
33 of 35 checks passed
@kou kou removed the awaiting merge Awaiting merge label Apr 11, 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 32641ec.

There were no benchmark performance regressions. 🎉

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

@raulcd
Copy link
Member

raulcd commented Apr 11, 2025

@github-actions crossbow submit verify-rc-source-*-macos-amd64

@github-actions
Copy link

Revision: b27bf7e

Submitted crossbow builds: ursacomputing/crossbow @ actions-34dfae5216

Task Status
verify-rc-source-cpp-macos-amd64 GitHub Actions
verify-rc-source-csharp-macos-amd64 GitHub Actions
verify-rc-source-integration-macos-amd64 GitHub Actions
verify-rc-source-js-macos-amd64 GitHub Actions
verify-rc-source-python-macos-amd64 GitHub Actions
verify-rc-source-ruby-macos-amd64 GitHub Actions

assignUser pushed a commit that referenced this pull request Apr 15, 2025
### Rationale for this change

Flatbuffers statically requires that the version used to generate the prototypes within the code base is the same version used to compile it. A system install of Flatbuffers is therefore highly unlikely to be usable

### What changes are included in this PR?

Removed the system install of Flatbuffers on macOS

### Are these changes tested?

In CI

### Are there any user-facing changes?

No

* GitHub Issue: #46067

Authored-by: Will Ayd <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Apr 15, 2025
…e#46105)

### Rationale for this change

Flatbuffers statically requires that the version used to generate the prototypes within the code base is the same version used to compile it. A system install of Flatbuffers is therefore highly unlikely to be usable

### What changes are included in this PR?

Removed the system install of Flatbuffers on macOS

### Are these changes tested?

In CI

### Are there any user-facing changes?

No

* GitHub Issue: apache#46067

Authored-by: Will Ayd <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
lriggs pushed a commit to lriggs/arrow that referenced this pull request Apr 15, 2025
…e#46105)

### Rationale for this change

Flatbuffers statically requires that the version used to generate the prototypes within the code base is the same version used to compile it. A system install of Flatbuffers is therefore highly unlikely to be usable

### What changes are included in this PR?

Removed the system install of Flatbuffers on macOS

### Are these changes tested?

In CI

### Are there any user-facing changes?

No

* GitHub Issue: apache#46067

Authored-by: Will Ayd <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
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