Skip to content

ci: add post-merge min-deps parse gate#1460

Merged
sd-db merged 4 commits into
mainfrom
sd-db/feat/min-deps-pr-gate
May 15, 2026
Merged

ci: add post-merge min-deps parse gate#1460
sd-db merged 4 commits into
mainfrom
sd-db/feat/min-deps-pr-gate

Conversation

@sd-db

@sd-db sd-db commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Description

Post-merge CI gate. Installs dbt-databricks at uv pip install --resolution lowest-direct and runs dbt parse against 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 pydantic ImportError that broke 1.12.0's release verification. Run was via a temporary pull_request: trigger, reverted in the next commit. Validates the full pipeline (JFrog proxy + protected runner + uv lowest-direct + dbt parse).

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@sd-db sd-db self-assigned this May 15, 2026
@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@sd-db sd-db merged commit f15ddfd into main May 15, 2026
7 checks passed
@sd-db sd-db deleted the sd-db/feat/min-deps-pr-gate branch May 15, 2026 07:37
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)
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