-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Tidy: detect ui tests subdirectory changes so tests/ui/README.md stays in sync
#150474
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
base: main
Are you sure you want to change the base?
Conversation
|
|
d6dc370 to
a2945a2
Compare
|
Looks good to me, but I will let the final review to a T-bootstrap member. Btw, could you make the title and description a bit more descriptive. r? bootstrap |
tests/ui/README.md stays in sync
|
Okay, thank you for the review:) |
tests/ui/README.md stays in synctests/ui/README.md stays in sync
|
I don't quite understand the purpose of having a separate If the goal is to keep |
Ah, since the initial suggestion was to "add comments when subdirectories change," so we implemented it by creating a If we wanted to include directory change detection in tidy and force modifications to I will change it. |
Parsing a Markdown file is non-trivial and But in general yes, looking at |
|
Given that this is an in-tree tidy check for a single file that we already control, I don't think we need to actually parse Markdown. We can just assume that If somebody tries to modify the readme in a way that would break the tidy check, well, maybe they shouldn't be doing that. |
|
@rustbot author |
close: #150399
There's an issue where
tests/ui/README.mdisn't updated whenever the ui subdirectory changes.I've added subdirectory change detection to tidy added a new mention to
triage.tomlto notifytests/ui/README.mdto also be updated.r? @Urgau