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
Avoid unnecessary HTTP requests for latest/last_rc (#641)
* Avoid unnecessary HTTP requests for latest/last_rc
The refactoring in #631 introduced a severe performance regression: With latest and last_rc the code traversed *all* GCS buckets for *every* existing Bazel version.
Since we send one HTTP request per bucket, this behavior led to a significant increase in HTTP requests ( >140 instead of 2-3 requests).
This commit restores the previous, correct behavior: Traversal will be stopped as soon as a matching version has been found.
Moreover, this commit adds a test to prevent similar regressions in the future.
Fixes#640
Drive-by fix: Replaced \"%s\" with %q.
* Apply minimal indentation principle
t.Errorf("Expected exactly %d requests (one for the top-level, one for 8.0.0, one for 7.0.0), but got %d:\n%s", wantRequests, gotRequests, strings.Join(s.Transport.RequestedURLs, "\n"))
0 commit comments