2832 Commits

Author SHA1 Message Date
Ruiyang Wu
d7427ab762 Don't save mac metadata/extended attributes for brew bottle
This commit includes `--no-mac-metadata` `--no-acls` and `--no-xattrs`
in `default_tar_args` for `brew bottle` command.

Although `default_tar_args` is only active when `--only-json-tab` is
not passed, in which case we don't require reproducible bottles, it is
nonetheless beneficial to "regularize" tarball creation. In
particular, this resolves a sporadic `brew tests
--only=dev-cmd/bottle:20` failure (see
https://github.com/orgs/Homebrew/discussions/4376 and
https://github.com/Homebrew/brew/pull/14997).

Furthermore, with `gnu tar`, `--no-acls` and `--no-xattrs` are default
flags. As for "mac metadata", although I couldn't find official
documentation, this post (https://superuser.com/a/61188) shares some
info:
- Resource forks (resource forks have been extended attributes since 10.4)
  - Custom icons set in Finder and the images of Icon\r files
  - Metadata in PSD files
  - Objects stored in scpt files, AppleScript Editor window state, descriptions of scripts
- Information about aliases (aliases stop working if extended attributes are removed)
- Quarantine status or source URLs of files downloaded from the internet
- Spotlight comments
- Encoding of files saved with TextEdit
- Caret position of files opened with TextMate
- Skim notes

None of these is supposed to be in the bottle I believe.
2023-04-11 11:00:47 -04: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
hyuraku
4999639140 - remove cask/cmd/audit
- repair cmd/audit
2023-04-11 23:06:01 +09:00
Mike McQuaid
294ea23397
Merge pull request #15192 from ZhongRuoyu/update-maintainers-slice
dev-cmd/update-maintainers: fix undefined method
2023-04-11 10:32:32 +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
Ruoyu Zhong
1f2abf3e7e
dev-cmd/update-maintainers: fix undefined method 2023-04-11 02:24:42 +08:00
Bo Anderson
376440cf3e
Dynamically find gem groups 2023-04-10 16:54:48 +01:00
Bo Anderson
b94aede51b
dev-cmd/typecheck: install all gems on --update 2023-04-10 16:54:48 +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
Carlo Cabrera
4e20760a76
Merge pull request #15131 from Homebrew/test-runners
dev-cmd/determine-test-runners: add command to set test runners
2023-04-10 22:42:34 +08:00
Ruoyu Zhong
aede351eee
dev-cmd/bump-formula-pr: add a checkbox for resource updates
Contributors and maintainers usually strike through the message after
checking `resource` blocks for updates. Let's add a checkbox to make it
easier to update the status.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-04-09 05:35:08 +08:00
Mike McQuaid
63d8de3600
brew style --fix 2023-04-07 19:10:22 +01:00
Carlo Cabrera
8963335eea
determine-test-runners: remove fake runner
Based on discussion from Homebrew/homebrew-core#127236.
2023-04-08 01:33:53 +08:00
Carlo Cabrera
a754b6d343
Merge remote-tracking branch 'origin/master' into test-runners 2023-04-07 22:26:05 +08: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
Issy Long
8319c8f9b9
Make audit_casks return [path, { errors:, warnings:}] for CI
- This was failing but only in CI because the annotations require
  "errors" and "warnings" hash elements. Since formulae have this
  despite formulae not having warnings (probably for compatibility with
  casks), I decided to reinstate `errors` and `warnings` hash for Casks
  _right at the end_ and we can clean this up another time (famous last
  words).
2023-04-07 14:31:12 +01:00
Issy Long
d636d2de37
Apply suggestions from review comments
- Rename `strictish` to `strict_only` in `add_error` method.
- Return just `errors`, a Set, not `{ errors: errors }`, a Hash,
  from `Auditor.audit`.
2023-04-06 00:10:28 +01:00
Carlo Cabrera
87373ff12a
Move more code out of dev-cmd 2023-04-06 02:13:15 +08:00
Carlo Cabrera
ffcc4cd75f
Merge remote-tracking branch 'origin/master' into test-runners 2023-04-05 23:55:01 +08:00
Mike McQuaid
61efc7076d
Merge pull request #15156 from dduugg/enable-types 2023-04-05 15:43:53 +01:00
Douglas Eichelberger
c5ffec1a11 Enable types in dev-cmd, etc. 2023-04-04 22:23:46 -07:00
Douglas Eichelberger
a237a1ff9f Update call sites 2023-04-04 18:14:54 -07:00
Carlo Cabrera
868f9395b6
Extract code to GitHubRunnerMatrix class
The `GitHubRunnerMatrix` takes a list of testing formulae, deleted
formulae, and the available runners and constructs the matrix of active
runners for any given test job.
2023-04-05 03:52:26 +08:00
Carlo Cabrera
49e8d088ae
Move TestRunnerFormula class into a separate file 2023-04-05 01:18:11 +08:00
Carlo Cabrera
26726adc21
determine-test-runners: refactor
This supports extraction into separate modules/files.
2023-04-05 01:09:56 +08:00
Issy Long
53a17b921f
Make --display-failures-only help hidden as it's deprecated
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-04-04 17:17:19 +01:00
Carlo Cabrera
5194e5c65e
Check for --eval-all before using HOMEBREW_EVAL_ALL 2023-04-05 00:03:58 +08:00
Carlo Cabrera
a4ebb96fe6
Remove MacOS definition from generic OS
We don't want to define `MacOS` in the generic OS, so let's make sure we
refer to it as `OS::Mac` in the places we need it.

This reverts commit 575cb0263cb1428c63b9428bbd913ffde83bd317.
2023-04-04 23:10:51 +08:00
Carlo Cabrera
506f6c81a7
Support --dependents flag on macOS 2023-04-04 16:20:37 +08:00
Mike McQuaid
7b336ed8cd
Revert "Split prof gems into their own group" 2023-04-04 08:49:27 +01:00
Carlo Cabrera
c125079d0f
determine-test-runners: allow usage on macOS without --dependents 2023-04-04 13:54:35 +08:00
Douglas Eichelberger
f3a8241e69 Remove useless T.unsafe wrappers 2023-04-03 17:34:39 -07:00
Carlo Cabrera
45fdbbd1c1
determine-test-runners: add type-checking 2023-04-03 22:27:46 +08:00
Carlo Cabrera
89cd55c287
dev-cmd/determine-test-runners: add command to set test runners
This is based on feedback from Homebrew/homebrew-core#127236.
2023-04-03 20:36:45 +08:00
Mike McQuaid
aa894fbfcd
Merge pull request #15127 from issyl0/tap-workflows-bump-actions-cache-version
dev-cmd/tap-new: Use `actions/cache@v3` as v1 is very deprecated
2023-04-03 08:47:16 +01:00
Mike McQuaid
830ec2847b
Merge pull request #15114 from dduugg/ignorable-type
Enable typing in Ignorable
2023-04-03 08:37:34 +01:00
Issy Long
09ce7a1da6
dev-cmd/tap-new: Use actions/cache@v3 as v1 is very deprecated
- We forgot about this workflow when we bumped the versions of our
  actual workflows as part of issue 14692.
2023-04-02 15:43:24 +01:00
Issy Long
a4e8f9e22b
audit: Make --display-failures-only the default for Casks
- Cask warnings are really noisy and numerous. Let's only show them if
  the user passes `--strict` or something implying `--strict`, like
  `--new-cask`.
- Additionally remove `display_passes` since we would like silence if
  nothing is wrong with the cask, the same as with formula audits.
2023-04-01 01:56:45 +01:00
Ruoyu Zhong
e3eb632034
dev-cmd/bump-cask-pr: fix sha265 typo 2023-04-01 01:07:21 +08:00
Markus Reiter
244359f314
Merge pull request #15088 from reitermarkus/cask-commit-format
Make `bump-cask-pr` commit format more concise.
2023-03-31 17:45:53 +02:00
Douglas Eichelberger
7dcabd466e Remove unnecessary T.let 2023-03-31 08:38:02 -07:00
Bo Anderson
8bafbcd65a
Split prof gems into their own group 2023-03-31 13:32:38 +01:00
Mike McQuaid
0d17bbbec6
Merge pull request #15104 from dduugg/enable-io-types
Enable IO and UpdateTest types
2023-03-31 09:12:25 +01:00
Nanda H Krishna
b8fb963516
dev-cmd/tests: temporary fix for BuildPulse failure 2023-03-31 03:50:05 -04:00
Douglas Eichelberger
f9e512bf83 Enable update-test types 2023-03-30 17:31:07 -07:00
Douglas Eichelberger
4f5fc770f6 rm popen sigs 2023-03-30 17:22:02 -07:00
Douglas Eichelberger
80091b8a58 Fix tests 2023-03-30 16:39:10 -07:00
Douglas Eichelberger
15582dd031 Add Utils popen sigs, enable IO types 2023-03-30 16:39:10 -07:00
Markus Reiter
593c37de26
Merge pull request #15085 from reitermarkus/appcast
Deprecate `appcast`.
2023-03-31 00:13:08 +02:00
Markus Reiter
71e0d9c382
Make bump-cask-pr commit format more concise. 2023-03-30 20:04:21 +02:00