Repository navigation
CI: snowflake fix and dbt v2 uv - #585
Merged
Merged
Conversation
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.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
Fix CI and update dbt v2 to use
uvand not DockerUpdate type - breaking / non-breaking
What does this solve?
Outstanding questions
What databases have you tested with?