Repository navigation
fix(adapter): name dbt v2 as the cause when the dbt import fails #1558
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
Merged
wcchang1115
merged 9 commits into
main
from
feature/drc-4656-dbt-v2-users-see-the-real-reason-recce-oss-does-not-start
Sep 24, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2e3274d
fix(adapter): name dbt v2 as the cause when the dbt import fails
wcchang1115 fb43936
docs: clarify the schema limit comment and drop a test comment
wcchang1115 326fe0c
Merge branch 'main' into feature/drc-4656-dbt-v2-users-see-the-real-r…
wcchang1115 e76d8f2
fix(server): keep the traceback for startup errors other than dbt import
wcchang1115 eb1ce95
fix(server): keep dbt import failures out of Sentry
wcchang1115 93a1e4b
Merge branch 'main' into feature/drc-4656-dbt-v2-users-see-the-real-r…
wcchang1115 363ec16
fix(adapter): keep the original error for other dbt import failures
wcchang1115 af83136
docs: describe when the dbt exceptions are raised
wcchang1115 4e58045
fix(server): print the dbt import failure as an error
wcchang1115 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
LOW — none of the new behaviour is covered by a test.
Every test change in this PR is a rename of the pre-existing schema-guard tests (
TestFusionManifestFailLoud→TestNewerSchemaFailLoud,_fusion_artifact→_newer_artifact, v20 → v13/v2). The three branches the PR actually adds have zero coverage, which matches Codecov's 8 missing lines indbt_adapter/__init__.pyand 4 inserver.py:DbtUnavailableErrorat startup →logger.warninginstead oflogger.exceptionAll three are testable without dbt v2 installed. For 1 and 2 I exercised the real path with a
PYTHONPATHshim (/tmp/fakev2/dbt/{__init__,_core}.py, nodbt/adapters) plus a fresh interpreter —monkeypatch.syspath_prepend+importlib.reloaddoes the same inside pytest. 3 is a plainisinstancebranch that a small unit test over the startup handler can assert withcaplog.The PR checklist ticks "added or ran the appropriate tests"; worth either adding them or saying explicitly that the import-time branches are intentionally untested.
Uh oh!
There was an error while loading. Please reload this page.
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.
Added two subprocess tests in 363ec16: one for the dbt v2 message, and one that checks that a non-dbt
ImportErroris raised as is. The second test fails without the fix.