<div dir="ltr"><div dir="ltr">Thank you for the in depth response, you forced me to look deeper at my own mess!</div><div dir="ltr"><br></div><div>It turned out the test failures was due to a ".clang-format" file which it didn't understand C++ (i.e. it didn't have a C++ entry,  only a C# and Json entry, stuff I work on)</div><div><br></div><div>because I'm building my build/tests out-of-tree, the tests are looking up the tree for a .clang-format file and found it at a higher level, which happened to be a couple of levels up from the "build" directory i was using</div><div dir="ltr"><br></div><div>I'd failed to notice the following error among all the failures</div><div dir="ltr"><br></div><div dir="ltr">> Configuration file(s) do(es) not support C++: C:\projects\.clang-format<br></div><div dir="ltr"><br></div><div>I half wonder if there should have been a default .clang-format/.clang-tidy file somewhere in the tree or be preconfigured to use LLVM style, so that it doesn't search up and pick an out of tree .clang-format file.</div><div><br></div><div>This is the kind of thing that could easily confuse people just starting out, well it caught me out anyway!</div><div><br></div><div>Many thanks for your excellent help.</div><div><br></div><div>MyDeveloperDay</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 6, 2021 at 10:28 AM David Spickett <<a href="mailto:david.spickett@linaro.org">david.spickett@linaro.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">a) That ninja target seems valid to me, at least one bot uses it.<br>
<br>
b) I looked through the buildbot configs in<br>
<a href="https://github.com/llvm/llvm-zorg" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-zorg</a> and found at least one Windows bot<br>
is running them.<br>
<br>
<a href="https://lab.llvm.org/buildbot/#/builders/123/builds/4886" rel="noreferrer" target="_blank">https://lab.llvm.org/buildbot/#/builders/123/builds/4886</a><br>
<br>
In the "stage 1 check" you can see:<br>
Running: ninja -j 32 check-llvm check-clang check-clang-tools<br>
check-clangd check-lld<br>
<br>
Pretty sure all of our (Linaro's) bots are running them on Linux, e.g.<br>
<a href="https://lab.llvm.org/buildbot/#/builders/187/builds/259" rel="noreferrer" target="_blank">https://lab.llvm.org/buildbot/#/builders/187/builds/259</a>. It uses<br>
check-all but you can see clang-tools-extra enabled in the cmake<br>
command, which I think will add that target.<br>
<br>
One thing to check is whether these tests are enabled with some other<br>
option or dependency. For example, does cmake check that you've<br>
installed a helper library before adding them and your system happens<br>
to have it and the bot doesn't?<br>
<br>
c) The buildkite premerge testing is configured with<br>
<a href="https://github.com/google/llvm-premerge-checks/blob/main/scripts/llvm-dependencies.yaml" rel="noreferrer" target="_blank">https://github.com/google/llvm-premerge-checks/blob/main/scripts/llvm-dependencies.yaml</a><br>
and I see it enabled there. (there is a specific list of disabled<br>
projects in that same file)<br>
<br>
I'd double check that it's doing "check-all" or similar in the actual<br>
build. If you have a recent review (might have to be of a clang-tools<br>
related source file) you can follow the links to buildkite from<br>
phabricator and check the logs.<br>
Click on the Diff <123456> link from "Harbormaster completed remote<br>
builds in B<123456>: Diff <123456>.", then copy the buildkite URL and<br>
go to that to see the full job.<br>
<br>
e) I'm not in a position to answer.<br>
<br>
Hopefully some of that helps.<br>
<br>
On Tue, 6 Jul 2021 at 10:01, MyDeveloper Day via cfe-dev<br>
<<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br>
><br>
> All<br>
><br>
> I recently wanted to check something in clang-tidy, and so chose to run the<br>
><br>
> `ninja check-clang-tools` target to check the unit tests..(this may not be the correct target)<br>
><br>
> There seemed to be significant number of failures (80) especially in clang-change-namespace<br>
><br>
> Am I:<br>
><br>
> a) Running an invalid ninja target?<br>
> b) Perhaps these tests don't run well on windows (my primary platform) and need fixing?<br>
> c) Are these tests run as part of any pre-merge tests?<br>
> d) Do any of the buildbots run these tests? (so I could check if its just my area!)<br>
> e) Is this code still relevant that one of us should try and fix them?<br>
><br>
> Many thanks in advance.<br>
><br>
> MyDeveloperDay.<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>