Use eprintln instead of println in bootstrap/compiletest/tidy by clubby789 · Pull Request #133817 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation7 Commits3 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

clubby789

A big unconditional CTRL-F replace to start with to check if there's anything that CI expects to be on stdout

r? @jieyouxu

@rustbot rustbot added A-compiletest

Area: The compiletest test runner

A-testsuite

Area: The testsuite used to check the correctness of rustc

S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-bootstrap

Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

labels

Dec 3, 2024

jieyouxu

Choose a reason for hiding this comment

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

Thanks, I left some suggestions.

@rustbot rustbot 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

Dec 3, 2024

@rustbot

This PR modifies src/bootstrap/src/core/config.

If appropriate, please update CONFIG_CHANGE_HISTORY in src/bootstrap/src/utils/change_tracker.rs.

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@clubby789 clubby789 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

Dec 4, 2024

@jieyouxu

Thanks! As usual, the only way to find out if any of these turns out somehow load-bearing is to merge it.
@bors r+ rollup

@bors

📌 Commit 8374f7c has been approved by jieyouxu

It is now in the queue for this repository.

@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 4, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Dec 4, 2024

@bors

…iaskrgr

Rollup of 6 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Dec 4, 2024

@rust-timer

Rollup merge of rust-lang#133817 - clubby789:bootstrap-eprintln, r=jieyouxu

Use eprintln instead of println in bootstrap/compiletest/tidy

A big unconditional CTRL-F replace to start with to check if there's anything that CI expects to be on stdout

r? @jieyouxu

jieyouxu added a commit to jieyouxu/rust that referenced this pull request

Dec 5, 2024

@jieyouxu

…ln, r=jieyouxu"

This reverts commit 0585134, reversing changes made to 5530869.

The PR unfortunately only converted the ln! instances, meaning that test output was messed up because stdout/stderr output interleaved when some println! instances were converted to eprintln! instances, while some println! instances remain unchanged.

Zalathar added a commit to Zalathar/rust that referenced this pull request

Dec 5, 2024

@Zalathar

…ln, r=jieyouxu"

This reverts commit 0585134, reversing changes made to 5530869.

fmease added a commit to fmease/rust that referenced this pull request

Dec 5, 2024

@fmease

Revert rust-lang#133817

This reverts commit 0585134, reversing changes made to 5530869.

rust-lang#133817 unfortunately only converted the println! instances to eprintln!, meaning that some test output (via compiletest/bootstrap) was messed up because stdout/stderr output interleaved improperly when some println! instances were converted to eprintln! instances, while some print! instances remain unchanged. This made reading test output annoying for contributors cc rust-lang#133879.

Closes rust-lang#133879 by reverting.

rust-lang#133817 can be relanded in the future when print! instances are also matched with println! instances.

cc @clubby789

This is a clean revert so I'm going to self-approve this PR.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Dec 5, 2024

@bors

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Dec 5, 2024

@rust-timer

Rollup merge of rust-lang#133892 - jieyouxu:revert-eprintln, r=jieyouxu

Revert rust-lang#133817

This reverts commit 0585134, reversing changes made to 5530869.

rust-lang#133817 unfortunately only converted the println! instances to eprintln!, meaning that some test output (via compiletest/bootstrap) was messed up because stdout/stderr output interleaved improperly when some println! instances were converted to eprintln! instances, while some print! instances remain unchanged. This made reading test output annoying for contributors cc rust-lang#133879.

Closes rust-lang#133879 by reverting.

rust-lang#133817 can be relanded in the future when print! instances are also matched with println! instances.

cc @clubby789

This is a clean revert so I'm going to self-approve this PR.

fmease added a commit to fmease/rust that referenced this pull request

Dec 9, 2024

@fmease

…eyouxu

bootstrap: print{ln}! -> eprint{ln}! (take 2)

r? @jieyouxu

Reland of rust-lang#133817 with the print!s changed as well.

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Dec 10, 2024

@rust-timer

Rollup merge of rust-lang#134040 - clubby789:bootstrap-eprintln, r=jieyouxu

bootstrap: print{ln}! -> eprint{ln}! (take 2)

r? @jieyouxu

Reland of rust-lang#133817 with the print!s changed as well.

Labels

A-compiletest

Area: The compiletest test runner

A-testsuite

Area: The testsuite used to check the correctness of rustc

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-bootstrap

Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)