ci: Untap unused Homebrew taps on macOS before installing Valgrind #2006

pull hebasto wants to merge 2 commits into bitcoin-core:master from hebasto:261121-ci-untap changing 2 files +22 −4
  1. hebasto commented at 8:08 PM on November 21, 2026: member

    The GitHub-hosted macOS x86_64 runner image ships with the hashicorp/tap and aws/tap taps pre-installed. Homebrew loads formulae from all taps when running brew tap, which results in unrelated noise in the CI log and job annotations:

    Run brew tap LouisBrunner/valgrind
      ==> Tapping louisbrunner/valgrind
      Cloning into '/usr/local/Homebrew/Library/Taps/louisbrunner/homebrew-valgrind'...
      Tapped 1 formula (20 files, 57.8KB).
      Error: Failed to import: /usr/local/Homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/vagrant.rb
      hashicorp/tap/vagrant: formula requires at least a URL
      Warning: On September 12, 2023, AWS will no longer maintain the Homebrew installer for nightly version of AWS SAM CLI (aws/tap/aws-sam-cli-nightly). 
              For AWS supported installations, use the first-party installers (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/manage-sam-cli-versions.html#manage-sam-cli-versions-nightly-build).
      Warning: On September 12, 2023, AWS will no longer maintain the Homebrew installer for AWS SAM CLI (aws/tap/aws-sam-cli). 
              For AWS supported installations, use the first-party installers (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html). 
              To continue using Homebrew, use the community supported installer (https://formulae.brew.sh/formula/aws-sam-cli).
      Trusted formula: louisbrunner/valgrind/valgrind
      ==> Fetching valgrind from louisbrunner/valgrind
      ✔︎ Formula valgrind (HEAD-3a119d8)
    
  2. hebasto marked this as a draft on Nov 21, 2026
  3. hebasto force-pushed on Nov 21, 2026
  4. hebasto marked this as ready for review on Nov 21, 2026
  5. real-or-random added the label ci on Nov 23, 2026
  6. real-or-random added the label tweak/refactor on Nov 23, 2026
  7. real-or-random commented at 7:58 AM on November 23, 2026: contributor

    Weak Concept ACK -- I think the job annotations are a sufficient reason to take care of the warnings

    But I wonder if this global side effect belongs here or rather in a separate "Setup Homebrew" step in ci.yml, or even an action. It could then also cleanly capture the HOMEBREW_* env we set variables.

    .github/actions/setup-homebrew/action.yml could look like this:

    name: "setup Homebrew"
    description: "Make a few tweaks to the Homebrew config"
    runs:
      using: "composite"
      steps:
        - run: |
            echo "HOMEBREW_NO_AUTO_UPDATE=1" >> "$GITHUB_ENV"
            echo "HOMEBREW_NO_INSTALL_CLEANUP=1" >> "$GITHUB_ENV"
            # The runner image ships these taps and trusts them, so Homebrew
            # evaluates their formulae, which produces errors and warnings
            # when adding new taps such as 
            for tap in hashicorp/tap aws/tap; do
              if brew tap | grep -qx "$tap"; then
                brew untap --force "$tap"
              fi
            done
          shell: bash
    

    Having a separate action smells a bit like overkill but on the other hand, it removes non-essential parts from ci.yml, so it sounds like a good idea to me.

  8. hebasto force-pushed on Nov 23, 2026
  9. hebasto commented at 11:33 AM on November 23, 2026: member

    @real-or-random

    Thanks for the review. Reworked per your feedback.

  10. real-or-random commented at 1:06 PM on November 23, 2026: contributor

    I think the new action should then also be used in arm64-macos-native.

  11. ci, refactor: Introduce new "Setup Homebrew" action
    This allows us to remove non-essential parts from `ci.yml`.
    42b2c6884a
  12. hebasto force-pushed on Nov 23, 2026
  13. hebasto commented at 1:11 PM on November 23, 2026: member

    I think the new action should then also be used in arm64-macos-native.

    Done.

  14. ci: Untap unused Homebrew taps on macOS before installing Valgrind
    The GitHub-hosted macOS x86_64 runner image ships with the
    `hashicorp/tap` and `aws/tap` taps pre-installed. Homebrew loads
    formulae from all taps when running `brew tap`, which results in
    unrelated noise in the CI log and job annotations.
    40526b3b3f
  15. in .github/actions/setup-homebrew/action.yml:11 in 39c48ca7ee
       6 | +    - run: |
       7 | +        echo "HOMEBREW_NO_AUTO_UPDATE=1" >> "$GITHUB_ENV"
       8 | +        echo "HOMEBREW_NO_INSTALL_CLEANUP=1" >> "$GITHUB_ENV"
       9 | +        # The runner image ships these taps and trusts them, so Homebrew
      10 | +        # evaluates their formulae, which produces errors and warnings
      11 | +        # when adding new taps such as
    


    real-or-random commented at 11:13 AM on November 24, 2026:

    nit

            # when adding new taps.
    

    Sorry. I had suggested this broken sentence. I wanted to add "such as LouisBrunner/valgrind" but then I changed my mind and concluded that the comment easier to maintain without that example. But I forgot to revert the "such as".


    hebasto commented at 11:28 AM on November 24, 2026:

    Fixed.

  16. hebasto force-pushed on Nov 24, 2026
  17. real-or-random approved
  18. real-or-random commented at 11:42 AM on November 24, 2026: contributor

    ACK 40526b3b3f0973041681579821b35c54793a906d

  19. real-or-random merged this on Nov 24, 2026
  20. real-or-random closed this on Nov 24, 2026

  21. hebasto deleted the branch on Nov 24, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-02 10:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me