Skip to content

Conversation

@clubby789
Copy link
Contributor

@clubby789 clubby789 commented Dec 26, 2024

Fixes #134793
Fixes #134196

This also refactors compare_output to return an enum; returning a usize was done for convenience but is misleading

@rustbot
Copy link
Collaborator

rustbot commented Dec 26, 2024

r? @onur-ozkan

rustbot has assigned @onur-ozkan.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@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 26, 2024
@rustbot
Copy link
Collaborator

rustbot commented Dec 26, 2024

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@jieyouxu jieyouxu assigned jieyouxu and unassigned onur-ozkan Dec 27, 2024
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Thanks, I have some nits and a question, but otherwise LGTM.

@jieyouxu jieyouxu 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 27, 2024
@rust-cloud-vms rust-cloud-vms bot force-pushed the compiletest-remove-stderr branch 2 times, most recently from 7b35a2c to d04e480 Compare December 27, 2024 11:49
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Tiny nits, I'll do some local testing

@rust-cloud-vms rust-cloud-vms bot force-pushed the compiletest-remove-stderr branch from d04e480 to b03d3ed Compare December 27, 2024 12:01
@clubby789
Copy link
Contributor Author

Updated; some stuff got borked in rebasing

@rust-cloud-vms rust-cloud-vms bot force-pushed the compiletest-remove-stderr branch from b03d3ed to 5bb727a Compare December 27, 2024 12:12
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Based on local testing:

  • Added a new ui test w/ error anno.
    • Initial no bless, failed as expected due to comparison w/ non-existent stderr failed.
    • Blessed, pass as expected.
    • Observed .stderr is present.
  • Changed test to //@ check-pass and removed error annotation.
    • Observed empty .stderr is removed.

Seems like it's working as intended. Feel free to r=me after PR CI is green, thanks!

@clubby789
Copy link
Contributor Author

@bors r=jieyouxu

@bors
Copy link
Collaborator

bors commented Dec 27, 2024

📌 Commit 5bb727a 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 27, 2024
@bors bors merged commit 7ba9655 into rust-lang:master Dec 27, 2024
6 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compiletest "--bless" fails to delete stderr files compiletest: empty stderr if check-fail -> check-pass

5 participants