Skip to content

Brew test bot failure on finding formula in third party tap #20465

Closed

Description

@shivammathur

brew doctor output

==> brew doctor
All steps passed!

Verification

brew config output

==> brew config
/usr/bin/env brew config
HOMEBREW_VERSION: 4.6.3-75-gfbac21d
ORIGIN: https://github.com/Homebrew/brew
HEAD: fbac21da5438e4bfa4aedc98bbd5775fb8e545bb
Last commit: 3 hours ago
Branch: main
Core tap HEAD: 6408b9257aea22c2504549064fbd8a5b6e3bbc5d
Core tap last commit: 21 minutes ago
Core tap JSON: 14 Aug 14:02 UTC
Core cask tap HEAD: 376a19e7242bd9649db3f65936a39e9fa0eaa803
Core cask tap last commit: 6 minutes ago
Core cask tap JSON: 14 Aug 14:02 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CACHE: /Users/runner/Library/Caches/Homebrew
HOMEBREW_CASK_OPTS: ["--no-quarantine"]
HOMEBREW_COLOR: set
HOMEBREW_CURL_PATH: /usr/bin/curl
HOMEBREW_DEBUG: set
HOMEBREW_DEVELOPER: set
HOMEBREW_FAIL_LOG_LINES: 150
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_GIT_EMAIL: [email protected]
HOMEBREW_GIT_NAME: BrewTestBot
HOMEBREW_GIT_PATH: /usr/bin/git
HOMEBREW_LOGS: /Users/runner/work/homebrew-php/homebrew-php/logs
HOMEBREW_MAKE_JOBS: 3
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_COLOR: set
HOMEBREW_NO_EMOJI: set
HOMEBREW_NO_ENV_HINTS: set
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set
HOMEBREW_NO_INSTALL_CLEANUP: set
HOMEBREW_SORBET_RUNTIME: set
HOMEBREW_VERBOSE: set
Homebrew Ruby: 3.4.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin/ruby
CPU: 3-core 64-bit dunno
Clang: 16.0.0 build 1600
Git: 2.39.5 => /usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.5-arm64
CLT: 16.4.0.0.1.1747106510
Xcode: 16.0 => /Applications/Xcode_16.app/Contents/Developer
Rosetta 2: false

What were you trying to do (and why)?

Build a formula in my tap using this command.

brew test-bot --only-formulae --junit --only-json-tab --skip-dependents --root-url="https://ghcr.io/v2/shivammathur/php" --testing-formulae=shivammathur/php/[email protected] --added-formulae= --deleted-formulae=

What happened (include all command output)?

Currently I'm getting this error.

https://github.com/shivammathur/homebrew-php/actions/runs/16924306141/job/48094874559?pr=4233#step:3:2177

/opt/homebrew/Library/Homebrew/build.rb:271:in '<main>': private method 'puts' called for nil (NoMethodError)
  /opt/homebrew/Library/Homebrew/formulary.rb:624:in 'Formulary::FromPathLoader.try_new': Rejecting formula at false because it's not in a tap. (RuntimeError)
         Homebrew requires formulae to be in a tap.
  
  To create a tap, run e.g.
    brew tap-new <user|org>/<repository>
  To create a formula in a tap run e.g.
    brew create <url> --tap=<user|org>/<repository>

Earlier I was getting this error
https://github.com/shivammathur/homebrew-php/actions/runs/16924306141/job/48094874544?pr=4233#step:3:2201

What did you expect to happen?

For the formula to build correctly without the error.

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

Please refer to the following CI workflow
https://github.com/shivammathur/homebrew-php/blob/main/.github/workflows/build.yml

Activity

  1. added theissue type on Aug 14, 2025
  2. MikeMcQuaid commented on Aug 14, 2025

    @MikeMcQuaid
    Member

    @shivammathur Please rerun now that #20460 is merged and print the new error messages.

  3. shivammathur commented on Aug 14, 2025

    @shivammathur
    ContributorAuthor

    I now get this

    https://github.com/shivammathur/homebrew-php/actions/runs/16924306141/job/48110758260?pr=4233#step:3:2177

     '\%\{http_code\} --header Authorization:\ token\ ****** --header X-GitHub-Api-Version:2022-11-28 --dump-header /private/tmp/github_api_headers20250814-13909-8tijb
      Error: Failure while executing; `/usr/bin/sandbox-exec -f /private/tmp/homebrew-sandbox20250814-13909-44f63l/homebrew.sb nice /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin/ruby -W1 --disable=gems,rubyopt -- /opt/homebrew/Library/Homebrew/build.rb /opt/homebrew/Library/Taps/shivammathur/homebrew-php/Formula/[email protected] --build-bottle --verbose` exited with 1.
      /opt/homebrew/Library/Homebrew/sandbox.rb:194:in 'block (3 levels) in Sandbox#run'
      /opt/homebrew/Library/Homebrew/sandbox.rb:215:in 'block (2 levels) in Sandbox#run'
      /opt/homebrew/Library/Homebrew/sandbox.rb:147:in 'PTY.open'
      /opt/homebrew/Library/Homebrew/sandbox.rb:147:in 'block in Sandbox#run'
      /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/lib/ruby/3.4.0/tmpdir.rb:105:in 'Dir.mktmpdir'
      /opt/homebrew/Library/Homebrew/sandbox.rb:136:in 'Sandbox#run'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/_methods.rb:277:in 'block in Sandbox#_on_method_added'
      /opt/homebrew/Library/Homebrew/formula_installer.rb:1127:in 'FormulaInstaller#build'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/_methods.rb:277:in 'block in FormulaInstaller#_on_method_added'
      /opt/homebrew/Library/Homebrew/formula_installer.rb:606:in 'FormulaInstaller#install'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/_methods.rb:277:in 'block in FormulaInstaller#_on_method_added'
      /opt/homebrew/Library/Homebrew/install.rb:487:in 'Homebrew::Install.install_formula'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/_methods.rb:277:in 'block in Homebrew::Install._on_method_added'
      /opt/homebrew/Library/Homebrew/install.rb:420:in 'block in Homebrew::Install.install_formulae'
      /opt/homebrew/Library/Homebrew/install.rb:417:in 'Array#each'
      /opt/homebrew/Library/Homebrew/install.rb:417:in 'Homebrew::Install.install_formulae'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/_methods.rb:277:in 'block in Homebrew::Install._on_method_added'
      /opt/homebrew/Library/Homebrew/cmd/install.rb:383:in 'Homebrew::Cmd::InstallCmd#run'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
      /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12392/lib/types/private/methods/_methods.rb:277:in 'block in Homebrew::Cmd::InstallCmd#_on_method_added'
      /opt/homebrew/Library/Homebrew/brew.rb:110:in '<main>'
    
  4. self-assigned this
    on Aug 14, 2025
  5. shivammathur commented on Aug 14, 2025

    @shivammathur
    ContributorAuthor

    @MikeMcQuaid It works now. Thanks for the quick turnaround!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions