Skip to content

feat(config): Add validation for non remote dependencies #274

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 4 commits into
base: main
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 associated with them. It also fixes a bug where config validation fails, but the error is not raised properly

part of https://linear.app/getsentry/issue/DI-762/config-validation-for-dependencies

@hubertdeng123 hubertdeng123 requested a review from IanWoodard May 12, 2025 23:59
Copy link

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.88%. Comparing base (3b7668a) to head (85000dc).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #274      +/-   ##
==========================================
+ Coverage   94.72%   94.88%   +0.15%     
==========================================
  Files          27       27              
  Lines        2220     2249      +29     
==========================================
+ Hits         2103     2134      +31     
+ Misses        117      115       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

continue
except (ConfigParseError, ConfigValidationError):
console.warning(f"{repo} was found with an invalid config")
raise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are now raising here, we should make sure the usages such as "list-services" handle this exception and exit with a non-zero status code and send it to sentry to avoid unhandled exceptions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, the only direct command using this function is list-services

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

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.

2 participants