-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
TestGenerateCatalogWithExternalNodes #9456
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9456 +/- ##
==========================================
+ Coverage 87.85% 87.91% +0.05%
==========================================
Files 160 160
Lines 21934 21934
==========================================
+ Hits 19271 19284 +13
+ Misses 2663 2650 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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. |
@MichelleArk What's the reason to backport to |
Agreed! Think the 1.1.latest label was just fat-thumbed |
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.
LGTM, would this apply to exposures also?
@aranke - good question! Exposures have their own handling for selection: https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/graph/selector.py#L168 This should not affect them. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.7.latest 1.7.latest
# Navigate to the new working tree
cd .worktrees/backport-1.7.latest
# Create a new branch
git switch --create backport-9456-to-1.7.latest
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 06e55bb93ed771921d656807cd6bfa2dc1995b20
# Push it to GitHub
git push --set-upstream origin backport-9456-to-1.7.latest
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.7.latest Then, create a pull request where the |
(cherry picked from commit 06e55bb)
Manual backport: #9483 |
* TestGenerateCatalogWithExternalNodes (#9456) (cherry picked from commit 06e55bb) * Flip logic in `packages_for_node` to remove error case By flipping the logic from `not in` to `in` we can drop the exception and instead default to the model runtime config when the package isn't found. We're still trying to grok if there will be any fallout from this. The tests all pass, but that doesn't guarantee nothing bad will happen. --------- Co-authored-by: Quigley Malcolm <quigley.malcolm@dbtlabs.com>
resolves #9458
Problem
catalog from docs generate does not include external nodes, even though that was the case in 1.6. This is because starting from 1.7, the docs generate task started using a ResourceSelector which filters out empty nodes (e.g. external ones) as opposed to iterating over the manifest directly.
Solution
include_empty_nodes=True
in theResourceTypeSelector
for the generate task.Checklist