-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add more package validation #9986
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9986 +/- ##
==========================================
+ Coverage 88.17% 88.19% +0.02%
==========================================
Files 181 181
Lines 22614 22632 +18
==========================================
+ Hits 19939 19961 +22
+ Misses 2675 2671 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f64fcf5
to
1c66b85
Compare
…986-packages-validation
core/dbt/contracts/project.py
Outdated
if isinstance(package, dict): | ||
if package.get("package") == "": | ||
raise ValidationError( | ||
"A package is missing the value. It is a required property." |
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.
Should we add some more detailed message here to help folks narrow down the problem since we already know what type is missing value here?
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.
Other than the one comment things look good to me ! feel free to merge after taking a look at that comment.
resolves #9985
Problem
dbt hangs when packages have empty values. This is generally not intentional but the result of empty env-vars.
Solution
Add validation
Checklist