-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[WIP] tidy: skip triagebot.toml
path checks for local submodule directories that we can't read
#139860
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
Conversation
The implementation looks fine to me. I have just one question. What is "Vacuously"? |
I guess I just wanted to say we don't know if it exists or not, we just don't actually check it and instead simply skip it, I can reword that a bit lol |
…locally I say "unchecked out", but really it's an extremely naive heuristic of "don't bother checking paths to or under a submodule if we can't even read the submodule dir".
I just found the word funny xD I tried it locally, but it seems like
|
Oh right, sorry, it's because I have like an partially initialized set of submodules... I.e. what I did was to first |
Right, I was just wondering how common is that? Do people run |
Yeah that is a good point, I wouldn't expect this configuration to be super common. I.e. this PR only kinda mitigates the problem for |
Based on that, I'm not completely sure if it's super worth it, but it's not a lot of code, so fine by me. You can r=me once CI is green if you want to land it, up to you. |
Tbh I don't want to land this as-is because I don't feel the complexity pulls its weight. Maybe just don't run this locally? |
Update: okay so I asked Waffle for extra clarifications (it's not
In that sense, I think this is the wrong approach (and even if we wanted to mitigate this for |
Fixes #139856 where tidy fails locally if some submodules are not checked out as part of
triagebot.toml
path existence checks (initially implemented in #137885 to help detect brokentriagebot.toml
paths).I say "unchecked out", but really it's an extremely naive heuristic of "don't bother checking paths to or under a submodule if we can't even read the submodule dir".
I'm not happy about this implementation because it's quite convoluted.
Testing
You can test this locally by:
build.submodules = true
to be able to successfully run./x test tidy
.build.submodules = false
.src/tools/enzyme
.[mentions]
path to e.g.src/tools/enzyme/xd
, observe no tidy error is emitted.[mentions]
path to non-submodule, e.g.xd
, observe a tidy error is emitted.Alternatives
Honestly, I'm also kinda tempted to just either:
But I suppose other options are:
triagebot.toml
is modified, which does not actually fix root cause of tidytriagebot.toml
trigger_files
fails onjj git clone
unchecked out submodules #139856.Review advice
git
existscc @Kobzol @onur-ozkan for opinions
r? bootstrap