Page MenuHomePhabricator

[services] Dev mode - Set up Backup service
ClosedPublic

Authored by karol on Apr 11 2022, 6:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 12:48 PM
Unknown Object (File)
Thu, Oct 31, 6:31 PM
Unknown Object (File)
Oct 26 2024, 2:58 AM
Unknown Object (File)
Oct 21 2024, 3:00 PM
Unknown Object (File)
Oct 21 2024, 9:46 AM
Unknown Object (File)
Oct 19 2024, 11:10 AM
Unknown Object (File)
Oct 13 2024, 1:35 PM
Unknown Object (File)
Oct 13 2024, 1:35 PM

Details

Summary

Depends on D3694

Modify the code of the backup service so the dev mode that uses the local cloud can be properly launched

Test Plan
cd services
docker-compose down
yarn run-local-cloud
yarn test-backup-service-dev-mode

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added reviewers: tomek, jim.
services/backup/docker-server/contents/server/src/AwsTools.cpp
10 ↗(On Diff #11290)

@jimpo suggested avoiding using a compile-time flag https://phabricator.ashoat.com/D3498#98870

Using such a flag also occurs in Constants.h for both blob/backup - COMM_TEST_SERVICES. So if we want to stop using such variables, we should do this separately for both variables I think.

@jimpo as you started this discussion: what do you think about reading env vars? For example with getenv?

@jimpo is on a lot of diffs and doesn't always have time for all of them, so to make sure he sees this one I'm setting him as blocking

services/backup/docker-server/contents/server/src/AwsTools.cpp
10 ↗(On Diff #11290)

Reading an environment variable at runtime is a fine way to do it.

jim requested changes to this revision.Apr 26 2022, 9:41 AM

As noted, COMM_SERVICES_DEV_MODE should not be a compile-time flag, please fix

This revision now requires changes to proceed.Apr 26 2022, 9:41 AM
karol requested review of this revision.EditedApr 28 2022, 2:35 AM
In D3690#107078, @jimpo wrote:

As noted, COMM_SERVICES_DEV_MODE should not be a compile-time flag, please fix

I don't it is a good idea to change this here. As I mentioned:

Using such a flag also occurs in Constants.h for both blob/backup - COMM_TEST_SERVICES. So if we want to stop using such variables, we should do this separately for both variables I think.

This is a typical situation when we need to do a follow-up because the change you're requesting applies in multiple places, not only this one. If we change it here, the codebase will be inconsistent. And if we change the rest of the occurrences here as well, the diff will be invalid as it will consist of unrelated changes.

I put up a diff with this follow-up D3872.

This revision is now accepted and ready to land.Apr 29 2022, 6:50 AM