fix(dbt-tools): move to dbt-integration 0.3.22
Issue for this PR
Closes #1854
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Moves dbt-tools to @altimateai/dbt-integration 0.3.22 (from 0.3.21). For altimate-dbt that means:
- a dbt Fusion later on PATH is found behind a
dbtthat can't be executed; - a broken
dbtRunnerimport is reported as its own error, not "No module named 'dbt.main'"; - after a failed load, lookups name the error the project last failed with;
- the automatic
dbt depsat project start is skipped where it can only fail (dbt not importable, no packages file, a symlinked packages folder), and projects sharing a packages folder take turns; - a failing dbt Fusion parse no longer re-parses back to back from a file watcher.
Only packages/dbt-tools/package.json and that one bun.lock entry change.
Known, not new: under Bun, a query run right after a project starts can fail with "Python process closed with exit code 1", and running it again works. With no packages file, 0.3.22 skips the startup dbt deps, so queries come sooner and hit it more often (9 of 30 probe runs, against 3 of 30 on 0.3.21; equal when both run deps).
How did you verify your code works?
On this head, locally:
bun turbo typecheck13/13; dbt-tools build, tests 133 pass / 0 fail, e2e on dbt 1.10.23 15 pass / 0 fail; opencode's dbt adapter, lineage and validator tests 888 pass / 0 fail.- The installed package is npm 0.3.22, the same 102 files as the build the pre-release E2E ran on. That E2E covered
altimate-dbtagainst 0.3.21 as the control, including the Fusion-behind-a-broken-dbtcase. - A fresh checkout with no
node_modulesinstalls withbun install --frozen-lockfileunder the 3-day minimum release age, and resolves 0.3.22.
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_01BXxzvq8DkGCpG8GNq8bVcL
Summary by cubic
Updates dbt-tools to @altimateai/dbt-integration 0.3.22, fixing several dbt Fusion and startup issues. Old behavior: Fusion wasn't found behind a broken dbt on PATH, broken dbtRunner imports reported a generic "No module named 'dbt.main'" error, load errors weren't named, and the automatic dbt deps ran where it could only fail. New: Fusion is found, the import error is reported as its own error, lookups name the last load error, and startup deps are skipped when they'd fail (no importable dbt, no packages file, symlinked packages folder) with projects sharing a packages folder taking turns. A failing Fusion parse no longer re-parses repeatedly from a file watcher.
Known side effect: with no packages file, the skipped startup deps let queries start sooner, increasing the chance of a "Python process closed" error right after project start under Bun (not new, previously seen with 0.3.21).
Summary by CodeRabbit
- Chores
- Updated the dbt tools package to use a newer version of its integration package. No direct user-facing changes are noted.