-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add analytics report to CI #177405
feat: add analytics report to CI #177405
Conversation
58ea92d
to
d4fdf27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still draft?
Co-authored-by: Carlo Cabrera <[email protected]>
3cada4f
to
99e01c0
Compare
exit 0 | ||
fi | ||
|
||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could probably all be replaced with brew info --analytics $TESTING_FORMULAE
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried, but that immediately puts it in tables that aren't as much more verbose than this one. And brew info --json
doesn't seem to have that data.
EDIT: example:
==> Analytics
==> install (30 days)
Index | Name (with options) | Count | Percent |
---|---|---|---|
1 | hello | 2,106 | 100.00% |
==> install (90 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | hello | 6,515 | 100.00% |
==> install (365 days) | |||
Index | Name (with options) | Count | Percent |
-----: | -------------------------------------------------------------------------------------------------------------------------------------------- | -------: | --------: |
1 | hello | 25,080 | 99.97% |
2 | hello --HEAD | 7 | 0.03% |
Total | 25,087 | 100.00% | |
==> install-on-request (30 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | hello | 2,104 | 100.00% |
==> install-on-request (90 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | hello | 6,513 | 100.00% |
==> install-on-request (365 days) | |||
Index | Name (with options) | Count | Percent |
-----: | -------------------------------------------------------------------------------------------------------------------------------------------- | -------: | --------: |
1 | hello | 25,078 | 99.97% |
2 | hello --HEAD | 7 | 0.03% |
Total | 25,085 | 100.00% | |
==> build-error (30 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | hello | 16 | 100.00% |
==> Analytics
==> install (30 days)
Index | Name (with options) | Count | Percent |
---|---|---|---|
1 | beanstalkd | 36 | 100.00% |
==> install (90 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | beanstalkd | 371 | 99.73% |
2 | beanstalkd --HEAD | 1 | 0.27% |
Total | 372 | 100.00% | |
==> install (365 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | beanstalkd | 793 | 99.75% |
2 | beanstalkd --HEAD | 2 | 0.25% |
Total | 795 | 100.00% | |
==> install-on-request (30 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | beanstalkd | 35 | 100.00% |
==> install-on-request (90 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | beanstalkd | 365 | 99.73% |
2 | beanstalkd --HEAD | 1 | 0.27% |
Total | 366 | 100.00% | |
==> install-on-request (365 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | beanstalkd | 772 | 99.74% |
2 | beanstalkd --HEAD | 2 | 0.26% |
Total | 774 | 100.00% | |
==> build-error (30 days) | |||
Index | Name (with options) | Count | Percent |
-----: | --------------------------------------------------------------------------------------------------------------------------------------------- | ------: | --------: |
1 | beanstalkd | 0 | 0.00% |
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?This will eventually allow us to see how often a formula is installed, to grasp how much effort is warranted to fix it.