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

brew install octave hangs macos-12 github action runner, due to qt installation #18595

Closed
3 tasks done
fangq opened this issue Oct 19, 2024 · 5 comments
Closed
3 tasks done
Labels
bug Reproducible Homebrew/brew bug

Comments

@fangq
Copy link

fangq commented Oct 19, 2024

brew doctor output

This has been previously reported in #16209 against macos-11, but it has been closed due to macos-11 was no longer supported in github.

however, this issue appears again in macos-12, which is currently supported github runner.

example hanged build can be found here

https://github.com/fangq/iso2mesh/actions/runs/11413968520/job/31762253381
https://github.com/fangq/iso2mesh/actions/runs/11408582821/job/31747587033

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

see #16209

What were you trying to do (and why)?

see #16209

What happened (include all command output)?

example hanged build can be found here

https://github.com/fangq/iso2mesh/actions/runs/11413968520/job/31762253381
https://github.com/fangq/iso2mesh/actions/runs/11408582821/job/31747587033

What did you expect to happen?

see #16209

Step-by-step reproduction instructions (by running brew commands)

add the below file to a github project as `.github/workflow/test_brew.yml` and commit it to github


name: test brew install octave

jobs:
  brew_test:
    name: brew test
    strategy:
      matrix:
        os: [macos-12]
    runs-on: ${{ matrix.os }}

    steps:
      - name: Install dependencies
        run: [[ "$RUNNER_OS" == "macOS" ]] && brew install octave
@fangq fangq added the bug Reproducible Homebrew/brew bug label Oct 19, 2024
@Bo98
Copy link
Member

Bo98 commented Oct 19, 2024

The same reasons apply. There isn't a Qt 6.7 bottle for macOS 12 so it's building it from source. It's not hanging forever - it's just very slow because of that. We don't build prebuilt bottles for macOS 12 anymore. We ended prebuilt bottle support for macOS 12 on our side last month. Note that we have no connections to GitHub Actions team so support periods do not always precisely align.

With that said, GitHub deprecated macOS 12 runners earlier this month and are slowly phasing them out. Your workflow will stop working entirely soon. The runners will be removed on 3rd December, but you will start seeing them disappear for periods from 4th November.

Please migrate to macos-13 instead.

@Bo98 Bo98 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@fangq
Copy link
Author

fangq commented Oct 19, 2024

There isn't a Qt 6.7 bottle for macOS 12 so it's building it from source.

is there any reason why previously built bottle could not be used? does it have to be rebuild?

Please migrate to macos-13 instead.
I tried macos-13 and macos-14, both failed octave tests as they do not seem to come with any default graphics toolkits

https://github.com/fangq/iso2mesh/actions/runs/11414566357/job/31763625359
https://github.com/fangq/iso2mesh/actions/runs/11414732000/job/31763994250

fangq added a commit to fangq/iso2mesh that referenced this issue Oct 19, 2024
@Bo98
Copy link
Member

Bo98 commented Oct 19, 2024

Largely down to luck when updates are made. Qt 6.7 was released after we dropped macOS 12 support, so a 6.7 macOS 12 build has never existed and 6.6 was the last. Last year, a Qt update only came a couple months later.

macOS 12 is getting deleted by GitHub anyway so doesn't really matter in the end.

@Bo98
Copy link
Member

Bo98 commented Oct 19, 2024

I tried macos-13 and macos-14, both failed octave tests as they do not seem to come with any default graphics toolkits

I'm not an expert on octave so not sure of the answer to this. It may be a bug in our build of octave but it may also be that it requires some configuration. I know macOS 14 and later on GitHub Actions are different because it uses arm64 and is virtualised in a different way. I don't know the internals of how macOS 13 is deployed on GitHub however. For own CI, macOS 13 used different underlying hardware.

Someone on the Homebrew discussion forum might know.

@fangq
Copy link
Author

fangq commented Oct 19, 2024

thanks, I posted my question at https://github.com/orgs/Homebrew/discussions/5687 as you suggested.

Because macos-12 never completed installation, so I did not know if it had similar issues as macos-13 and -14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/brew bug
Projects
None yet
Development

No branches or pull requests

2 participants