ci: add post-merge min-deps parse gate#1460
Merged
Merged
Conversation
3 tasks
sd-db
added a commit
that referenced
this pull request
May 15, 2026
…R 15.4 (#1461) ### Description PR #1434 added `from pydantic import model_validator` to `refresh.py`, a v2-only symbol. This breaks adapter import on Databricks Jobs DBR 15.4 LTS, which ships pydantic v1.10.x. This PR rewrites the three v2-only call sites to v1-compatible equivalents that also work in v2 via the deprecation shim: | Before (v2 only) | After (v1 + v2) | |---|---| | `@model_validator(mode="after")` | `@root_validator(skip_on_failure=True)` | | `self.model_construct(**self.model_dump(), ...)` | `self.copy(update=...)` | ### Verification - Unit tests: 1081 passed, 6 skipped - Local smoke (pydantic v2): 56 PASS / 0 ERROR - Databricks Jobs verify on DBR 15.4 LTS (pydantic v1.10.x) - Reproduced the post-merge `Min-Deps Parse` workflow (#1460) locally against this branch: `uv pip install --resolution lowest-direct .` resolved pydantic to 1.10.0; `dbt parse --project-dir tests/min_deps_smoke --profiles-dir tests/min_deps_smoke` succeeds, confirming the fix clears the same import path that the post-merge gate exercises. ### Checklist - [x] Added changes to CHANGELOG.md - [x] Unit tests pass - [x] Functional/smoke tests pass on Databricks Jobs (DBR 15.4 LTS)
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.
Description
Post-merge CI gate. Installs dbt-databricks at
uv pip install --resolution lowest-directand runsdbt parseagainst an embedded minimal project. Catches constraint ranges that admit versions the code doesn't support.Testing
Run 25900943714 — gate fired and failed with the
model_validator from pydanticImportError that broke 1.12.0's release verification. Run was via a temporarypull_request:trigger, reverted in the next commit. Validates the full pipeline (JFrog proxy + protected runner + uv lowest-direct + dbt parse).Checklist
CHANGELOG.mdand added information about my change to the "dbt-databricks next" section.