brew: Failing tests on 2017 Mac running Mojave

Bug report

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem? Non-issues: brew diy; openzfs libs in /usr/lib
  • ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

I ran brew tests because the PR template says I have to.

What happened (include command output)

Lots of tests fail reproducibly.

See command output: ~https://gist.github.com/claui/4265e4adb4847a2f0dcc49fa53665161~ Update 2021-01-07: https://gist.github.com/claui/86fc80e9e451a46c44f4fa244edd9ee8

What you expected to happen

All the tests pass.

January 2019 was the last known time when all brew tests passed for me. Not aware of any relevant changes to my system since then. Been running Mojave since late 2018.

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

On my 2017 MacBook Pro running Mojave, with Homebrew installed to /usr/local:

$ brew tests

Note:

  • Tests started getting flaky around April 2019, and test failures then kept piling up over 18 months.

  • There are even more failures when I run brew tests on another prefix. In order to keep this issue report focused, I ran the tests on the default prefix so these extra failures are not included.

  • To capture both stdout and stderr in a single gist for this issue report, I actually ran brew tests >${filename} 2>&1.

Output of brew config and brew doctor commands

brew config:

HOMEBREW_VERSION: 2.5.11-20-gaf41431
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: af4143150da32097f751b1538a5b6f6958bb2175
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: fe767b0ad799e1b7d8acdf769c1c0c5c6c534342
Core tap last commit: 56 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BAT: set
HOMEBREW_CASK_OPTS: []
HOMEBREW_DEVELOPER: set
HOMEBREW_EDITOR: '/usr/local/bin/code' -w
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 11.0 build 1100
Git: 2.29.2 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 14.0.2, 12.0.2, 11.0.9, 10.0.2, 9, 1.8.0_272, 1.8.0_202
macOS: 10.14.6-x86_64
CLT: 11.3.1.0.1.1576735732
Xcode: 11.3.1

brew doctor:

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed with `brew diy`.
You should find replacements for the following formulae:
  kdumpd
  meld-executables
  arm-elf-binutils
  openzfs-executables
  arm-elf-musl
  arm-elf-gcc
  virtualbox-executables
  diy-dedrm

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libdiskmgt.1.dylib
  /usr/local/lib/libnvpair.1.dylib
  /usr/local/lib/libuutil.1.dylib
  /usr/local/lib/libzfs.2.dylib
  /usr/local/lib/libzfs_core.1.dylib
  /usr/local/lib/libzpool.1.dylib

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
  /usr/local/lib/libdiskmgt.la
  /usr/local/lib/libnvpair.la
  /usr/local/lib/libuutil.la
  /usr/local/lib/libzfs.la
  /usr/local/lib/libzfs_core.la
  /usr/local/lib/libzpool.la

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libdiskmgt.a
  /usr/local/lib/libnvpair.a
  /usr/local/lib/libuutil.a
  /usr/local/lib/libzfs.a
  /usr/local/lib/libzfs_core.a
  /usr/local/lib/libzpool.a

Note:

  • The kegs listed by brew doctor are all DIY kegs.
  • The unbrewed libraries all belong to the OpenZFS cask.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

Homebrew is picking up the 10.15 SDK (presumably from Xcode) instead of the SDK for 10.14 from the CLT. It’s weird because that command does point to the right SDK path, but for some reason the tests aren’t using that path.