Page MenuHomePhabricator

[Services] Cleanup commtest/build.rs
ClosedPublic

Authored by jon on Sep 15 2022, 3:13 PM.
Tags
None
Referenced Files
F3387777: D5154.id17047.diff
Fri, Nov 29, 11:07 AM
Unknown Object (File)
Mon, Nov 25, 9:55 PM
Unknown Object (File)
Sat, Nov 9, 6:18 PM
Unknown Object (File)
Sat, Nov 9, 7:22 AM
Unknown Object (File)
Oct 20 2024, 8:22 PM
Unknown Object (File)
Oct 10 2024, 4:16 PM
Unknown Object (File)
Oct 10 2024, 4:16 PM
Unknown Object (File)
Oct 10 2024, 4:15 PM

Details

Summary

Apply feedback from https://phab.comm.dev/D5102?id=16560#inline-33198.

Also:

  • Groom the file to be more idiomatic rust.
  • Ask cargo to rebuid if the protobuf files change.

D5102 was "how little do I need to do to make it build". Where as this revision
is to be a more holistic, "how would I write this file".

Test Plan
cd services/commtest
cargo build

Diff Detail

Repository
rCOMM Comm
Branch
jonringer/fix-commtest-comment
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added a reviewer: marcin.
atul removed a reviewer: atul. atul added 1 blocking reviewer(s): varun.Sep 21 2022, 5:28 AM

accepting with one comment

services/commtest/build.rs
12

should we warn or something here if there's a non .proto file in the protos directory?

This revision is now accepted and ready to land.Sep 21 2022, 2:24 PM
jon added inline comments.
services/commtest/build.rs
12

No, we just want to pass the appropriate files to tonic. It's more of a validation pass than anything.

jon added inline comments.
services/commtest/build.rs
12

Currently we have a CMakeLists.txt and a _generated directory in there. So some filtering is expected

This revision was automatically updated to reflect the committed changes.