Page MenuHomePhabricator

[Services] Use BUILD_TESTING for tunnelbroker build
ClosedPublic

Authored by jon on Sep 12 2022, 1:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 20, 6:57 PM
Unknown Object (File)
Tue, Mar 18, 8:51 PM
Unknown Object (File)
Tue, Mar 18, 1:44 AM
Unknown Object (File)
Mon, Mar 17, 4:11 AM
Unknown Object (File)
Mon, Mar 17, 4:11 AM
Unknown Object (File)
Mon, Mar 17, 4:11 AM
Unknown Object (File)
Mon, Mar 17, 4:11 AM
Unknown Object (File)
Mon, Mar 17, 4:11 AM
Subscribers

Details

Summary

The biggest change is building the testsuite by default, however, this is
the common practice, and generally people opt-out of building tests by doing
-DBUILD_TESTING=OFF when they invoke cmake.

https://linear.app/comm/issue/ENG-1794

Test Plan
nix develop
cd services/tunnelbroker
rm -rf build && mkdir build && cd build && cmake .. && make -j
ctest # should fail as AWS needs to be configured, but run

# without tests
nix develop
cd services/tunnelbroker
rm -rf build && mkdir build && cd build && cmake .. -DBUILD_TESTING=OFF && make -j
ctest # should fail to find tests

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Sep 12 2022, 1:48 PM
Harbormaster failed remote builds in B12093: Diff 16600!

Rebase on top of docker fixes

atul requested changes to this revision.Sep 13 2022, 9:27 AM

In this case:

nix develop
cd services/tunnelbroker
rm -rf build && mkdir build && cd build && cmake .. && make -j
ctest # should fail as AWS needs to be configured, but run

the tests aren't running (and failing). Instead, I'm getting the following (which I'd expect to get--and do--with -DBUILD_TESTING=OFF):

b8c876.png (306×736 px, 81 KB)

This revision now requires changes to proceed.Sep 13 2022, 9:27 AM

Default BUILD_TESTING to ON

the tests aren't running (and failing).

this was my bad, forgot to flip the default to ON for this service

https://phab.comm.dev/D5118?vs=16607&id=16624#toc

This revision is now accepted and ready to land.Sep 13 2022, 9:53 AM

(Looks like build failure was intermittent BuildKite issue, kicked it off again)