This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make the api, shell and unit tests independent lit test suites
ClosedPublic

Authored by JDevlieghere on Mar 17 2021, 10:06 PM.

Details

Summary

Make the api, shell and unit tests independent lit test suites. This allows us to specify different dependencies and skip rebuilding all the unit test (which is particularly expensive) when running check-lldb-api or check-lldb-shell. This does not change the autogenerated targets such as check-lldb-shell-driver or the top level check-lldb target, which all continue to work as before.

Diff Detail

Event Timeline

JDevlieghere created this revision.Mar 17 2021, 10:06 PM
JDevlieghere requested review of this revision.Mar 17 2021, 10:06 PM
stella.stamenova accepted this revision.Mar 18 2021, 9:46 AM

Looks good as long as it doesn't break windows :O

This revision is now accepted and ready to land.Mar 18 2021, 9:46 AM
teemperor requested changes to this revision.Mar 18 2021, 9:52 AM

Just gonna post a comment to point out that this apparently adds all tests twice to check-all which makes the tests go kaputt (but I only messaged Jonas directly about that, hence the lack of detailed errors here).

This revision now requires changes to proceed.Mar 18 2021, 9:52 AM

Just gonna post a comment to point out that this apparently adds all tests twice to check-all which makes the tests go kaputt (but I only messaged Jonas directly about that, hence the lack of detailed errors here).

Oh, I have a vague recollection of this happening when he tried to split the targets before.

Add EXCLUDE_FROM_CHECK_ALL to the new targets to avoid tests getting added twice.

teemperor accepted this revision.Mar 19 2021, 11:04 AM

Clean builds for all the test targets work now and this also looks good, so let's ship it.

(also thanks for working on that, the unit test builds where a big annoyance when testing API tests)

This revision is now accepted and ready to land.Mar 19 2021, 11:04 AM
This revision was landed with ongoing or failed builds.Mar 19 2021, 11:13 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2021, 11:13 AM

This did end up breaking the windows build bot...

https://lab.llvm.org/buildbot/#/builders/83/builds/4808

Thanks, the error message suggests the tests are run twice and the log shows every test failing twice. Let me try adding EXCLUDE_FROM_CHECK_ALL to add_lit_testsuites as well. It didn't change anything on macOS, but maybe it does on Windows. If that doesn't fix it I'll revert to turn the bot green again over the weekend.