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

Reduce the default max number of files in a UI test directory #109874

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Apr 2, 2023

It doesn't make sense for the root directory to have a lower limit than subdirectories.

@rustbot
Copy link
Collaborator

rustbot commented Apr 2, 2023

r? @albertlarsan68

(rustbot has picked a reviewer for you, use r? to override)

@jyn514
Copy link
Member Author

jyn514 commented Apr 2, 2023

@bors rollup=iffy

@rustbot rustbot added 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. labels Apr 2, 2023
@jyn514
Copy link
Member Author

jyn514 commented Apr 2, 2023

I wanted to make the limit even lower, but it turns out some subdirectories are already close to the limit (!):

tidy check
tidy error: following path contains more than 500 entries, you should move the test to some relevant subdirectory (current: 600): /Users/jyn/src/rust2/tests/ui/consts
tidy error: following path contains more than 500 entries, you should move the test to some relevant subdirectory (current: 678): /Users/jyn/src/rust2/tests/ui/suggestions
tidy error: following path contains more than 500 entries, you should move the test to some relevant subdirectory (current: 512): /Users/jyn/src/rust2/tests/ui/error-codes
tidy error: following path contains more than 500 entries, you should move the test to some relevant subdirectory (current: 885): /Users/jyn/src/rust2/tests/ui/parser
tidy error: following path contains more than 500 entries, you should move the test to some relevant subdirectory (current: 642): /Users/jyn/src/rust2/tests/ui/borrowck

@compiler-errors
Copy link
Member

r? @compiler-errors @bors r+

suggestions/ is overloaded, but i dont know where a lot of those could live

parser/ could have a lot of the recovery-related ui tests moved into a subdirectory just for recoveries

error-codes/ is gonna grow monotonically as we get a lot of error codes :)

@bors
Copy link
Contributor

bors commented Apr 3, 2023

📌 Commit 7db5024b192ddfec9d2041a183bd4985dbb04851 has been approved by compiler-errors

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 Apr 3, 2023
@bors
Copy link
Contributor

bors commented Apr 3, 2023

🔒 Merge conflict

This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again.

How do I rebase?

Assuming self is your fork and upstream is this repository, you can resolve the conflict following these steps:

  1. git checkout subdirectory-limit (switch to your branch)
  2. git fetch upstream master (retrieve the latest master)
  3. git rebase upstream/master -p (rebase on top of it)
  4. Follow the on-screen instruction to resolve conflicts (check git status if you got lost).
  5. git push self subdirectory-limit --force-with-lease (update this PR)

You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial.

Please avoid the "Resolve conflicts" button on GitHub. It uses git merge instead of git rebase which makes the PR commit history more difficult to read.

Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Cargo.lock conflict is handled during merge and rebase. This is normal, and you should still perform step 5 to update this PR.

Error message
Auto-merging src/tools/tidy/src/ui_tests.rs
CONFLICT (content): Merge conflict in src/tools/tidy/src/ui_tests.rs
Automatic merge failed; fix conflicts and then commit the result.

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 3, 2023
@bors
Copy link
Contributor

bors commented Apr 3, 2023

☔ The latest upstream changes (presumably #109884) made this pull request unmergeable. Please resolve the merge conflicts.

It doesn't make sense for the root directory to have a lower limit than
subdirectories.
@jyn514
Copy link
Member Author

jyn514 commented Apr 5, 2023

@bors r=compiler-errors

@bors
Copy link
Contributor

bors commented Apr 5, 2023

📌 Commit a6810cc has been approved by compiler-errors

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 Apr 5, 2023
@bors
Copy link
Contributor

bors commented Apr 6, 2023

⌛ Testing commit a6810cc with merge 7f6edd3...

@bors
Copy link
Contributor

bors commented Apr 6, 2023

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 7f6edd3 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 6, 2023
@bors bors merged commit 7f6edd3 into rust-lang:master Apr 6, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 6, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (7f6edd3): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.1% [1.7%, 2.5%] 2
Improvements ✅
(primary)
-2.3% [-2.3%, -2.3%] 1
Improvements ✅
(secondary)
-1.6% [-1.6%, -1.6%] 1
All ❌✅ (primary) -2.3% [-2.3%, -2.3%] 1

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.9% [3.7%, 4.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.1% [-2.1%, -2.1%] 1
All ❌✅ (primary) - - 0

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 14, 2023
Move most ui-fulldeps tests to ui/

Same rationale as rust-lang#109770, they don't actually need a stage 2 build.

This increases the limit for the UI directory because otherwise it was annoying to be constantly moving files into subdirectories when I fixed a test; rust-lang#109873 makes up for it.

cc rust-lang#109770, rust-lang#109874
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Apr 14, 2023
Move most ui-fulldeps tests to ui/

Same rationale as rust-lang/rust#109770, they don't actually need a stage 2 build.

This increases the limit for the UI directory because otherwise it was annoying to be constantly moving files into subdirectories when I fixed a test; rust-lang/rust#109873 makes up for it.

cc rust-lang/rust#109770, rust-lang/rust#109874
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. 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.

6 participants