Page MenuHomePhabricator

[services] Backup - Blob Get Client - Prepare for error handling
ClosedPublic

Authored by karol on Sep 9 2022, 4:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 4:08 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:37 AM
Unknown Object (File)
Sat, Dec 14, 6:31 AM

Details

Summary

Depends on D5074

Linear task: https://linear.app/comm/issue/ENG-1734/improve-error-handling-system-in-the-blob-client

Preparing for the upcoming changes in error handling. I'm going to be using anyhow, I saw we use it in the tunnelbroker as well.

Test Plan
cd services/backup/blob_client
cargo check

after running localstack, blob, and backup (in this particular order), this still works:

yarn run-performance-tests backup

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added reviewers: ashoat, tomek, varun.
karol added inline comments.
services/backup/blob_client/Cargo.toml
16 ↗(On Diff #16541)

feel like the linting stuff should have been applied to the respective revisions. Also feel like the "create more revisions to apply feedback" is creating more churn for everyone, instead of applying the feedback in the original revision, then doing a rebase after applying the feedback.

Also really jarring when the differential queue is out-of-order, and feels like im reviewing fixes for problems that were introduced by an earlier diff.

Feel like this is an intermediate commit, guess just deal with it.

This revision is now accepted and ready to land.Sep 14 2022, 11:04 AM
tomek requested changes to this revision.Sep 15 2022, 8:24 AM

feel like the linting stuff should have been applied to the respective revisions. Also feel like the "create more revisions to apply feedback" is creating more churn for everyone, instead of applying the feedback in the original revision, then doing a rebase after applying the feedback.

Strongly agree!

services/backup/blob_client/src/lib.rs
35–40

Each diff should be properly formatted. Could you update the diff where this was introduced so that the formatting is correct? Maybe we should introduce a CI check for this?

services/backup/blob_client/src/tools.rs
44–65

Are these needed when we prefer using &str where possible? I think it should be possible to avoid raw pointers entirely.

This revision now requires changes to proceed.Sep 15 2022, 8:24 AM
In D5089#150511, @tomek wrote:

feel like the linting stuff should have been applied to the respective revisions. Also feel like the "create more revisions to apply feedback" is creating more churn for everyone, instead of applying the feedback in the original revision, then doing a rebase after applying the feedback.

Strongly agree!

I understand. I still think that this phabricator/diff workflow is not good at all for implementing large functionalities in an agile environment.

services/backup/blob_client/src/tools.rs
44–65

Are these needed when we prefer using &str where possible?

This is a middle-state so the cargo check passes. It's a tradeoff. If I removed the old functions and added new ones right away, I'd have to refactor the code in all places and the diff would be far too big.

I think it should be possible to avoid raw pointers entirely.

Yes, this will be done in D5099

I agree about the code formatting.

services/backup/blob_client/src/lib.rs
35–40

ok

Strongly agree on process... I've shared this feedback before. Dependencies look good

This revision is now accepted and ready to land.Sep 16 2022, 10:13 AM
This revision was landed with ongoing or failed builds.Sep 19 2022, 1:12 AM
This revision was automatically updated to reflect the committed changes.