Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI][Packaging][Java] Ensure updating "python@*" formulae on macOS #42197

Closed
vibhatha opened this issue Jun 18, 2024 · 1 comment
Closed

[CI][Packaging][Java] Ensure updating "python@*" formulae on macOS #42197

vibhatha opened this issue Jun 18, 2024 · 1 comment

Comments

@vibhatha
Copy link
Collaborator

vibhatha commented Jun 18, 2024

Describe the bug, including details regarding any error messages, version, and platform.

On a few crossbows [1][2][3], CIs on macOS x86_64 have been failing due to a homebrew issue.

 Error: No such keg: /usr/local/Cellar/llvm
Error: No such keg: /usr/local/Cellar/llvm
Installing aws-sdk-cpp
Installing bash
Installing boost
Using brotli
Installing bzip2
Upgrading c-ares
Using curl
Installing ccache
Using cmake
Installing flatbuffers
Using git
Installing glog
Installing googletest
Installing grpc
Installing llvm@14
Using lz4
Installing mimalloc
Installing ninja
Installing node
Using openssl@3
Using pkg-config
Installing protobuf
Upgrading python
==> Upgrading 1 outdated package:
python 3.12.3 -> 3.12.4
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/manifests/3.12.4
==> Fetching [email protected]
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/blobs/sha256:93d81dfa181e6890b6a2baa4fbb4df71b6c061a2dc7823fe0ae12b2ec4b59cc1
==> Upgrading python
  3.12.3 -> 3.12.4 
==> Pouring [email protected]
Error: The `brew link` step did not complete successfully
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3

[1] https://github.com/ursacomputing/crossbow/actions/runs/9554716898/job/26336385763#step:5:78
[2] https://github.com/ursacomputing/crossbow/actions/runs/9554720405/job/26336397852#step:5:78
[3] https://github.com/ursacomputing/crossbow/actions/runs/9554711612/job/26336369061#step:5:78

Component(s)

Integration

@kou kou changed the title [CI] [Java] C++ CIs on macOS x86_64 failure [CI][Java] C++ CIs on macOS x86_64 failure Jun 18, 2024
@vibhatha vibhatha changed the title [CI][Java] C++ CIs on macOS x86_64 failure [CI][Packaging][Java] Ensure updating "python@*" formulae on macOS Jun 19, 2024
raulcd pushed a commit that referenced this issue Jun 19, 2024
…n macOS (#42202)

### Rationale for this change

macOS GitHub Actions runners have Python not installed by Homebrew at `/usr/local/`.
If we install `python@ XXX` Homebrew formula, it tries to overwrite `/usr/local/bin/2to3` and so on and causes a conflict error.

NOTE: This is happen only when pre-installed Homebrew `python@ XXX` on macOS GitHub Actions runners is outdated. (`python@ XXX` is updated after macOS GitHub Actions runner image is created.)

### What changes are included in this PR?

Ensure updating `pythone@ XXX` with `--overwrite` before we use `brew bundle`.
`brew bundle` may update `python@ XXX` automatically without `--overwrite`.

FYI: `brew bundle --force ...` will also work.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #42197

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
@raulcd raulcd added this to the 17.0.0 milestone Jun 19, 2024
@raulcd
Copy link
Member

raulcd commented Jun 19, 2024

Issue resolved by pull request 42202
#42202

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

No branches or pull requests

3 participants