22109 Commits

Author SHA1 Message Date
Alexander Bayandin
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 Ford
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 McQuaid
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
Maxim Belkin
370ef0ac1e
Fix Homebrew style issue
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-22 09:22:36 -05:00
Maxim Belkin
e967fffdfb
Apply Mike's suggestions
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-22 09:16:08 -05:00
Mike McQuaid
4f33c2cbb4
Merge pull request #11569 from MikeMcQuaid/cleanup_release_notes
release_notes: refactor/cleanup.
2021-06-22 15:04:59 +01:00
Mike McQuaid
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
hyuraku
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]
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 Belkin
514271010a
Merge pull request #11556
github.rb: correct one dry-run message
2021-06-18 16:02:22 -05:00
Rylan Polster
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 McQuaid
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 318175cfe2b23328f1b5f13812fd59cfd45fe1dc,
e7ab760392b9691a6c730b7e0d660b7874969e70 and
3b35af63f608438b1882756feca94a6ebdd0d6a3 (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
Rylan Polster
2760d981d3
Allow for homebrew/core to be untapped 2021-06-17 14:18:43 -04:00
Rylan Polster
1cb0f0fbf2
Merge pull request #11534 from Rylan12/formulary-map
Formulary: map formula names to local bottle paths
2021-06-17 12:26:05 -04:00
Sam Ford
e4ad1a3f3f
Merge pull request #11491 from samford/update-version-parsers-for-luajit-openresty
Version: Add parser for additional hyphenated filenames
2021-06-17 08:25:31 -04:00
Mike McQuaid
30a65342e8
Deprecate, disable, delete code for Homebrew 3.2.0
Do the usual deprecation, disable, delete dance for Homebrew 3.2.0.
2021-06-17 11:34:32 +01:00
Nanda H Krishna
e71a0edf6f
Merge pull request #11552 from Homebrew/dependabot/bundler/Library/Homebrew/bindata-2.4.10
build(deps): bump bindata from 2.4.8 to 2.4.10 in /Library/Homebrew
2021-06-17 02:56:50 +05:30
Nanda H Krishna
cfcb4761fd
Merge pull request #11551 from Homebrew/dependabot/bundler/Library/Homebrew/simplecov_json_formatter-0.1.3
build(deps): bump simplecov_json_formatter from 0.1.2 to 0.1.3 in /Library/Homebrew
2021-06-17 02:56:21 +05:30
Nanda H Krishna
2d888c350a
Merge pull request #11549 from Homebrew/dependabot/bundler/Library/Homebrew/docile-1.4.0
build(deps): bump docile from 1.3.5 to 1.4.0 in /Library/Homebrew
2021-06-17 02:55:50 +05:30
BrewTestBot
b9e183c1f5
Update RBI files for bindata. 2021-06-16 18:43:26 +00:00