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

Fix cache replay including extra newlines. #7819

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jan 21, 2020

The compiler output cache replay was changed in #7737 to use BufReader::read_line instead of str::lines. read_line, unlike lines, includes the trailing line ending. The code is written assuming that the line endings are stripped, so make sure they are stripped here, too.

This only happens for non-JSON messages, like RUSTC_LOG.

@rust-highfive
Copy link

r? @alexcrichton

(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 Jan 21, 2020
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jan 21, 2020

📌 Commit 34ab15be23b16c4fc790c7eb0eb39762cdec7bd8 has been approved by alexcrichton

@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 Jan 21, 2020
@bors
Copy link
Contributor

bors commented Jan 21, 2020

⌛ Testing commit 34ab15be23b16c4fc790c7eb0eb39762cdec7bd8 with merge 8e75893dc66a46b9087666a780d3957e99404d7c...

@bors
Copy link
Contributor

bors commented Jan 21, 2020

💔 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 Jan 21, 2020
@alexcrichton
Copy link
Member

@bors: retry

hoping spurious timeout

@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 Jan 21, 2020
@bors
Copy link
Contributor

bors commented Jan 21, 2020

⌛ Testing commit 34ab15be23b16c4fc790c7eb0eb39762cdec7bd8 with merge befc8adcd1028154358446c3e3ff425dcbcadd32...

@bors
Copy link
Contributor

bors commented Jan 21, 2020

💔 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 Jan 21, 2020
@ehuss ehuss force-pushed the fix-replay-newlines branch from 34ab15b to 7be3c2f Compare January 22, 2020 00:03
@ehuss
Copy link
Contributor Author

ehuss commented Jan 22, 2020

I pushed a fix that should fix the Windows error. I forgot that Windows treats PATH a little differently, and there was an infinite loop where the rustc binary was executing itself.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jan 22, 2020

📌 Commit 7be3c2f has been approved by alexcrichton

@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 Jan 22, 2020
@bors
Copy link
Contributor

bors commented Jan 22, 2020

⌛ Testing commit 7be3c2f with merge 9d11cd1...

bors added a commit that referenced this pull request Jan 22, 2020
Fix cache replay including extra newlines.

The compiler output cache replay was changed in #7737 to use `BufReader::read_line` instead of `str::lines`. `read_line`, unlike `lines`, includes the trailing line ending. The code is written assuming that the line endings are stripped, so make sure they are stripped here, too.

This only happens for non-JSON messages, like `RUSTC_LOG`.
@bors
Copy link
Contributor

bors commented Jan 22, 2020

☀️ Test successful - checks-azure
Approved by: alexcrichton
Pushing 9d11cd1 to master...

@bors bors merged commit 7be3c2f into rust-lang:master Jan 22, 2020
@ehuss ehuss added this to the 1.42.0 milestone Feb 6, 2022
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.

4 participants