Commit Graph
22976 Commits
Author SHA1 Message Date
Michael Cho d304c84f2a test/utils/github_spec: fix artifact number 2021-06-25 11:36:13 -07:00
Mike McQuaidandGitHub 91f2114bb3 Merge pull request #11597 from gromgit/cleanup_all_info_dir
cleaner: recursively delete info `dir`s
2021-06-25 12:22:22 +01:00
Adrian Ho 0ec4357ea1 cleaner: recursively delete info dirs
Arch-specific build tool formulae (https://github.com/Homebrew/homebrew-core/pull/79874) install their info files in `#{info}/<arch>` to avoid conflicts with the main tool formulae.

However, the info cleaner only removes `#{info}/dir`, so each tool's bottle includes `#{info}/<arch>/dir`, which causes install-time conflicts.

This PR fixes that by deleting all `dir`s under `#{info}`.

Before:
```
==> Cleaning
[...]
==> Fixing /usr/local/Cellar/i686-elf-binutils/2.36.1_1/lib/i686-elf/bfd-plugins/libdep.so permissions from 755 to 444
==> Finishing up
```

After:
```
==> Cleaning
[...]
==> Fixing /usr/local/Cellar/i686-elf-binutils/2.36.1_1/lib/i686-elf/bfd-plugins/libdep.so permissions from 755 to 444
rm /usr/local/Cellar/i686-elf-binutils/2.36.1_1/share/info/i686-elf/dir
==> Finishing up
```
2021-06-25 13:30:24 +08:00
BrewTestBot f0cdf61e78 sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-06-25 00:14:00 +00:00
Alexander Bayandin 27772ab57a typecheck: do not generate RBI file for did_you_mean 2021-06-24 15:45:03 +01:00
Alexander Bayandin d55cbeac78 github_spec: Update PR number with unexpired artifacts 2021-06-24 13:29:44 +01:00
Sam FordandGitHub 47d5150c33 Merge pull request #11581 from samford/MacOS-move-version-methods
OS::Mac: Move version methods into ::Version
2021-06-23 17:03:21 -04:00
Maxim BelkinandGitHub f1c5ea7cea Merge pull request #11576 from maxim-belkin/github-fix
utils/github.rb: fix dry-run message
2021-06-23 13:20:28 -05:00
Alexander BayandinandGitHub 1595a908df Merge pull request #11565 from bayandin/fuzzy-search-and-did-you-mean
Formula fuzzy search and did you mean
2021-06-23 18:27:10 +01:00
Sam Ford 0752d25125 OS::Mac: Move version methods into ::Version 2021-06-23 09:03:46 -04:00
Sam FordandGitHub 41e875a676 Merge pull request #11395 from hyuraku/repair_pub-date_in_livecheck
repair pubDate statement in livecheck
2021-06-23 08:22:36 -04:00
Mike McQuaidandGitHub 41803ebf93 Merge pull request #11578 from jasonrudolph/flaky-test-detection
Automatically detect and track flaky tests
2021-06-23 11:00:38 +01:00
Alexander Bayandin 35288995bc cmd/install: do not print similar error messages 2021-06-22 18:06:53 +01:00
Alexander Bayandin 4a81d10161 brew vendor-gems: commit updates. 2021-06-22 18:06:53 +01:00
Alexander Bayandin 4c57b9d8f8 Gemfile: add did_you_mean gem 2021-06-22 18:06:53 +01:00
Alexander Bayandin d455ca9377 search: add fuzzy search results 2021-06-22 18:06:52 +01:00
Alexander Bayandin ce4410fd8d exceptions: add "Did you mean ..." for FormulaOrCaskUnavailableError 2021-06-22 18:06:52 +01:00
Alexander Bayandin 7aacda1754 formula: add fuzzy_search method 2021-06-22 18:06:52 +01:00
370ef0ac1e Fix Homebrew style issue
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-22 09:22:36 -05:00
e967fffdfb Apply Mike's suggestions
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-22 09:16:08 -05:00
Mike McQuaidandGitHub 4f33c2cbb4 Merge pull request #11569 from MikeMcQuaid/cleanup_release_notes
release_notes: refactor/cleanup.
2021-06-22 15:04:59 +01:00
Mike McQuaidandGitHub f04e5d6700 Merge pull request #11579 from hyuraku/repair_Diagnostic_Checks_all
repair Diagnostic::Checks#all
2021-06-22 15:04:39 +01:00
Sam Ford 23f8cb9f4a Sparkle: Handle ArgumentError from Time#parse 2021-06-22 10:02:57 -04:00
Sam Ford a5768de0c3 Sparkle: Account for empty pubDate 2021-06-22 09:23:56 -04:00
Sam Ford e7d3b2cb31 Sparkle: Move default pub_date value 2021-06-22 09:14:56 -04:00
hyurakuandSam Ford 6720f8bd1e repair pub-date in livecheck 2021-06-22 09:14:55 -04:00
hyuraku af68ceff88 repair Diagnostic::Checks#all 2021-06-22 20:57:09 +09:00
Maxim Belkin b29ec8cf65 utils/github.rb: fix dry-run message 2021-06-21 13:37:49 -05:00
BrewTestBot f9fe62f883 Update RBI files for rubocop-rails. 2021-06-21 18:06:46 +00:00
BrewTestBot c1e35b7f8b brew vendor-gems: commit updates. 2021-06-21 18:05:23 +00:00
dependabot[bot]andGitHub 346d2087f1 build(deps): bump rubocop-rails in /Library/Homebrew
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.10.1...v2.11.0)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 18:02:01 +00:00
Jason Rudolph e163eb8650 Enhance test suite to emit JUnit XML test reports
In preparation for detecting flaky tests with BuildPulse, this commit
sets up the rspec_junit_formatter gem to output JUnit XML reports of the
test suite, which is the format used by BuildPulse and various other
tooling that interprets test results.

Because the test suite uses the parallel_tests gem, this commit
incorporates some related changes to make all the parallel_tests gem and
the rspec_junit_formatter gem to cooperate with each other.

rspec_junit_formatter writes everything to a single XML file. That works
fine when there's only one process writing to the file. By default,
whatever process finishes last will write to the file and clobber the
output of all the other processes that wrote to the file. 🙈

To prevent this issue, the parallel_tests wiki recommends adding a
`.rspec_parallel` file to specify its RSpec options
(https://github.com/grosser/parallel_tests/wiki#with-rspec_junit_formatter----by-jgarber),
then the project can specify different files for each process to write
to like so:

  --format RspecJunitFormatter
  --out tmp/rspec<%= ENV['TEST_ENV_NUMBER'] %>.xml

However, prior to this commit, the Homebrew/brew test suite specified
its RSpec options via the command line. Unfortunately though, there's no
way (AFAICT) to set the equivalent of these options via the command
line:

  --format RspecJunitFormatter
  --out tmp/rspec<%= ENV['TEST_ENV_NUMBER'] %>.xml

So, we need to use a `.rspec_parallel` file to specify these options ☝️.

However, it appears that RSpec allows you to specify formatters _either_
in an options file (like `.rspec_parallel`) _or_ via command-line args.
But if you specify any formatters via command-line args, then all
formatters in the options file are ignored.  (I suspect that's somehow
related to this bit of code in rspec-core:
https://github.com/rspec/rspec-core/blob/v3.10.0/lib/rspec/core/configuration_options.rb#L64.)

With that in mind, in order to have the RspecJunitFormatter configured
 in `.rspec_parallel`, we need to move the other formatters into
 `.rpsec_parallel` as well, instead of passing them as command-line
 args. Therefore, this commit moves all the formatters into a
 `.rspec_parallel` file.
2021-06-21 13:14:18 -04:00
Mike McQuaid 08c96df947 release_notes: refactor/cleanup.
This was failing for me locally so I've made some fixes:
- remove the `markdown` flag (as it's the only path now)
- refactor the generation to not use intermediate variables
- discard more weird cases rather than erroring
- exclude @Homebrew changes (e.g. from bots) because we don't care about
  these in the release notes
2021-06-21 14:25:01 +01:00
BrewTestBot 4b126b8cf3 sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-06-19 00:10:45 +00:00
Maxim BelkinandGitHub 514271010a Merge pull request #11556
github.rb: correct one dry-run message
2021-06-18 16:02:22 -05:00
Rylan PolsterandGitHub 46164a3054 Merge pull request #11555 from Rylan12/remove-homebrew-core
Allow for homebrew/core to be untapped
2021-06-18 16:05:24 -04:00
Rylan Polster 044da5d5ac Fix style 2021-06-18 15:30:14 -04:00
Alexander Bayandin 7c962c0aa8 audit_spec: simplify tests 2021-06-18 17:34:43 +01:00
Alexander Bayandin c95c2e3258 audit_conflicts: verbose variables name 2021-06-18 17:34:42 +01:00
Alexander Bayandin 43d67816ea audit_conflicts: enable for third-party taps 2021-06-18 17:34:42 +01:00
Alexander Bayandin 1ddb6ef584 audit: do not allow aliases and renames in formula conflicts 2021-06-18 17:34:42 +01:00
Alexander Bayandin 84e3e0a6b8 audit_spec: add tests for audit_conflicts 2021-06-18 17:34:42 +01:00
Alexander Bayandin 4c14675021 audit: add more checks for conflics_with audit 2021-06-18 17:34:42 +01:00
Rylan Polster 60203afdd5 Merge env variables into HOMEBREW_JSON_CORE 2021-06-18 12:10:26 -04:00
Rylan Polster 1d516b628b Use #present? and #blank? to check env variable 2021-06-18 12:07:34 -04:00
Rylan Polster b096bf1fed dependency::expand: only prune missing deps with flag 2021-06-18 12:03:22 -04:00
Mike McQuaidandGitHub 72c59c816f Merge pull request #11548 from MikeMcQuaid/3_2_deprecate_disable_remove
Deprecate, disable, delete code for Homebrew 3.2.0
2021-06-18 14:34:10 +01:00
Nanda H Krishna 35e5c8a612 formula_installer: add fallback to use tap formula
The keg formula isn't present in some old bottles. Use the tap
formula as a fallback when this is the case.
2021-06-18 14:25:34 +05:30
Misty De Meo c0a02442d9 Revert "language/java: use shortened brew paths"
This reverts commits 318175cfe2,
e7ab760392 and
3b35af63f6 (PR #11537).
2021-06-17 20:29:43 -07:00
Maxim Belkin d533017d38 github.rb: correct one dry-run message 2021-06-17 19:32:10 +00:00