1148 Commits

Author SHA1 Message Date
Mike McQuaid
57844530a9
analytics: remove UUID.
We don't use this at all with InfluxDB and don't need it any more for GA
so let's just remove it.
2023-02-20 09:05:15 +00:00
Mike McQuaid
ad1213a7da
utils/analytics: make on_request a proper boolean.
Otherwise when it's `false` it's being turned into a `true` value.
2023-02-16 17:51:42 +00:00
Mike McQuaid
a83fef7b41
utils/analytics: cleanup data.
Based on reviewing InfluxDB buckets.
2023-02-16 13:15:04 +00:00
Mike McQuaid
ef8ad10741
utils/analytics: fix BuildError reporting.
Need to ensure we call the correct methods to avoid duplicates.
2023-02-16 12:59:46 +00:00
Mike McQuaid
e42cae19a5
Merge pull request #14647 from MikeMcQuaid/report_influxdb_default
analytics: report to InfluxDB by default.
2023-02-15 19:19:41 +00:00
Mike McQuaid
dfd4cd9b0c
analytics: update token.
We've deleted the old data and added a new bucket with a new token.
2023-02-15 17:32:34 +00:00
Mike McQuaid
769a8c5001
analytics: report to InfluxDB by default.
Now that this is ready: let's roll it out to everyone in 4.0.0.
2023-02-15 17:27:02 +00:00
Mike McQuaid
c5252817c2
analytics: refactor InfluxDB/Google handling. 2023-02-15 16:34:50 +00:00
Sean Molenaar
50e9247da4
fix: add better keys and fuller values to influxDB analytics 2023-02-15 14:12:05 +01:00
Bo Anderson
7ef0c48362
Fix analytics handling when core/cask taps are untapped 2023-02-15 05:31:08 +00:00
EricFromCanada
dfc9906184
internal messaging fixes 2023-02-10 23:17:16 -05:00
anatawa12
cd045b53e8
fix(utils/github): failure with fine-granted api tokens 2023-02-11 00:06:28 +09:00
Michael Cho
3beca4f691
utils/github: get artifact from last run 2023-02-08 18:22:58 -08:00
Bo Anderson
2bb5cdaaa9
Merge pull request #14523 from issyl0/gist-logs-better-token-permissions-message
cmd/gist-logs: On 404, the PAT probably needs more permissions
2023-02-07 01:32:10 +00:00
Issy Long
87348dc179
Apply suggestions from code review
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-02-07 02:05:46 +01:00
Mike McQuaid
6c27021211
Merge pull request #14525 from SMillerDev/master
analytics: stop sending analytics in tests
2023-02-06 21:28:29 +01:00
Issy Long
41b143deec
cmd/gist-logs: On 404, the PAT probably needs more permissions
- This 404 error is from GitHub, and GitHub doesn't give us any more
  informations about scopes for the gist endpoint (for some reason). But we can
  safely assume, as it happens a lot, that "Error: Not Found" (404) is because
  the user hasn't granted their `HOMEBREW_GITHUB_API_TOKEN` the `gist` scope.

Before:

```shell
$ HOMEBREW_GITHUB_API_TOKEN=<token_without_gist_scope> brew gist-logs -p logrotate
Error: Not Found
```

After:

```shell
❯ HOMEBREW_GITHUB_API_TOKEN=<token_without_gist_scope> brew gist-logs logrotate
Error: Your GitHub API token likely doesn't have the `gist` scope.
Create a GitHub personal access token:
https://github.com/settings/tokens/new?scopes=gist&description=Homebrew
echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.zshrc
```
2023-02-06 17:00:02 +01:00
Sean Molenaar
61e5e19bdb
analytics: fix spelling
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-02-06 16:56:25 +01:00
Sean Molenaar
10e3c522f7
analytics: stop sending analytics in tests 2023-02-06 16:28:34 +01:00
Bo Anderson
83b23e6d5e
Fix license handling for API formulae 2023-02-06 10:09:40 +00:00
Xuehai Pan
4322e57dd0 utils/curl: make --show-error optional 2023-02-04 13:05:41 +00:00
Francois-Xavier Coudert
2b07d0d5bb analytics: fix URL typo 2023-01-26 21:24:50 +01:00
Mike McQuaid
3be12ca066
Merge pull request #14396 from apainintheneck/add-closed-pr-check-to-bump-cmds
Add closed PR check to bump cmds
2023-01-23 13:35:52 +00:00
apainintheneck
a8ee2b7746 Add closed PR check to bump cmds
Currently we only check for closed PRs in
`bump-cask-pr`. This adds that check to `bump`
and `bump-formula-pr`. The idea is that this
check can warn users about already updated
packages or those that can't be updated
easily and should be updated manually instead.
2023-01-20 18:46:07 -08:00
Sean Molenaar
59ebdab2b7
analytics: switch to InfluxDB for logging 2023-01-19 18:15:27 +01:00
Caleb Xu
c75adc8238
utils/gzip: introduce new module 2023-01-06 22:58:22 -05:00
Mike McQuaid
6a25229567
brew style --fix 2023-01-02 19:18:51 +00:00
Dustin Rodrigues
5e9223d059
add explicit version for GitHub API 2022-12-19 12:00:12 -05:00
Mike McQuaid
77c0d38c35
brew style --fix 2022-12-13 11:37:06 +00:00
Mike McQuaid
4e03afeeb6
utils/github/api: curl format token, not a ruby one. 2022-12-13 11:37:05 +00:00
Frederick Zhang
c27eed4606
Curl: Fix following redirections when base changes
Update base URL when there is an absolute location, so that following
relative locations are considered relative to the new base.

Consider below cURL output for https://example_one.com:

    HTTP/1.1 302 Moved Temporarily
    Location: https://example_two.com

    HTTP/1.1 302 Moved Temporarily
    Location: /foo/

    HTTP/1.1 200 OK

The final URL should be https://example_two.com/foo/ rather than
https://example_one.com/foo/.
2022-11-30 01:32:24 +11:00
Bo Anderson
81f262ece3
utils/gems: use env shebang when installing gems 2022-11-19 00:58:05 +00:00
Bo Anderson
e21c926f9b
Update Bundler to 2.3.26 2022-11-17 16:35:08 +00:00
hyuraku
6423c27e8b change the condition on GitHub.multiple_short_commits_exist? 2022-11-08 21:02:11 +09:00
hyuraku
5522cd106f use url_to instead of url string 2022-11-08 18:54:18 +09:00
hyuraku
903cac3651 refactor GitHub.multiple_short_commits_exist? 2022-11-07 23:44:42 +09:00
hyuraku
43eca95ce4 reset require-utils/github location 2022-11-07 23:12:27 +09:00
hyuraku
3e092e5e90 refactor option style 2022-11-07 23:12:07 +09:00
hyuraku
3f3a0b5469 move two methods from download_storategy to utils/github 2022-11-06 18:12:43 +09:00
Bo Anderson
796bad98ff
Allow gem installation on Rubies other than 2.6 2022-11-05 15:23:19 +00:00
Bo Anderson
ee64886554
Merge pull request #14041 from Bo98/no-sitedir
Remove sitedir from LOAD_PATH
2022-10-25 23:02:10 +01:00
Bo Anderson
8cb056c657
Remove sitedir from LOAD_PATH 2022-10-24 19:42:49 +01:00
Harry Marr
49e2cf9f92
Extract supports_partial_clone_sparse_checkout? 2022-10-20 15:45:33 -04:00
Bo Anderson
4f4747cf98
Merge pull request #14014 from Bo98/ruby3-part2
Additional fixes for Ruby 3 compatibility
2022-10-20 16:17:01 +01:00
Bo Anderson
200cdc69df
utils/gems: set SDKROOT for macOS system Ruby 2022-10-19 18:39:52 +01:00
Bo Anderson
eac32f0b20
Additional fixes for Ruby 3 compatibility 2022-10-18 01:54:59 +01:00
Bo Anderson
c150657005
Restore ARM Linux support when installing gems 2022-10-17 13:59:40 +01:00
Bo Anderson
a0e784f0ea
Update to Bundler 2 2022-10-14 01:30:38 +01:00
Bo Anderson
a776d5f02b
Workaround macOS system Ruby issue picking incorrect native gem archs 2022-10-14 01:30:38 +01:00
Bo Anderson
5e31f41a52
utils/gems: prevent lockfile modification during installation 2022-10-14 01:30:37 +01:00