Page MenuHomePhabricator

[services] Backup - Connect to Blob - Compile protos
ClosedPublic

Authored by karol on Aug 19 2022, 7:28 AM.
Tags
None
Referenced Files
F3265368: D4889.id16060.diff
Sat, Nov 16, 1:09 AM
Unknown Object (File)
Sun, Nov 10, 6:58 AM
Unknown Object (File)
Mon, Nov 4, 9:46 AM
Unknown Object (File)
Sun, Oct 27, 8:11 PM
Unknown Object (File)
Sun, Oct 27, 8:11 PM
Unknown Object (File)
Sun, Oct 27, 8:11 PM
Unknown Object (File)
Sun, Oct 27, 8:11 PM
Unknown Object (File)
Sun, Oct 27, 8:11 PM

Details

Summary

Depends on D4888

I added the code that compiles proto files. We need to compile the blob proto file in order to write a client that will communicate with the service.

Test Plan

backup still builds

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.Aug 19 2022, 7:29 AM
Harbormaster failed remote builds in B11480: Diff 15791!
karol edited the summary of this revision. (Show Details)
karol edited the test plan for this revision. (Show Details)
karol added reviewers: varun, max, tomek.
karol added inline comments.
services/backup/blob_client/build.rs
9–13 ↗(On Diff #15791)

I did it this way so we can launch it in the docker container but also do the cargo check (which is very useful as the output looks great and it works fast)

ashoat added a subscriber: jon.

Dependencies seem reasonable, though would be great if @tomek or @varun could take a look at those as well.

Regarding the include of the protos, it would be great if @jon could take a look as I know he has been looking at the proto files recently.

This revision is now accepted and ready to land.Aug 20 2022, 8:56 AM
ashoat added a reviewer: jon. ashoat added 2 blocking reviewer(s): varun, tomek.Aug 20 2022, 8:56 AM

(Setting people as blocking so that the diff appears on their queues, but don't think they all necessary need to review)

This revision now requires review to proceed.Aug 20 2022, 8:56 AM

Looks ok but it is a really good idea for @varun to also take a look

services/backup/blob_client/Cargo.toml
19 ↗(On Diff #15791)
services/backup/blob_client/build.rs
9–13 ↗(On Diff #15791)

It is beneficial to avoid mutability where we can.

Also, it might be a good idea to create a variable with &current_dir().unwrap().into_os_string().into_string().unwrap() so the expression is more readable.

I would like to get rid of docker vs non-docker logic, but I will tackle that in https://linear.app/comm/issue/ENG-1231

LGTM otherwise

Not related to diff, but I find it hilarious that there's a NixOS section for tonic: https://docs.rs/tonic-build/latest/tonic_build/#nixos-related-hints

varun added inline comments.
services/backup/blob_client/build.rs
2 ↗(On Diff #15791)

where is this used?

This revision is now accepted and ready to land.Aug 22 2022, 5:11 PM
services/backup/blob_client/build.rs
2 ↗(On Diff #15791)

should be removed, thx

9–13 ↗(On Diff #15791)

sure, thx!

This revision was landed with ongoing or failed builds.Aug 29 2022, 7:02 AM
This revision was automatically updated to reflect the committed changes.