Skip to content

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

Open
wants to merge 8 commits into
base: hubertdeng123/docker-compose-container-dependency-validation
Choose a base branch
from

Conversation

hubertdeng123
Copy link
Member

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

@hubertdeng123 hubertdeng123 requested a review from IanWoodard May 13, 2025 19:10
else DependencyType.COMPOSE,
dependency_type=(
DependencyType.SERVICE
if _has_remote_config(dependency.remote)
Copy link
Member Author

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

Copy link
Member Author

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

Copy link

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.78%. Comparing base (6ecedd5) to head (c92b0c1).

✅ 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.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant