<div dir="ltr">Hi Sylvestre,<div><br></div><div>Thanks a lot for doing that!</div><div><br></div><div>I'm not sure if that would be directly what you want, but we have a bunch of llvm-lit tests here: <a href="https://github.com/llvm/llvm-project/tree/main/clang-tools-extra/clangd/test/remote-index">https://github.com/llvm/llvm-project/tree/main/clang-tools-extra/clangd/test/remote-index</a></div><div><br></div><div>The main "helper" runs the index server and checks the output: <a href="https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py">https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py</a></div><div><br></div><div>However, that does require a clangd-index-server binary. Alternatively, I think one can send some requests to the public LLVM Remote Index server (<a href="https://clangd-index.llvm.org/">https://clangd-index.llvm.org/</a>) and have some verifications through that (overall, we haven't observed any downtime so it's probably quite safe).</div><div><br></div><div>Thanks,</div><div>Kirill</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 29, 2022 at 10:29 AM Sylvestre Ledru <<a href="mailto:sylvestre@mozilla.com">sylvestre@mozilla.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">
  
    
  
  <div>
    <p>Hello</p>
    <p>I pushed your change, I will test it a bit and upload it in
      Debian once it is ok!</p>
    <p>The workaround when packages aren't available is to use the " |
      hello " trick. The resolver will pick "hello" as package instead
      of failing on the unavailable package</p>
    <p>I have an ugly script to quickly verify all the options of clang
      & co</p>
    <p><a href="https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/12/debian/qualify-clang.sh" target="_blank">https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/12/debian/qualify-clang.sh</a></p>
    <p>clangd is tested</p>
    <p><a href="https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/12/debian/qualify-clang.sh#L119" target="_blank">https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/12/debian/qualify-clang.sh#L119</a></p>
    <p>is there a way to do the same with GRPC support?</p>
    <p>I am also testing clangd in</p>
    <p><a href="https://github.com/opencollab/llvm-toolchain-integration-test-suite/blob/main/tests/test_clangd.txt" target="_blank">https://github.com/opencollab/llvm-toolchain-integration-test-suite/blob/main/tests/test_clangd.txt</a></p>
    <p>Cheers,<br>
    </p>
    <p>S</p>
    <p><br>
    </p>
    <div>Le 29/01/2022 à 03:47, Sam McCall a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Here's a patch against `snapshot` that works for
        me. (Unfortunately I can't log into salsa - my account needs to
        be approved by someone).
        <div><br>
        </div>
        <div>It builds with GRPC support if the available version is
          acceptable (the one I tested with - we've seen bugs with old
          library versions).</div>
        <div>The resulting clangd packages have the right dependencies,
          and it doesn't add any dependencies to clang/other packages.</div>
        <div><br>
        </div>
        <div>The main problem is that due to Build-Depends if there's no
          grpc++-dev package at all available (unusual arch or old
          distro?) then it will fail to build entirely. Ideally we'd
          just build without remote index instead, but I don't know the
          right way to set Build-Depends to achieve that.</div>
        <div><br>
        </div>
        <div>What do I do next :-)<br>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Jan 27, 2022 at 11:09
          PM Sam McCall <<a href="mailto:sammccall@google.com" target="_blank">sammccall@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">
          <div dir="auto">
            <div>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Thu, 27 Jan 2022,
                  18:48 Sylvestre Ledru, <<a href="mailto:sylvestre@mozilla.com" rel="noreferrer" target="_blank">sylvestre@mozilla.com</a>>
                  wrote:</div>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  > I'm happy to work on this any way I can, but
                  don't know Debian packaging and I'd need some pointers
                  on where to start. Alternatively I can provide any
                  info you need.<br>
                  ><br>
                  Packaging can be found here:<br>
                  <a href="https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/tree/12/debian" rel="noreferrer noreferrer noreferrer" target="_blank">https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/tree/12/debian</a><br>
                  <br>
                  <a href="https://apt.llvm.org/building-pkgs.php" rel="noreferrer noreferrer noreferrer" target="_blank">https://apt.llvm.org/building-pkgs.php</a><br>
                  should be more or less up to update :)<br>
                  <br>
                  Should be easy for the most recent versions of Debian
                  & Ubuntu.<br>
                </blockquote>
              </div>
            </div>
            <div dir="auto">Thanks, let me give it a try!</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  The main issue would be for old version of Debian
                  & Ubuntu with these<br>
                  new deps (mostly impacts <a href="http://apt.llvm.org" rel="noreferrer
                    noreferrer noreferrer" target="_blank">apt.llvm.org</a> for old
                  distro but this can be<br>
                  disabled )<br>
                </blockquote>
              </div>
            </div>
            <div dir="auto">Right, my main worry is I'll make some naive
              assumptions and break some configuration I'm not aware of.
              If I manage to send a merge request, it should be treated
              skeptically!</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">I guess it helps somewhat that grpc is stuck
              on the same version back to bullseye :-)</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">Cheers, Sam</div>
            <div dir="auto">
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div>