-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(config): Add supervisor programs dependency validation #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: hubertdeng123/docker-compose-container-dependency-validation
Are you sure you want to change the base?
Conversation
devservices/utils/dependencies.py
Outdated
else DependencyType.COMPOSE, | ||
dependency_type=( | ||
DependencyType.SERVICE | ||
if _has_remote_config(dependency.remote) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a pretty huge change, but seems safe to do given that the type is determined during the validation of config now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To start out, if there are remote dependencies are in modes that include supervisor programs, they should be completely disabled. We don't want to support those workflows since a lot of the time it involves ensuring the venv is set up properly and the right directory is cd'd into
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## hubertdeng123/docker-compose-container-dependency-validation #275 +/- ##
================================================================================================
- Coverage 94.82% 94.78% -0.04%
================================================================================================
Files 27 27
Lines 2242 2245 +3
================================================================================================
+ Hits 2126 2128 +2
- Misses 116 117 +1 ☔ View full report in Codecov by Sentry. |
This adds safeguards to ensure that non-remote dependencies must have a docker compose service or supervisor program
part of https://linear.app/getsentry/issue/DI-762/config-validation-for-dependencies