-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Use the chocolatey CDN directly to avoid the flaky API #67572
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
c28d7f1
to
4b8a868
Compare
src/ci/scripts/install-msys2.sh
Outdated
&& ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break | ||
done | ||
# Pre-followed the api/v2 URL to the CDN since the API can be a bit flakey | ||
curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg > msys2.nupkg |
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.
Have we confirmed that the API and not the package endpoint is flaky? If we're going to pin to a specific version, maybe we should upload these files to S3 and be done with it?
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.
Have we confirmed that the API and not the package endpoint is flaky?
Sort of: https://status.chocolatey.org/issues/2019-12-18-timeouts-when-searching-and-installing-packages/
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.
The errors I've seen directly point at the API (#67568) and the headers from the CDN indicate it's backed by cloudfront which I figure should be reliable.
This makes it easier to bump versions as well.
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.
Okay, great! That sounds like a good reason to prefer the packages endpoint for now, and we can always take the next step if it becomes necessary.
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
r=me with tidy fixed. |
4b8a868
to
cefeb66
Compare
@bors r=Mark-Simulacrum p=1 |
📌 Commit cefeb66 has been approved by |
🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened |
…rk-Simulacrum Use the chocolatey CDN directly to avoid the flaky API
Just want to note one test scenario I did try out successfully: downloading the nupkgs, disconnecting from internet and doing the install (to make sure it wasn't trying to do any other API operations). |
&& ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break | ||
done | ||
# Pre-followed the api/v2 URL to the CDN since the API can be a bit flakey | ||
curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg > \ |
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.
curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg > \ | |
curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg -o msys2.nupkg |
…rk-Simulacrum Use the chocolatey CDN directly to avoid the flaky API
Rollup of 7 pull requests Successful merges: - #67337 (Ensure that evaluating or validating a constant never reads from a static) - #67543 (Add regression tests for fixed ICEs) - #67547 (Cleanup err codes) - #67551 (Add long error code explanation message for E0627) - #67561 (remove `description` from `Error` impls in docs) - #67569 (Clean up unsafety in char::encode_utf8) - #67572 (Use the chocolatey CDN directly to avoid the flaky API) Failed merges: r? @ghost
@bors treeclosed- |
@bors treeclose- |
No description provided.