-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add settings crates (#1306)
This is a breaking change. This commit separates syncstorage and tokenserver settings into separate structs that are contained by a parent `Settings` struct. This means that any env vars that hold settings specific to syncstorage (e.g. `SYNC_DATABASE_URL`) have been renamed to `SYNC_SYNCSTORAGE__DATABASE_URL`. Any settings that were moved from the top-level `Settings` struct to the lower level, syncstorage-specific struct will now have a `SYNC_SYNCSTORAGE__` prefix instead of a `SYNC_` prefix. Closes #1276
- Loading branch information
Showing
120 changed files
with
978 additions
and
973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,15 +40,15 @@ commands: | |
- run: | ||
name: Core Python Checks | ||
command: | | ||
flake8 syncstorage/src/tokenserver | ||
flake8 syncserver/src/tokenserver | ||
flake8 tools/integration_tests | ||
flake8 tools/tokenserver | ||
rust-clippy: | ||
steps: | ||
- run: | ||
name: Rust Clippy | ||
command: | | ||
cargo clippy --all --all-targets --all-features -- -D warnings | ||
cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
cargo-build: | ||
steps: | ||
- run: | ||
|
@@ -83,18 +83,18 @@ commands: | |
"$CIRCLE_TAG" \ | ||
"$CIRCLE_PROJECT_USERNAME" \ | ||
"$CIRCLE_PROJECT_REPONAME" \ | ||
"$CIRCLE_BUILD_URL" > syncstorage/version.json | ||
"$CIRCLE_BUILD_URL" > syncserver/version.json | ||
run-tests: | ||
steps: | ||
- run: | ||
name: cargo test | ||
command: cargo test --all --verbose | ||
command: cargo test --workspace --verbose | ||
- run: | ||
name: quota test | ||
command: cargo test --all --verbose | ||
command: cargo test --workspace --verbose | ||
environment: | ||
SYNC_ENFORCE_QUOTA: 1 | ||
SYNC_SYNCSTORAGE__ENFORCE_QUOTA: 1 | ||
|
||
run-e2e-mysql-tests: | ||
steps: | ||
|
@@ -181,7 +181,7 @@ jobs: | |
username: $DOCKER_USER | ||
password: $DOCKER_PASS | ||
environment: | ||
SYNC_DATABASE_URL: mysql://test:[email protected]/syncstorage | ||
SYNC_SYNCSTORAGE__DATABASE_URL: mysql://test:[email protected]/syncstorage | ||
SYNC_TOKENSERVER__DATABASE_URL: mysql://test:[email protected]/tokenserver | ||
RUST_BACKTRACE: 1 | ||
# XXX: begin_test_transaction doesn't play nice over threaded tests | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.