You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running the PRR kepctl query command suggested in the docs
and found it to be... slow. Could have been my internet connection?
kepctl query
--sig '.*'
--prr '(at)johnbelamaric'
--include-prs
--gh-token-path ~/.secrets/github.token
--status implementable,provisional
While I waited for it to finish running, I looked at what the code was
doing:
- cloning the kubernetes/enhancements repo for each sig
- listing all PRs for kubernetes/enhancements for each sig
I opted to add two non-exported fields to hold a cached copy of:
- a clone of kubernetes/enhancements
- a list of all kubernetes/enhacements PRs
This provides two benefits:
- The kepctl query command is ~30X faster, down from O(minutes) to ~15s
- The query is based off of a point-in-time snapshot of the repo and
PRs, rather than potentially picking up new results as PRs are
opened / merged
0 commit comments