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

Move toolstate checking into bootstrap #66681

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

Mark-Simulacrum
Copy link
Member

This intends no functional changes, merely translates the spread of shell/python into Rust.

One problematic area that I'd like to avoid but wasn't quite able to figure out how is the master branch script which is still in bash/python -- I cared less about that since it is orthogonal to the actual checking that we're doing, though as-is we're duplicating some code across Rust and that script.

r? @kennytm or maybe @pietroalbini

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 23, 2019
@Mark-Simulacrum
Copy link
Member Author

This is preparation for #65000 -- but not the changes that the FCP there is about; that will be done in a separate, future PR.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools 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-11-23T23:26:09.6705837Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-23T23:26:09.6921905Z ##[command]git config gc.auto 0
2019-11-23T23:26:09.6994396Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-23T23:26:10.6605374Z ##[command]git config --get-all http.proxy
2019-11-23T23:26:10.6608286Z ##[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/66681/merge:refs/remotes/pull/66681/merge
---
2019-11-23T23:30:44.5173977Z  ---> 6de740cc5443
2019-11-23T23:30:44.5213330Z Successfully built 6de740cc5443
2019-11-23T23:30:44.6441849Z Successfully tagged rust-ci:latest
2019-11-23T23:30:44.6746881Z Built container sha256:6de740cc54439184d46c95f3338940ceb4997f9599afd79cdde112c1444c6be1
2019-11-23T23:30:44.6764760Z Uploading finished image to https://rust-lang-ci-sccache2.s3.amazonaws.com/docker/480929bc3bc019c75d577647f444b4de6781d09e6c536dbea2d03afb25b3d85ad948e63811757d340a630b00995141e1b0ee59f2e576e5c502c9156bf4ec6fc2
2019-11-23T23:31:13.6028864Z upload failed: - to s3://rust-lang-ci-sccache2/docker/480929bc3bc019c75d577647f444b4de6781d09e6c536dbea2d03afb25b3d85ad948e63811757d340a630b00995141e1b0ee59f2e576e5c502c9156bf4ec6fc2 An error occurred (InvalidAccessKeyId) when calling the CreateMultipartUpload operation: The AWS Access Key Id you provided does not exist in our records.
2019-11-23T23:31:14.6805829Z [CI_JOB_NAME=x86_64-gnu-tools]
2019-11-23T23:31:14.6848138Z == clock drift check ==
2019-11-23T23:31:14.6857200Z   local time: Sat Nov 23 23:31:14 UTC 2019
2019-11-23T23:31:14.9748892Z   network time: Sat, 23 Nov 2019 23:31:14 GMT

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)

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 24, 2019
@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 24, 2019
@Mark-Simulacrum
Copy link
Member Author

(CI failure is expected and due to the last commit which tests that we're still verifying submodules)

@bors
Copy link
Contributor

bors commented Nov 25, 2019

☔ The latest upstream changes (presumably #66739) made this pull request unmergeable. Please resolve the merge conflicts.

@Mark-Simulacrum
Copy link
Member Author

r? @pietroalbini

@rust-highfive rust-highfive assigned pietroalbini and unassigned kennytm Dec 2, 2019
@Mark-Simulacrum
Copy link
Member Author

(If we're down with the approach the rebase and such here should be mostly painless)

Copy link
Member

@pietroalbini pietroalbini left a comment

Choose a reason for hiding this comment

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

One problematic area that I'd like to avoid but wasn't quite able to figure out how is the master branch script which is still in bash/python -- I cared less about that since it is orthogonal to the actual checking that we're doing, though as-is we're duplicating some code across Rust and that script.

I don't think it's that bad if we initialize the full CI environment in the master builder (it's like a couple of minutes?). Then we can just do ./x.py test publish-toolstate (switching to run once my GHA PR lands).

src/bootstrap/toolstate.rs Outdated Show resolved Hide resolved
src/bootstrap/toolstate.rs Show resolved Hide resolved
src/bootstrap/toolstate.rs Outdated Show resolved Hide resolved
///
/// * See <https://help.github.com/articles/about-commit-email-addresses/>
/// if a private email by GitHub is wanted.
fn commit_toolstate_change(
Copy link
Member

Choose a reason for hiding this comment

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

Can we switch to use deploy keys instead? Dunno if you want to do this in this PR or another, but it's something I think we should do eventually. The code to push with a deploy key is here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd rather do this in a separate PR, seems cleaner.

src/bootstrap/toolstate.rs Outdated Show resolved Hide resolved
@Mark-Simulacrum
Copy link
Member Author

I don't think it's that bad if we initialize the full CI environment in the master builder (it's like a couple of minutes?). Then we can just do ./x.py test publish-toolstate (switching to run once my GHA PR lands).

Yeah, this seems reasonable. I would prefer that we land this and then do that in a followup PR -- I can work on it pretty quickly (mostly because I worry about changing too much in one PR, and the existing duplication is pretty minimal).

I believe I've resolve the other review comments you left.

@pietroalbini
Copy link
Member

@bors r+ rollup=never

Thanks!

@bors
Copy link
Contributor

bors commented Dec 10, 2019

📌 Commit 3e44c9c98b080561104dec7a797fe1901de43704 has been approved by pietroalbini

@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 10, 2019
@bors
Copy link
Contributor

bors commented Dec 10, 2019

⌛ Testing commit 3e44c9c98b080561104dec7a797fe1901de43704 with merge a51db9dafcc9ea5695bbde6cd14d0cdc20221b9f...

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools 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.

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)

@bors
Copy link
Contributor

bors commented Dec 10, 2019

💔 Test failed - checks-azure

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 10, 2019
This is not yet actually used by CI, but implements the logic for
checking that tools are properly building on beta/stable and during beta
cutoff week.

This attempts to mirror the checking functionality in
src/ci/docker/x86_64-gnu-tools/checktools.sh, and called scripts. It
does not attempt to run the relevant steps (that functionality was
originally desired to be moved into bootstrap as well, but doing so
proved more difficult than expected).

This is intended as a way to centralize and make clearer the logic
involved in toolstate checking. In particular, the previous logic was
spread across numerous python and shell scripts in such a way that made
interpretation quite difficult.
@Mark-Simulacrum
Copy link
Member Author

@bors r=pietroalbini

@bors
Copy link
Contributor

bors commented Dec 10, 2019

📌 Commit 97d9364 has been approved by pietroalbini

@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 10, 2019
@bors
Copy link
Contributor

bors commented Dec 10, 2019

⌛ Testing commit 97d9364 with merge 7dbfb0a...

bors added a commit that referenced this pull request Dec 10, 2019
…etroalbini

Move toolstate checking into bootstrap

This intends no functional changes, merely translates the spread of shell/python into Rust.

One problematic area that I'd like to avoid but wasn't quite able to figure out how is the master branch script which is still in bash/python -- I cared less about that since it is orthogonal to the actual checking that we're doing, though as-is we're duplicating some code across Rust and that script.

r? @kennytm or maybe @pietroalbini
@bors
Copy link
Contributor

bors commented Dec 10, 2019

☀️ Test successful - checks-azure
Approved by: pietroalbini
Pushing 7dbfb0a to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 10, 2019
@bors bors merged commit 97d9364 into rust-lang:master Dec 10, 2019
@rust-highfive
Copy link
Collaborator

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.

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

5 participants