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

setup-homebrew: update tweaks. #393

Merged
merged 1 commit into from
Jul 6, 2023
Merged

setup-homebrew: update tweaks. #393

merged 1 commit into from
Jul 6, 2023

Conversation

MikeMcQuaid
Copy link
Member

  • don't update core/cask/test-bot by default
  • unset HOMEBREW_NO_INSTALL_FROM_API (which GitHub Actions sets by default
  • use brew update to download formula/cask files

If this is ✅: we'll need to audit our usage of this action to ensure they are configured correctly to allow this change but it should reduce load on GitHub, failures seen by us and our users and better test the default Homebrew setup.

@MikeMcQuaid MikeMcQuaid requested review from Bo98 and carlocab July 5, 2023 15:26
setup-homebrew/main.sh Outdated Show resolved Hide resolved
setup-homebrew/action.yml Outdated Show resolved Hide resolved
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to scope Homebrew/core out of this behaviour currently, because we do want full clones there.

@Bo98
Copy link
Member

Bo98 commented Jul 5, 2023

I think we need to scope Homebrew/core out of this behaviour currently, because we do want full clones there.

Should already be I think. homebrew-core in general is a special case in this script.

Except the test-bot bit but I've commented on that above.

@MikeMcQuaid MikeMcQuaid requested review from Bo98 and carlocab July 5, 2023 18:09
MikeMcQuaid added a commit to Homebrew/brew that referenced this pull request Jul 5, 2023
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- Homebrew/actions#393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
setup-homebrew/main.sh Outdated Show resolved Hide resolved
setup-homebrew/main.sh Outdated Show resolved Hide resolved
@carlocab
Copy link
Member

carlocab commented Jul 6, 2023

That's a test-bot bug introduced with Homebrew/homebrew-test-bot@ce58be9. We set a global gitconfig in setup-homebrew but that's no longer being respected.

Homebrew/homebrew-test-bot#956

carlocab added a commit to carlocab/homebrew-test-bot that referenced this pull request Jul 6, 2023
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All 🟢

MikeMcQuaid added a commit to Homebrew/brew that referenced this pull request Jul 6, 2023
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- Homebrew/actions#393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
@MikeMcQuaid MikeMcQuaid requested a review from Bo98 July 6, 2023 13:22
.github/workflows/actionlint.yml Outdated Show resolved Hide resolved
setup-homebrew/main.sh Outdated Show resolved Hide resolved
- don't update core/cask/test-bot by default
- unset HOMEBREW_NO_INSTALL_FROM_API (which GitHub Actions sets by default
- use `brew update` to download formula/cask files

Co-authored-by: Bo Anderson <mail@boanderson.me>
@MikeMcQuaid MikeMcQuaid merged commit bcc7044 into master Jul 6, 2023
6 checks passed
@MikeMcQuaid MikeMcQuaid deleted the update_tweaks branch July 6, 2023 15:20
MikeMcQuaid added a commit to Homebrew/brew that referenced this pull request Jul 6, 2023
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- Homebrew/actions#393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Jul 6, 2023
Homebrew/actions#393 will change the default
behaviour of setup-homebrew so let's be explicit to speed things up and
avoid changes when it's merged
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Jul 6, 2023
Homebrew/actions#393 will change the default
behaviour of setup-homebrew so let's be explicit to speed things up and
avoid changes when it's merged
MikeMcQuaid added a commit to Homebrew/brew that referenced this pull request Jul 6, 2023
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- Homebrew/actions#393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
MikeMcQuaid added a commit to Homebrew/brew that referenced this pull request Jul 6, 2023
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- Homebrew/actions#393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants