Skip to content

Conversation

@juliankuners
Copy link
Contributor

@juliankuners juliankuners commented Sep 3, 2025

The previous pull request #4852 succesfully fixed an error that made the homebrew build of k not build in CI.

It turns out that there is another unrelated error during testing of that homebrew build, see logs. brew cannot find the local bottle (brew package) when trying to install.

@juliankuners
Copy link
Contributor Author

In the macos image that is used in the workflows, the brew version has been updated from 4.6.3 to 4.6.6. Though the workflow runs brew update in CI, which makes it unclear which versions were specifically used.

It looks like recent versions of brew disallow installing packages from a local path without throwing a warning or error. There is the environment variable HOMEBREW_FORBID_PACKAGES_FROM_PATHS that is enabled by default, but setting it to any value, including 0 or false, triggers the flag, see here.

There is also the undocumented environment variable HOMEBREW_INTERNAL_ALLOW_PACKAGES_FROM_PATHS that could be set to enable local paths, but the environment variable is unset by brew beforehand. I also tried out the environment variable in CI as well as locally and it didn't work.

Finally, there's the environment variable HOMEBREW_DEVELOPER that can be set, which also enabled local paths. With this, the installation progresses in CI. Though this has the disadvantage that warnings are now treated as errors.

There is now a new issue that I cannot replicate locally on my x86_64 linux machine, see logs. brew cannot find the file /opt/homebrew/Cellar/llvm/17.0.6 after installation of llvm@17. Looking at previous successful CI runs and my local installation with brew install llvm@17 -v, brew instead reads the file /opt/homebrew/Cellar/llvm@17/17.0.6. Somehow @17 disappeared for no good reason.

automergerpr-permission-manager bot pushed a commit that referenced this pull request Sep 11, 2025
This PR allows bypassing the `macos-test` CI job to publish new K
releases.

The release workflow started failing in the `macos-build` job as of this
PR:
#4850
The failure seems unrelated to the changes introduced by the PR and
looks more like a flakiness issue in the CI due to non-deterministic
dependency resolution.

A follow-up PR fixed the `macos-build` job:
#4851

Unfortunately, the workflow is now failing in the `macos-test` job.
#4852 is an attempt to
debug and fix the tests.

The inability to publish new K-releases is currently blocking important
updates on Simbolik.
@juliankuners
Copy link
Contributor Author

Brew builds are currently not planned to be actively maintained by specifically RV for the foreseeable future.

MacOS builds can also alternatively be installed with kup: https://docs.runtimeverification.com/kontrol/cheatsheets/kup-cheatsheet

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants