Page MenuHomePhabricator

[Services] Use clap to provide configurable cli experience to blob service
ClosedPublic

Authored by jon on Jan 30 2023, 7:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 15 2024, 3:24 AM
Unknown Object (File)
Nov 6 2024, 10:20 PM
Unknown Object (File)
Oct 28 2024, 8:20 PM
Unknown Object (File)
Oct 28 2024, 8:20 PM
Unknown Object (File)
Oct 28 2024, 8:19 PM
Unknown Object (File)
Oct 28 2024, 8:19 PM
Unknown Object (File)
Oct 28 2024, 8:18 PM
Unknown Object (File)
Oct 2 2024, 9:38 AM
Subscribers

Details

Summary

Blob service should be able to be configured through environment
variables and arguments. This enables this scenario for the grpc port and
localstack url.

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

Depends on D6463

Test Plan
RUST_LOG=debug cargo run -- --port 50050 # should see aws config logic
sudo lsof -i -P | grep LISTEN | grep 50050 # should see process bound to port

Integration tests need additional work to test integration more thoroughly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Glad to see this in Blob service too!

Integration tests need additional work to test integration more thoroughly.

Btw, do you have any plans/ideas on how to tidy up the whole services infra config?

services/blob/src/config.rs
28–30 ↗(On Diff #21615)

I forgot to run Clippy the time I implemented this in Backup service, but it suggested to do this.
But there's already a separate task for Clippy fixes so up to you

This revision is now accepted and ready to land.Jan 30 2023, 8:50 AM