fix(dbt-tools): Fusion advice and Fusion fallbacks in Fusion mode, and the rest of the #1757 review
Ā
RA
1h ago+338+338+012345678901234567890123456789-54-54-01234567890123456789
Issue for this PR
Closes #1756
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
From the #1757 review:
- In Fusion mode, a failed adapter start gets Fusion advice (the 2.x binary, where it looked,
altimate-dbt doctoror core), not virtualenv advice; other modes unchanged. - In Fusion mode the dbt-cli fallbacks run the Fusion binary the check and adapter pick, not the first
dbtfound; with no Fusion they fail and start nothing. - Doctor's usage says what it checks per mode; the not-found message names only the places searched.
- Schema-verify's stale-manifest note leads the reason line.
- Tests: Fusion's empty Python, stale
parents, a doctor crash.
dbt-integration 0.3.20 ā 0.3.21. dbt-tools uses none of what changed.
Separate flake fix (own commit): the adapter-access timer test counted another file's leftover timer (failed main twice). It now counts only the adapter's, and still catches a leak.
How did you verify your code works?
- Each new test fails on the old code.
- dbt-tools 133 pass, e2e on dbt 1.10.23 15; opencode adapter-access 49, validators 817; typecheck 13/13.
- The flake reproduces with CI shard 1's earlier files; 0 fails after.
- Fusion 2.0.0-preview.175 runs the fallbacks correctly on a fixture.
Claims, residuals and review log
Cost side effects
None.
Screenshots / recordings
Not a UI change.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
- I checked for cost side effects (model calls, queries or cloud resources that grow with user data) and described them, or wrote "none"
š¤ Generated with Claude Code
https://claude.ai/code/session_01VEmKQv6E2XpAgL5eJE8RYi
Summary by cubic
Fixes Fusion-mode handling in dbt-tools and opencode: when Fusion fails, users now get advice about the Fusion binary instead of Python, and the CLI fallbacks run the Fusion binary rather than a possibly Core/Cloud dbt. Also closes the rest of the #1757 review items.
- In Fusion mode, adapter failure refusals now advise running
altimate-dbt doctor, installing dbt Fusion, or switching to core, and only name the interpreter's folder when it was searched. dbt-clifallbacks and the prerequisite check now use the same Fusion binary lookup as the adapter; without a Fusion binary they fail, and compile fails instead of answering from an earlier manifest.- Doctor's usage text and not-found message now match each mode.
- Schema-verify's stale-manifest note now leads the reason field, since the session prints reason before fix hint.
- Bump
@altimateai/dbt-integrationto 0.3.21 (no functional changes used). - Fixed a flaky timer-cleanup test to count only the adapter's own timers.
Summary by CodeRabbit
- New Features
- dbt Fusion projects can locate and use a Fusion executable for CLI operations, with clearer guidance on where to install it if it is missing.
- Setup instructions distinguish Fusion requirements from Python and dbt-core requirements.
- Bug Fixes
- Fusion operations now report a missing Fusion executable instead of falling back to results from an earlier compile.
- Stale-manifest details now appear in the validation reason, while mismatch-specific corrective guidance remains separate.