weaveworks-experiments / compare-revisions

Experimental thing for comparing what's on k8s clusters
Apache License 2.0
0 stars 0 forks source link

Only fetch repositories once per poll #14

Closed jml closed 7 years ago

jml commented 7 years ago

Previously, we'd go through each image with a diff, pull the repo, and get the logs.

Now, after figuring out which images have a diff, we group by repo and log command, then pull the repo, then get the logs.

A memoized version of the previous code would definitely be easier to read, but this approach is more natural to parallelise.