-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
feat(config): Add validation for non remote dependencies #274
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ 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. |
continue | ||
except (ConfigParseError, ConfigValidationError): | ||
console.warning(f"{repo} was found with an invalid config") | ||
raise |
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.
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.
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.
done, the only direct command using this function is list-services
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.
good catch
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