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

Don't truncate compiler output in compiletest #53422

Closed

Conversation

ashtneoi
Copy link
Contributor

Fixes issue #53332. Should I write a test for this, or is it sufficiently regression-proof?

@rust-highfive
Copy link
Collaborator

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 Aug 16, 2018
@alexcrichton
Copy link
Member

Thanks for the PR! I want to be sure to cc @kennytm in relation to #45783 where this was originally added. It seems that if we do this we may go back to OOMing sometimes?

A better default may be to perhaps only whitelist tests to be executed with read2_abbreviated?

@kennytm
Copy link
Member

kennytm commented Aug 20, 2018

read2_abbreviated is definitely needed as long as the test run-pass\rustc-rust-log.rs still runs on a 32-bit platform.

Perhaps enable read2_abbreviated just for run-pass tests?

P.S. Why would the JSON output exceed 416 KB? Could we redact the error explanation?

@ashtneoi
Copy link
Contributor Author

read2_abbreviated is definitely needed as long as the test run-pass\rustc-rust-log.rs still runs on a 32-bit platform.

Aha, I knew I was missing something.

P.S. Why would the JSON output exceed 416 KB? Could we redact the error explanation?

That sounds like a much better idea. Maybe we could add a new --error-format option that omits explanations? Call it something like json-brief or json-no-explanations?

@alexcrichton
Copy link
Member

It's probably best to avoid changing the compiler here, ideally we'd just use the abbreviated reading for that one test I believe.

@pietroalbini
Copy link
Member

Ping from triage! What's the status of this PR?

@ashtneoi
Copy link
Contributor Author

I think we're waiting on me now, but I didn't have much time last week to work on it (sorry).

@ashtneoi
Copy link
Contributor Author

ashtneoi commented Sep 3, 2018

I'm not sure when I'll get time to finish this so I'm going to close it for now. If someone else wants to work on it, they're welcome to.

@ashtneoi ashtneoi closed this Sep 3, 2018
@ashtneoi ashtneoi deleted the dont-truncate-compiler-output branch August 8, 2020 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants