Skip to content

Commit

Permalink
Merge pull request #110 from dbt-labs/full-v1-compatibility
Browse files Browse the repository at this point in the history
Breaking v1 changes
  • Loading branch information
joellabes authored Dec 7, 2021
2 parents 3a48d23 + 8bab4c4 commit 99601e3
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 31 deletions.
42 changes: 21 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python3 -m venv dbt_venv
. dbt_venv/bin/activate
pip install --upgrade pip setuptools
pip install --pre dbt
pip install --pre dbt-core dbt-postgres dbt-redshift dbt-snowflake dbt-bigquery
mkdir -p ~/.dbt
cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml
Expand All @@ -39,35 +39,35 @@ jobs:
command: |
. dbt_venv/bin/activate
cd integration_tests
dbt deps --target postgres
dbt seed --target postgres --full-refresh
dbt run --target postgres --full-refresh --vars 'update: false'
dbt run --target postgres --vars 'update: true'
dbt test --target postgres
dbt --warn-error deps --target postgres
dbt --warn-error seed --target postgres --full-refresh
dbt --warn-error run --target postgres --full-refresh --vars 'update: false'
dbt --warn-error run --target postgres --vars 'update: true'
dbt --warn-error test --target postgres
- run:
name: "Run Tests - Redshift"
command: |
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps --target redshift
dbt seed --target redshift --full-refresh
dbt run --target redshift --full-refresh --vars 'update: false'
dbt run --target redshift --vars 'update: true'
dbt test --target redshift
dbt --warn-error deps --target redshift
dbt --warn-error seed --target redshift --full-refresh
dbt --warn-error run --target redshift --full-refresh --vars 'update: false'
dbt --warn-error run --target redshift --vars 'update: true'
dbt --warn-error test --target redshift
- run:
name: "Run Tests - Snowflake"
command: |
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps --target snowflake
dbt seed --target snowflake --full-refresh
dbt run --target snowflake --full-refresh --vars 'update: false'
dbt run --target snowflake --vars 'update: true'
dbt test --target snowflake
dbt --warn-error deps --target snowflake
dbt --warn-error seed --target snowflake --full-refresh
dbt --warn-error run --target snowflake --full-refresh --vars 'update: false'
dbt --warn-error run --target snowflake --vars 'update: true'
dbt --warn-error test --target snowflake
- run:
name: "Run Tests - BigQuery"
Expand All @@ -78,11 +78,11 @@ jobs:
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps --target bigquery
dbt seed --target bigquery --full-refresh
dbt run --target bigquery --full-refresh --vars 'update: false'
dbt run --target bigquery --vars 'update: true'
dbt test --target bigquery
dbt --warn-error deps --target bigquery
dbt --warn-error seed --target bigquery --full-refresh
dbt --warn-error run --target bigquery --full-refresh --vars 'update: false'
dbt --warn-error run --target bigquery --vars 'update: true'
dbt --warn-error test --target bigquery
- save_cache:
key: deps1-{{ .Branch }}
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# snowplow 0.14.0

This release supports any version (minor and patch) of v1, which means far less need for compatibility releases in the future.

## Under the hood
- Change `require-dbt-version` to `[">=1.0.0", "<2.0.0"]`
- Bump dbt-utils dependency
- Replace `source-paths` and `data-paths` with `model-paths` and `seed-paths` respectively
- Rename `data` and `analysis` directories to `seeds` and `analyses` respectively
- Replace `dbt_modules` with `dbt_packages` in `clean-targets`

# snowplow v0.13.3
🚨 This is a compatibility release in preparation for `dbt-core` v1.0.0 (🎉). Projects using this version with `dbt-core` v1.0.x can expect to see a deprecation warning. This will be resolved in the next minor release.
10 changes: 5 additions & 5 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ name: 'snowplow'
version: '0.13.0'
config-version: 2

source-paths: ["models"]
model-paths: ["models"]
target-path: "target"
clean-targets: ["target"]
clean-targets: ["target", "dbt_packages"]
test-paths: ["test"]
analysis-paths: ["analysis"]
data-paths: ["data"]
analysis-paths: ["analyses"]
seed-paths: ["seeds"]
macro-paths: ["macros"]

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

vars:
#'snowplow:events': TABLE OR {{ REF() }}
Expand Down
8 changes: 4 additions & 4 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ config-version: 2

profile: 'integration_tests'

source-paths: ["models"]
analysis-paths: ["analysis"]
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
data-paths: ["data"]
seed-paths: ["seeds"]
macro-paths: ["macros"]

target-path: "target"
clean-targets:
- "target"
- "dbt_modules"
- "dbt_packages"

quoting:
identifier: false
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: [">=0.7.0", "<0.8.0"]
version: [">=0.8.0", "<0.9.0"]
File renamed without changes.
File renamed without changes.

0 comments on commit 99601e3

Please sign in to comment.