This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Bump timeouts for LSPServerTests
ClosedPublic

Authored by kadircet on Aug 21 2023, 8:01 AM.

Details

Summary

We seem to be hitting limits in some windows build bots, see
https://github.com/clangd/clangd/issues/1712#issuecomment-1686478931.

So bumping the timeouts to 60 seconds and completely dropping them for sync
requests. As mentioned in the comment above, this should improve things,
considering even the tests that don't touch any complicated scheduler is
failing.

Diff Detail

Event Timeline

kadircet created this revision.Aug 21 2023, 8:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 8:01 AM
Herald added a subscriber: arphaman. · View Herald Transcript
kadircet requested review of this revision.Aug 21 2023, 8:01 AM
sammccall added inline comments.Aug 22 2023, 2:55 AM
clang-tools-extra/clangd/unittests/LSPClient.cpp
27

I think we're better of just increasing the number, unless there's some reason to think that different timeouts are appropriate for different tests.

218

Unless this is actually broken, it doesn't seem worth adding complexity for, though.

kadircet updated this revision to Diff 552284.Aug 22 2023, 2:59 AM
kadircet marked 2 inline comments as done.
  • Just bump the timeouts
sammccall accepted this revision.Aug 22 2023, 5:05 AM
sammccall added inline comments.
clang-tools-extra/clangd/unittests/LSPClient.cpp
46

nit: 60 here too

clang-tools-extra/clangd/unittests/LSPClient.h
37–38

revert comment?

This revision is now accepted and ready to land.Aug 22 2023, 5:05 AM
This revision was automatically updated to reflect the committed changes.