Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ actionlint
# dbt_packages is a directory that gets created when you run dbt deps
dev/dags/dbt/jaffle_shop/dbt_packages/

# dbt package lockfile — removed so dbt resolves the version range in packages.yml at runtime
dev/dags/dbt/jaffle_shop/package-lock.yml

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion dev/dags/dbt/jaffle_shop/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ clean-targets:
- "dbt_modules"
- "logs"

require-dbt-version: [">=1.0.0", "<2.0.0"]
require-dbt-version: [">=1.0.0", "<3.0.0"]

models:
jaffle_shop:
Expand Down
4 changes: 0 additions & 4 deletions dev/dags/dbt/jaffle_shop/package-lock.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dev/dags/dbt/jaffle_shop/packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: "1.1.1"
version: [">=1.1.1", "<1.4.0"]
Comment thread
tatiana marked this conversation as resolved.
Comment thread
tatiana marked this conversation as resolved.
8 changes: 4 additions & 4 deletions tests/dbt/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2357,9 +2357,9 @@ def test_save_dbt_ls_cache(mock_variable_set, mock_datetime, tmp_dbt_project_dir
# Different macOS versions have produced different hashes for this directory. The first value below is a
# historical macOS-specific hash, while the second matches the Linux hash asserted in the else-branch. We
# allow both here so that the test is stable across macOS versions and when macOS hashing matches Linux.
assert hash_dir in ("9d95cbf6529e2ab51fadd6a3f0a3971f", "633a523f295ef0cd496525428815537b")
assert hash_dir in ("9d95cbf6529e2ab51fadd6a3f0a3971f", "5c1aed937708e585054c874ff8f33fd1")
else:
assert hash_dir == "633a523f295ef0cd496525428815537b"
assert hash_dir == "5c1aed937708e585054c874ff8f33fd1"
Comment thread
tatiana marked this conversation as resolved.


@patch("cosmos.dbt.graph.datetime")
Expand Down Expand Up @@ -2399,9 +2399,9 @@ def test_save_yaml_selectors_cache(mock_variable_set, mock_datetime, tmp_dbt_pro
# Some macOS versions compute a different directory hash than Linux, while others match the Linux behavior.
# The first value is the macOS-specific hash; the second value is the Linux hash, which certain macOS versions also produce.
# We allow both here to keep the test stable across macOS releases, while non-macOS platforms assert only the Linux hash.
assert hash_dir in ("9d95cbf6529e2ab51fadd6a3f0a3971f", "633a523f295ef0cd496525428815537b")
assert hash_dir in ("9d95cbf6529e2ab51fadd6a3f0a3971f", "5c1aed937708e585054c874ff8f33fd1")
else:
assert hash_dir == "633a523f295ef0cd496525428815537b"
assert hash_dir == "5c1aed937708e585054c874ff8f33fd1"


@pytest.mark.integration
Expand Down
Loading