Skip to content

CI: snowflake fix and dbt v2 uv - #585

Merged
mtcarlone merged 5 commits into
mainfrom
ci/snowflake-fix-and-dbt-v2-uv
Nov 6, 2026
Merged

mtcarlone merged 5 commits into
mainfrom
ci/snowflake-fix-and-dbt-v2-uv

Conversation

@mtcarlone

Copy link
Copy Markdown
Contributor

Overview

Fix CI and update dbt v2 to use uv and not Docker

Update type - breaking / non-breaking

  • Minor bug fix
  • Documentation improvements
  • Quality of Life improvements
  • New features (non-breaking change)
  • New features (breaking change)
  • Other (non-breaking change)
  • Other (breaking change)
  • Release preparation

What does this solve?

Outstanding questions

What databases have you tested with?

  • Snowflake
  • Google BigQuery
  • Databricks
  • Spark
  • N/A

The begin/commit pair around each dataset's inserts works on dbt Core,
but the Fusion engine doesn't keep it in one transaction across the
hook's separate queries. On DuckDB the commit fails with "cannot commit -
no transaction is active", the on-run-end hook stops at the first
dataset, and nothing is uploaded. On Postgres and Snowflake an unmatched
commit only warns or does nothing, so those likely fail quietly without
the intended atomicity.

begin_transaction and end_transaction now do nothing when dbt_version
starts with "2.", so on Fusion each insert commits on its own, as before
the transaction macros existed. dbt Core keeps the per-dataset
transactions.

Verified with dbt 2.0.11 and 2.0.6 against DuckDB: main fails the hook,
this passes two builds with the upload-completeness test green on the
second. dbt Core on DuckDB still sends the explicit begins and passes.
Tier 2 has failed on both Snowflake jobs since the upload-completeness
test landed. The Snowflake tox envs and scripts/fusion/test.sh warm up
with `dbt build --exclude-resource-type test`, so the build the test
checks has no test executions, and the test reported test_executions as
missing.

Those flows now pass artifacts_test_previous_build_excluded_tests: true
on their second build, and the test then doesn't require
test_executions. Every other dataset is still checked. Core and Fusion
record excluded resource types differently in invocation_args, so an
explicit var is more reliable than parsing them.

Reproduced on DuckDB with dbt Core and Fusion 2.0.6: warm-up without
tests, then a full build, fails as Tier 2 does; with the var it passes.
CI only parsed with Fusion on pull requests and built on Fusion against
Snowflake after merge, so a Fusion-only upload failure (like explicit
transactions breaking the hook) reached main unnoticed. DuckDB needs no
secrets, so scripts/fusion/test.sh now accepts duckdb (starting from a
fresh database file) and a fusion (duckdb) job runs it in pr.yml,
main.yml and release.yml. README and scripts/ci/README describe the new
coverage.

Not run through Docker locally (the daemon was down); the same
two-build sequence passed with Fusion 2.0.6 run through uvx.
dbt 2.x is on PyPI as an installer that downloads the sha256-pinned Fusion
wheel for the platform, so Fusion can be a tox env like the Core matrix.

- tox.ini: [testenv:fusion] holds the one version pin (dbt==2.0.6) and runs
  ad-hoc commands; fusion_parse, integration_duckdb_fusion (same steps as
  integration_duckdb) and integration_snowflake_fusion build on it.
- scripts/ci/test.sh accepts fusion as the version for duckdb and
  snowflake; scripts/ci/fusion-parse.sh replaces scripts/fusion/check.sh.
- Workflows: the Fusion jobs set up uv and call those scripts.
- Removed the Dockerfile, dbtf.sh and scripts/fusion/test.sh.
@mtcarlone mtcarlone added this to the 3.0.0 milestone Nov 6, 2026
@mtcarlone mtcarlone changed the title Ci/snowflake fix and dbt v2 uv CI: snowflake fix and dbt v2 uv Nov 6, 2026
@mtcarlone
mtcarlone merged commit 174ea93 into main Nov 6, 2026
6 checks passed
@mtcarlone
mtcarlone deleted the ci/snowflake-fix-and-dbt-v2-uv branch November 6, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant