327 Commits

Author SHA1 Message Date
Mike McQuaid
298003b181
workflows/tests: workaround GitHub Actions python issues.
As-is there's a Python installed but not properly linked which breaks
anything that depends on Python being installed on macOS e.g.
Subversion.
2023-08-26 12:25:22 +01:00
Mike McQuaid
16feec525f
tests: install Subversion for macOS.
Some tests need this and warn without and it's not installed by
default these days.
2023-08-10 16:27:52 +01:00
Mike McQuaid
71888db8ba
bottle: reproducibility fixes.
I noticed from
https://github.com/Homebrew/homebrew-core/actions/runs/5751070010 that
we're no longer creating reproducible bottles between macOS and Linux.

All macOS checksums have changed but Linux ones have not. The main
difference between the two platforms is the `gtar` version used so let's
always just use the formula on both platforms.

While we're here, clear up the ordering and comments a little on the
reproducible `tar` arguments so that it's easier to compare with the
reproducible builds archives documentation.
2023-08-04 10:02:44 +01:00
Mike McQuaid
e1a7afb3cf
dev-cmd/generate-*-api: be a bit safer.
- also try generating formula API on macOS
- pull more logic out of `unless args.dry_run?` in case it fails
2023-07-18 12:57:09 +01:00
Mike McQuaid
5121567a9a
workflows: improve setup-homebrew and API usage.
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- https://github.com/Homebrew/actions/pull/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
2023-07-06 16:54:06 +01:00
Razvan Azamfirei
520cfe5694
remove cask-drivers from tests 2023-06-08 08:26:03 -04:00
Bo Anderson
54bd9533ea
workflows/tests: update homebrew-cask 2023-06-05 20:51:39 +01:00
Markus Reiter
d55f1b85bf
Add --os and --arch flags to readall. 2023-05-20 20:11:31 +02:00
dependabot[bot]
e41a47e730
Bump codecov/codecov-action from 3.1.3 to 3.1.4
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](894ff025c7...eaaf4bedf3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 18:56:46 +00:00
apainintheneck
152020038c workflows/tests: use dry run for generate-*-api 2023-05-15 18:32:11 -07:00
Mike McQuaid
cea0ec8b40
workflows/tests: test API generation.
This should avoid making changes here that break API generation.
2023-05-14 19:46:24 +01:00
Bo Anderson
b5f4e8e790
workflows/tests: fix Codecov root dir 2023-04-27 14:59:18 +01:00
Ruoyu Zhong
c4020d9b71
workflows/tests: run on macos-13 2023-04-25 11:23:01 +08:00
dependabot[bot]
39e065fe9b
build(deps): bump codecov/codecov-action from 3.1.2 to 3.1.3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](40a12dcee2...894ff025c7)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 18:56:51 +00:00
Mike McQuaid
04856a642f
Merge pull request #15144 from singingwolfboy/cache-v3
actions/cache@v3 for GitHub Actions
2023-04-19 10:05:15 +01:00
dependabot[bot]
625e976fb4
build(deps): bump codecov/codecov-action from 3.1.1 to 3.1.2
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](d9f34f8cd5...40a12dcee2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 18:56:46 +00:00
Bo Anderson
448bf1a49c
Merge pull request #15183 from Bo98/prof-group2
Revert "Revert "Split prof gems into their own group""
2023-04-11 15:11:57 +01:00
Issy Long
41466025cc
dev-cmd/style: Properly clean up the --display-cop-names option
- I remember making these changes as part of the RuboCop bump
  Dependabot PR (15136), but I must have not actually pushed them. Odd.
2023-04-11 00:19:09 +01:00
Bo Anderson
b84bed7385
Revert "Revert "Split prof gems into their own group""
This reverts commit 7b336ed8cd3eb20461fdc45ce67e5318e53920c4.
2023-04-10 16:54:48 +01:00
Issy Long
dcc44f164d
Merge pull request #15105 from issyl0/cask-audit-only-failures-default
audit: Make `--display-failures-only` the default for Casks
2023-04-07 14:43:51 +01:00
David Baumgold
e28abea77b actions/cache@v3 for GitHub Actions 2023-04-04 10:34:56 +02:00
Mike McQuaid
7b336ed8cd
Revert "Split prof gems into their own group" 2023-04-04 08:49:27 +01:00
Issy Long
c240cf81a4
tests: Remove --display-failures-only from brew audit cmd 2023-04-01 13:44:26 +01:00
Bo Anderson
8bafbcd65a
Split prof gems into their own group 2023-03-31 13:32:38 +01:00
Mike McQuaid
4aa959548c
Merge pull request #15047 from apainintheneck/change-order-of-tap-syntax
CI: Add audit steps for formulae and casks
2023-03-28 08:53:39 +01:00
apainintheneck
7c5e98602f CI: split up audits into two jobs
There will be one for casks which runs on MacOS
and the other for formulae which runs on Linux.
2023-03-25 01:49:38 -07:00
apainintheneck
91c07232d4 CI: create tap audit job
This will reduce the time it takes for the tap-syntax job
to complete (currently that is the slowest one) and will
allow us to audit casks as well as formulae (casks weren't
getting audited before in CI).
2023-03-24 22:04:13 -07:00
Mike McQuaid
6a77ef2170
docker: stop building Ubuntu 16.04 image.
This is too slow to be building every time and we're long past the
deprecation date.

Fixes https://github.com/Homebrew/brew/issues/14661
2023-03-24 08:57:48 +00:00
Shreyans Jain
cef132f8ca
fix: save-state and set-output deprecated
Signed-off-by: Shreyans Jain <shreyansthebest2007@gmail.com>
2023-03-19 17:37:21 +05:30
apainintheneck
c831a1e5cb CI: Change order of tap-syntax step
Now the steps that say they run on all taps are
after the one where we set up all taps.
2023-03-19 00:43:00 -07:00
Mike McQuaid
1ee97d4c4d
workflows/tests: also run update-tests for merge_group. 2023-03-15 17:50:35 -04:00
Mike McQuaid
6fd54eba5f
Merge pull request #14985 from dduugg/no-compat
Remove compatibility layer
2023-03-15 13:48:00 -04:00
Douglas Eichelberger
cc5b013cb9 Remove compatibility layer 2023-03-14 14:49:34 -07:00
Mike McQuaid
d8fce057fa
workflows/tests: enable merge group builds.
This will enable the GitHub Merge Queue. Don't bother running online
tests as they aren't required, use up the rate limit and are flaky.
2023-03-13 18:16:54 +00:00
Issy Long
b95c549437
ci: Move to Ubuntu 20.04 Actions runners
- The 18.04 runners are deprecated and going away in less than a month.
  Today was another scheduled brownout from GitHub
  (https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/),
  and they've been unmarked as required checks in the branch protections
  because the images are unavailable and the jobs were failing.
- However, we still need to test that Homebrew works correctly on
  non-latest Ubuntu versions so that we can test that we're correctly
  using brewed gcc/glibc, hence upgrading to 20.04 which is still old.
2023-03-07 12:48:42 +00:00
Carlo Cabrera
1201f18db0
Merge pull request #14667 from carlocab/update-reset-tap-names
cmd/update-reset: improve arg parsing
2023-02-28 22:05:10 +08:00
Carlo Cabrera
e2082f0c53
workflows/tests: avoid resetting homebrew/bundle
This command was being called with the wrong relative path, so it
silently did nothing. Now that `update-reset` errors out from invalid
arguments, we know that running `update-reset` here is not needed.
2023-02-28 21:47:08 +08:00
Issy Long
e82869b3ac
ci: Fix working directory for RuboCop filepath step? 2023-02-28 13:30:19 +00:00
Issy Long
f7dd63008e
ci: Include RuboCop filepaths check in syntax workflow
- The slowest part of the separate workflow was the repo checkout step,
  so include it in here to avoid the overhead.
2023-02-28 12:52:48 +00:00
Bo Anderson
ae4fb07494
workflows/tests: fix failing CI when Homebrew/core not present 2023-02-18 03:31:59 +00:00
Mike McQuaid
80232af31d
More tweaks to testing output and speed
- Never bother to do `brew cleanup` after `brew install`
- Skip `brew test-bot --only-cleanup-before` in more places it's not
  needed
- Move `brew config`/`brew doctor` into the default formula run
  (through `brew test-bot --only-setup`)
- Install `buildpulse-test-reporter` rather than letting `brew tests`
  do it
- Improve the formatting of the `brew tests` step
- Further shorten the code coverage filenames
- Don't output BuildPulse results upload status unless failed
2023-02-17 16:17:45 +00:00
Mike McQuaid
9c96bf1832
workflows/tests: cache update-test's bundler.
This is only run on macOS for some reason but no harm in caching on
both.
2023-02-17 15:44:05 +00:00
Mike McQuaid
a743e9277f
workflows/tests: faster, more reliable tests.
- Extract update tests into separate tests.
- Make `brew tests --online` run only once in its own job. This job
  could be made non-required to fight flakiness.
- Split up the various macOS runs into several steps now that we have
  more parallel macOS workers available.
- Cleanup some flaky tests.
2023-02-17 15:26:18 +00:00
Mike McQuaid
2a5d41d41b
Revert "Merge pull request #14547 from Homebrew/revert-14412-homebrew_install_from_api_default"
This reverts commit f4e60482791d2ff628efadfdbf0d14d9237d2d29, reversing
changes made to e26784f424061ca16987afcb21e036c66a298492.
2023-02-07 19:25:40 +01:00
Mike McQuaid
0575903868
Revert "HOMEBREW_INSTALL_FROM_API: make the default for everyone." 2023-02-07 15:13:23 +01:00
Mike McQuaid
5f6c69bca2
HOMEBREW_INSTALL_FROM_API: make the default for everyone.
- remove all places we check the flag so it's a no-op now
- flip the messaging to refer to `HOMEBREW_NO_INSTALL_FROM_API` where
  relevant
- adjust the documentation
2023-02-05 18:13:08 +01:00
Bo Anderson
dc2f41cb8d
workflows: set working directory to repo location 2023-01-27 01:48:26 +00:00
Kevin
99006870b1 workflow/tests: Remove redundant style check
The reason the redundant check exists is that we used to have separate core taps for MacOS and Linux but they have been merged. It also means that we don't have to manually fetch `homebrew/core` anymore.
2023-01-07 19:50:47 -08:00
Mike McQuaid
e0b79254e2
workflows/tests: only brew tests --online twice.
Previously, we ran it 5 times (4 on Linux, 1 on macOS) which burned up
our GitHub Actions token rate limit much quicker than is necessary.
2023-01-02 19:23:08 +00:00
EricFromCanada
d9ef454528
CI: add docs.yml
With fixes for Markdown syntax to allow tests to pass.
2022-11-26 10:28:12 -05:00