-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Clean up some tests in tests/ui #138471
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
Clean up some tests in tests/ui #138471
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Always glad to see test cleanup/improvement efforts.
I left a lot of feedback on individual test changes since you were looking for feedback (to maybe guide your future test changes), and some of them are way more nitpicky than I may fixate on normally.
I reviewed your changes commit-by-commit, so my review comments are best viewed commit-by-commit too.
I'll also point out a commit history nit here: to make it easier during review, I would structure the commits like:
- Commit 1 renames test X (maybe move directory and/or rename).
- Commit 2 fixes/documents test X.
Notably, I would rebase and fixup test stdout/stderr reblesses to the second "fixes/documents" commit. Then when we decide together after iterations that the test changes look good, I'll ask you to adjust the commit history to have 1 commit per individual test (this is to help future git archaeology).
BTW, you can also add in your PR descriptions that your PR is "Part of #133895" efforts 😁
I tried to keep the history linear for now. Edit: I read your comment above that answers this question. |
This comment has been minimized.
This comment has been minimized.
Cool. BTW you can mark your PR as ready for review via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The changes themselves look good, I left a few comment nits but no real functional changes.
At this point in the review, I'm fairly confident that the changes are mostly ready to merge to master, so I am requesting that you adjust the commit history to have 1 commit for each test, e.g. sth like
- Commit 1 improves outer-mod-attr-... test
- Commit 2 improves duplicate lang item test
- Commit 3 improves duplicate label test
To help future git archaeology. If these tests were actually (closely) related then I would've requested just to squish them into one commit, but that's not the case here, which is why I am requesting one commit per different test.
(I resolved all review comments from the previous review pass because I found them (more than) adequately addressed, but you may wish to expand a few of them since I also left some extra info/feedback. GitHub likes to hide the resolved comments so just wanted to let you know.) |
52ed423
to
27077b9
Compare
I addressed the comments and rebased to one commit per test. This process has made me way better at modifying git history and organizing commits. I'm assuming the CI will pass because it passed locally. @rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Not necessarily the case, because CI could have some environmental differences (e.g. platforms) versus local environments. But the tests here are mostly target/env-agnostic so they should be fine. Anyway, @bors r+ rollup |
Rollup of 16 pull requests Successful merges: - rust-lang#133055 (Expand `CloneToUninit` documentation.) - rust-lang#137147 (Add exclude to config.toml) - rust-lang#137864 (Don't drop `Rvalue::WrapUnsafeBinder` during GVN) - rust-lang#137890 (doc: clarify that consume can be called after BufReader::peek) - rust-lang#137956 (Add RTN support to rustdoc) - rust-lang#137968 (Properly escape regexes in Python scripts) - rust-lang#138082 (Remove `#[cfg(not(test))]` gates in `core`) - rust-lang#138275 (expose `is_s390x_feature_detected!` from `std::arch`) - rust-lang#138303 (Fix Ptr inconsistency in {Rc,Arc}) - rust-lang#138309 (Add missing doc for intrinsic (Fix PR135334)) - rust-lang#138323 (Expand and organize `offset_of!` documentation.) - rust-lang#138329 (debug-assert that the size_hint is well-formed in `collect`) - rust-lang#138465 (linkchecker: bump html5ever) - rust-lang#138471 (Clean up some tests in tests/ui) - rust-lang#138472 (Add codegen test for rust-lang#129795) - rust-lang#138484 (Use lit span when suggesting suffix lit cast) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#138471 - spencer3035:move-ui-test-1ofn, r=jieyouxu Clean up some tests in tests/ui I cleaned up 3 top level tests, keeping the changes minor because it is my first PR and wanted to get feedback before doing more changes/PRs. Tracking issues: rust-lang#73494 rust-lang#133895 r? jieyouxu
I cleaned up 3 top level tests, keeping the changes minor because it is my first PR and wanted to get feedback before doing more changes/PRs.
Tracking issues:
#73494
#133895
r? jieyouxu