Skip to content

Conversation

@brettfo
Copy link
Member

@brettfo brettfo commented Jul 14, 2020

To find values needed to perform a VS insertion, we have to download around 500 individual log files and parse them all with a regex. This is slow and error-prone, and recently has been timing out. The first part of this PR would retry each log up to 5 times. That's slightly more stable, but not necessarily. The second part of this PR abuses an undocumented API shape to download all logs as a single zip file and then only the interesting ones (e.g., one of them) is checked with the regex. This should be much faster and more stable, assuming the undocumented API doesn't disappear. If it does disappear, there's a one-line change that will switch back to the 500 item download.

Tested via internal build.

@brettfo brettfo requested a review from KevinRansom July 14, 2020 22:43
@brettfo brettfo merged commit 227eca4 into dotnet:master Jul 15, 2020
@brettfo brettfo deleted the log-download branch July 15, 2020 00:57
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* add retry logic to log downloader

* download logs as zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants