continuous-integration icon indicating copy to clipboard operation
continuous-integration copied to clipboard

sudo brew install qt@5 takes forever

Open Vertexwahn opened this issue 2 years ago • 5 comments

I try to add macOS support for bazel_rules_qt here.

To ensure this does not break in the future I added also a CI check for this to my PR.

In the CI job I try to install Qt5 using Homebrew. The job runs for more than 1 hour: https://buildkite.com/bazel/rules-qt/builds/385#e814ad0e-436c-40ec-8c16-8680dc54db98

In a previous job run I canceled the job after 2 hours. For some reason the command seems not to work or is very, very slow. Any hints form me how to make this faster?

Vertexwahn avatar Feb 08 '22 21:02 Vertexwahn

FYI, I cancelled two presubmit runs since Mac resources are in demand right now. They've been running for over two and five hours, respectively.

fweikert avatar Feb 08 '22 22:02 fweikert

This is what the .bazelci/presubmit.yml looks like:

---
tasks:
  ubuntu2004:
    platform: ubuntu2004
    shell_commands:
      - "sudo apt update && sudo apt -y install qt5-default qtdeclarative5-dev"
    build_targets:
      - "//..."
  macos:
    shell_commands:
      - "sudo brew install qt@5"
    build_targets:
      - "//..."

I just want to install Qt (sudo brew install qt@5) dependencies - this takes ages - no idea why...

https://github.com/justbuchanan/bazel_rules_qt/pull/38

Vertexwahn avatar Feb 09 '22 06:02 Vertexwahn

The problem is that the script hangs forever waiting for the password. We have to install any MacOS deps manually :(

fweikert avatar Feb 14 '22 15:02 fweikert

@fweikert I think we shouldn't install any further dependencies on the machines, as it becomes very hard to maintain and bloated over time. We might be able to provide a private brew environment for the Buildkite user though. 🤔

philwo avatar Feb 14 '22 16:02 philwo

a private brew would be nice

Vertexwahn avatar Feb 16 '22 21:02 Vertexwahn