<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 13, 2021 at 2:35 PM Fāng-ruì Sòng <<a href="mailto:maskray@google.com">maskray@google.com</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">On Mon, Dec 13, 2021 at 1:47 PM Mingming Liu via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Thanks Geoffrey and James! Very helpful!<br>
><br>
> On Mon, Dec 13, 2021 at 1:15 PM James Farrell <<a href="mailto:jamesfarrell@google.com" target="_blank">jamesfarrell@google.com</a>> wrote:<br>
>><br>
>> I also encountered this error, and got it to go away by passing -DLLVM_INCLUDE_GO_TESTS=OFF to cmake.<br>
><br>
><br>
> Got it.<br>
><br>
> Just to make sure I'm getting it right, I'll have a one-line change in <a href="https://github.com/llvm/llvm-project/blob/main/llvm/CMakeLists.txt#L595" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/blob/main/llvm/CMakeLists.txt#L595</a> in the patch and revert this line later (which is probably fine in the review if it's obvious go tests are not very relevant)<br>
>><br>
>><br>
>> -- James<br>
>><br>
>><br>
>> On Mon, Dec 13, 2021 at 3:13 PM Geoffrey Martin-Noble via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>>><br>
>>> The first error you linked is for Bazel, which is not officially supported, but you have opted in to the pre-merge checks by joining the Bazel phab project. That particular message comes from the tests that detect when config files have changed. As you noted, this is due to an old baseline for your patch (that was fixed 11 days ago in <a href="https://github.com/llvm/llvm-project/commit/c6cfd385b1" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/c6cfd385b1</a>). I'd generally recommend rebasing to more recent commits before sending something for review/testing anyway.<br>
>>><br>
>>> For the second failure, you can see more details about the error in the error logs. The raw logs have everything (whereas the buildkite UI only shows the last 1MB, as noted at the top). There you can see the output for that particular test failure (it takes a minute to load). The relevant bit is:<br>
>>><br>
>>>> no required module provides package <a href="http://llvm.org/llvm/bindings/go/llvm" rel="noreferrer" target="_blank">llvm.org/llvm/bindings/go/llvm</a>: go.mod file not found in current directory or any parent directory; see 'go help modules'<br>
>>><br>
>>><br>
>>> So it's something about a missing go dependency.<br>
><br>
><br>
> I was able to navigate to raw logs and see the same error of missing Go dependency now .<br>
>>><br>
>>> I think I've encountered that failure before. It seems flaky. Maybe people working on go bindings can help root cause?<br>
>>><br>
>>> Sorry that doesn't answer your meta-question.<br>
><br>
><br>
> It's already very helpful to me :-)<br>
><br>
>>><br>
>>> Perhaps +Mikhail Goncharov has some ideas for better workflows here<br>
><br>
><br>
>  Mikhail, it'd be great if you have some ideas!<br>
><br>
> Also, the option LLVM_INCLUDE_GO_TESTS  was turned on years ago (i.e., not a recent change of enabling Go tests). Retry gives the same error; not sure if there are changes on the testing machines (and dunno how to check that)<br>
>>><br>
>>><br>
>>> On Mon, Dec 13, 2021 at 12:49 PM Mingming Liu via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>>>><br>
>>>> Hi,<br>
>>>>    I'm looking for some suggestions on debugging pre-merge test failures that look irrelevant.<br>
>>>><br>
>>>>    Two examples with links (while `ninja check-all` passed for the patch, although the DLLVM_ENABLE_PROJECTS doesn't necessarily cover the subprojects that fail)<br>
>>>>    1) This is caused by stale cmake configurations, as indicated by the error.<br>
>>>>         Link of build artifact.<br>
>>>>         Sync up to pick up new cmake configurations resolved the error.<br>
>>>><br>
>>>>    2) Link of build artifact<br>
>>>><br>
>>>>        Test failed with error<br>
>>>><br>
>>>><br>
>>>> Failed Tests (1):<br>
>>>>   LLVM :: Bindings/Go/go.test<br>
>>>><br>
>>>>       I didn't find other information in the log that might help.<br>
>>>><br>
>>>>      There is a playbook yet I'm wondering if there are more lightweight procedures besides restarting build (e.g., looking at a continuous build dashboard</blockquote><div><br></div><div>(Probably a little late but just for the record) <a href="https://buildkite.com/llvm-project/llvm-main/builds">https://buildkite.com/llvm-project/llvm-main/builds</a> seems to be a dashboard to check for continuous build results, so might be a good way to find existing failures.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> for tests that might already fail or might be flaky before the patch) to debug tests that look irrelevant.<br>
<br>
The test/Bindings/Go failure was a regression of recent months. (It<br>
failed enough that I turned off it via -DLLVM_INCLUDE_GO_TESTS=OFF)<br>
Earlier this year (<=July) I saw that llvm/bindings/go/llvm/ir_test.go<br>
could catch many issues due to newly introduced attributes.<br>
<br>
Cc pcc who initially introduced the binding.<br>
<br>
>>>> --<br>
>>>> Thanks,<br>
>>>> Mingming<br>
>>>> _______________________________________________<br>
>>>> LLVM Developers mailing list<br>
>>>> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
>>>> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
>>><br>
>>> _______________________________________________<br>
>>> LLVM Developers mailing list<br>
>>> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
>>> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
><br>
><br>
><br>
> --<br>
> Thanks,<br>
> Mingming<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
<br>
<br>
-- <br>
宋方睿<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><font color="#555555" face="sans-serif" size="2">Thanks,</font></div><div><font color="#555555" face="sans-serif" size="2">Mingming</font></div></div></div></div></div></div></div>