Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/dbt/cli/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ def test_run_with_changes_and_full_refresh(
"select a, b, 'changed' as c from {{ ref('model_a') }}"
)

# Clear dbt's partial parse cache to ensure file changes are detected
# Without it dbt may use stale cached model definitions, causing flakiness
partial_parse_file = project_path / "target" / "sqlmesh_partial_parse.msgpack"
if partial_parse_file.exists():
partial_parse_file.unlink()

# run with --full-refresh. this should:
# - fully refresh model_a (pick up the new records from external_table)
# - deploy the local change to model_b (introducing the 'changed' column)
Expand Down