Skip to content
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

Merged
merged 1 commit into from
Dec 24, 2019

Conversation

aidanhs
Copy link
Member

@aidanhs aidanhs commented Dec 23, 2019

No description provided.

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 23, 2019
&& 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
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum Dec 23, 2019

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?

Copy link
Contributor

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/

Copy link
Member Author

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.

Copy link
Member

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.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-7 of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-12-23T23:36:10.3952570Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-12-23T23:36:10.4252289Z ##[command]git config gc.auto 0
2019-12-23T23:36:10.4339186Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-12-23T23:36:10.4341729Z ##[command]git config --get-all http.proxy
2019-12-23T23:36:11.3672750Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/67572/merge:refs/remotes/pull/67572/merge
---
2019-12-23T23:42:52.5888572Z    Compiling serde_json v1.0.40
2019-12-23T23:42:54.4206177Z    Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
2019-12-23T23:43:06.1320811Z     Finished release [optimized] target(s) in 1m 32s
2019-12-23T23:43:06.1417949Z tidy check
2019-12-23T23:43:06.9319905Z tidy error: /checkout/src/ci/scripts/install-msys2.sh:17: line longer than 100 chars
2019-12-23T23:43:08.8893338Z Found 485 error codes
2019-12-23T23:43:08.8893514Z Found 0 error codes with no tests
2019-12-23T23:43:08.8893559Z Done!
2019-12-23T23:43:08.8893600Z some tidy checks failed
2019-12-23T23:43:08.8893600Z some tidy checks failed
2019-12-23T23:43:08.8898765Z 
2019-12-23T23:43:08.8899024Z 
2019-12-23T23:43:08.8900526Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor"
2019-12-23T23:43:08.8901141Z 
2019-12-23T23:43:08.8901281Z 
2019-12-23T23:43:08.8908783Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
2019-12-23T23:43:08.8909132Z Build completed unsuccessfully in 0:01:44
2019-12-23T23:43:08.8909132Z Build completed unsuccessfully in 0:01:44
2019-12-23T23:43:08.8952572Z == clock drift check ==
2019-12-23T23:43:08.8974513Z   local time: Mon Dec 23 23:43:08 UTC 2019
2019-12-23T23:43:09.1777364Z   network time: Mon, 23 Dec 2019 23:43:09 GMT
2019-12-23T23:43:09.1786953Z == end clock drift check ==
2019-12-23T23:43:10.5745032Z 
2019-12-23T23:43:10.5848730Z ##[error]Bash exited with code '1'.
2019-12-23T23:43:10.5878539Z ##[section]Starting: Checkout
2019-12-23T23:43:10.5880397Z ==============================================================================
2019-12-23T23:43:10.5880451Z Task         : Get sources
2019-12-23T23:43:10.5880517Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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 @TimNN. (Feature Requests)

@Mark-Simulacrum
Copy link
Member

r=me with tidy fixed.

@aidanhs
Copy link
Member Author

aidanhs commented Dec 24, 2019

@bors r=Mark-Simulacrum p=1

@bors
Copy link
Contributor

bors commented Dec 24, 2019

📌 Commit cefeb66 has been approved by Mark-Simulacrum

@bors
Copy link
Contributor

bors commented Dec 24, 2019

🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 24, 2019
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Dec 24, 2019
…rk-Simulacrum

Use the chocolatey CDN directly to avoid the flaky API
@aidanhs
Copy link
Member Author

aidanhs commented Dec 24, 2019

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 > \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Centril added a commit to Centril/rust that referenced this pull request Dec 24, 2019
…rk-Simulacrum

Use the chocolatey CDN directly to avoid the flaky API
bors added a commit that referenced this pull request Dec 24, 2019
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 bors merged commit cefeb66 into rust-lang:master Dec 24, 2019
@aidanhs aidanhs deleted the aphs-choco-direct-cdn branch December 24, 2019 11:29
@aidanhs
Copy link
Member Author

aidanhs commented Dec 24, 2019

@bors treeclosed-

@aidanhs
Copy link
Member Author

aidanhs commented Dec 24, 2019

@bors treeclose-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants