-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add new improved ./scripts/bors-stats.rb #2707
Conversation
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.
This looks helpful but I had problems running it.
First it said the ansi
package was missing, so I removed the require, and all the ANSI calls.
Then it said thor
was missing...
Couldn't this work with just the basic packages that come with ruby 2.6?
Thanks for trying! I switched to using nix:
I didn't find the
|
da1009e
to
33a35dd
Compare
Idea for future: Maybe one could add some more general and flexible way of filtering like: ./scripts/bors-stats.rb list | jq '<some jq filter>' | ./scripts/bors-stats.rb view Or: ./scripts/bors-stats.rb list --jq-filter "<some jq filter>" |
33a35dd
to
182fc7e
Compare
I had another try... |
It seems that logs fetched from hydra are in binary format 🤔 :
|
Fixing now... stand by. I forgot to add the |
5a1a36f
to
4e51c50
Compare
Try now. Check $ nix-shell --run "./scripts/bors-stats.rb download-logs ..." |
Ok, well. It doesn't work for me from nix-shell:
But works fine while running as script:
(I'm wondering why it downloads |
@piotr-iohk Make sure you're on revision 4e51c50
|
It probably downloads the same hydra build logs twice because it's a cached failure. |
2b18827
to
ee1c1ca
Compare
Supports: - Ruby - Customizable showing of per-failure details (true/false/auto) - Supports pagination for more historical data (--count N_PRS) - Correlate failures with merged PRs (show both in a list) - Filter by issue/tag (list 2040) - Filter by comment bodyText (--search API) - Filter by date with --before and --after options - Scrape hydra builds for os type (--fetch-system) - Auto-tag hspec output using regexes (--auto-annotate, --auto-annotate-fuzzy) - Cause breakdown stats don't break on multiple tags in same failure - Add --annotate option - download-logs command - Automatic caching - Add --force-refetch option to disable caching - Get API tokens from a command instead of environment variables Co-authored-by: Rodney Lorrimar <[email protected]>
ee1c1ca
to
303f130
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.
I made more improvements
- Nicer log messages
- Added some source comments
- Password command
- Reordered functions in approximate order of most interesting to least interesting
- Added caching (and --force-refetch override) to most fetches
- Tweaked log filenames and cache path
- Squashed and rebased
I retested the bits that I understand how to use, so hopefully haven't broken anything again.
Issue Number
ADP-988 / ADP-970
Overview
./bors-stats.rb
to replace./bors-stats.sh
Comments