Page MenuHomePhabricator

[Services] Export client-base-reactors as CMake Project
ClosedPublic

Authored by jon on Jul 8 2022, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 11:26 PM
Unknown Object (File)
Sat, Nov 16, 6:05 AM
Unknown Object (File)
Sun, Oct 27, 6:12 AM
Unknown Object (File)
Oct 7 2024, 4:49 AM
Unknown Object (File)
Oct 7 2024, 4:49 AM
Unknown Object (File)
Oct 7 2024, 4:49 AM
Unknown Object (File)
Oct 7 2024, 4:49 AM
Unknown Object (File)
Oct 7 2024, 4:49 AM

Details

Summary

Needed for backup and blob service

Test Plan

Run test plan from https://phab.comm.dev/D4494

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.Jul 8 2022, 10:33 PM
Harbormaster failed remote builds in B10432: Diff 14376!
Harbormaster returned this revision to the author for changes because remote builds failed.Jul 25 2022, 9:04 PM
Harbormaster failed remote builds in B10841: Diff 14904!

Update with fixes for docker environment

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 29 2022, 9:51 AM
Harbormaster failed remote builds in B10976: Diff 15104!

Rebase on top of proto update and script changes

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 29 2022, 3:03 PM
Harbormaster failed remote builds in B10983: Diff 15117!
Harbormaster returned this revision to the author for changes because remote builds failed.Aug 1 2022, 1:15 PM
Harbormaster failed remote builds in B11030: Diff 15171!
jon added 1 blocking reviewer(s): atul.
jon removed a reviewer: atul.
jon added a reviewer: atul.

hmm, why can't I request review...

because I already had it selected... I'm dumb

atul requested changes to this revision.Aug 3 2022, 10:48 AM

At a high level this looks good but

A. it looks like some of the CI workflows are failing, could you provide some context if that's to be expected?
B. There isn't a Test Plan so it's hard to verify that this works as expected. It says "used by later diff," could you specify which diff that is so I can follow the Test Plan for that?

This revision now requires changes to proceed.Aug 3 2022, 10:48 AM
jon edited the test plan for this revision. (Show Details)

Yes, it's meant to fail right now, I could have rebased to be before the tunnelbroker changes, but it's hard to order this work in some way. I chose to do batch them logically "as needed by later changes".

I updated the test plan.

I eventually fix the gates again, but I had to change both backup and blob to do so. I tried to make the individual diffs as small as possible.

Looks good, appreciate the rebasing and reordering to appease the CI.

services/lib/src/client-base-reactors/CMakeLists.txt
2 ↗(On Diff #15289)

The minimum CMake versions we're specifying vary pretty significantly throughout the codebase. It looks like the highest in the codebase is 3.16.

If we're not limited by some external factor (Android requirement/some dependency), could we try pushing these up?

(Personally think it'd be good to aim for >=3.14 since that's the version that introduces FetchContent_MakeAvailable, etc.)

40 ↗(On Diff #15289)

Not sure we really need this comment, but if it's consistent with the comments in the other CMakeLists.txt files it's probably fine

This revision is now accepted and ready to land.Aug 4 2022, 11:43 AM
jon added inline comments.
services/lib/src/client-base-reactors/CMakeLists.txt
2 ↗(On Diff #15289)

I guess this isn't used by android, so that's fine.

But I think we can bump it at a later time as needed.

40 ↗(On Diff #15289)

Yea, I'm not really sure "what needs to be commented vs what doesn't" for cmake. So I think I just commented a lot early on, and have been copying around the files as templates.

services/lib/src/client-base-reactors/CMakeLists.txt
2 ↗(On Diff #15289)

Can we get a task for this?

(Any time somebody asks you to do something in a diff and you want to defer it to later, you should always create a task to track)

jon added inline comments.
services/lib/src/client-base-reactors/CMakeLists.txt
2 ↗(On Diff #15289)

Yes, but in this case client-base-reactors isn't consuming any external dependencies, so the use case for FetchContent_MakeAvailable isn't present in this diff. It would be more for the related diffs which use find_library(). I can still add a task though https://linear.app/comm/issue/ENG-1548/bump-minimum-cmake-version-in-cmake-projects

Also, FetchContent_MakeAvailable is only really useful in a non-nix-dev workflow. The nix environment should be exposing everything needed.

jon marked an inline comment as done.

Remove installation comment