Skip to content

Commit

Permalink
Merge pull request #53 from dbt-labs/full-v1-compatibility
Browse files Browse the repository at this point in the history
v1 breaking changes
  • Loading branch information
joellabes authored Dec 7, 2021
2 parents 252bd39 + e9ad165 commit 40e104c
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 28 deletions.
36 changes: 16 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,35 +41,32 @@ jobs:
command: |
. dbt_venv/bin/activate
cd integration_tests
dbt deps --target postgres
dbt run-operation create_source_table --target postgres
dbt seed --target postgres --full-refresh
dbt run --target postgres
dbt test --target postgres
dbt --warn-error deps --target postgres
dbt --warn-error run-operation create_source_table --target postgres
dbt --warn-error seed --target postgres --full-refresh
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 run-operation create_source_table --target redshift
dbt seed --target redshift --full-refresh
dbt run --target redshift
dbt test --target redshift
dbt --warn-error deps --target redshift
dbt --warn-error run-operation create_source_table --target redshift
dbt --warn-error seed --target redshift --full-refresh
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 run-operation create_source_table --target snowflake
dbt seed --target snowflake --full-refresh
dbt run --target snowflake
dbt test --target snowflake
dbt --warn-error deps --target snowflake
dbt --warn-error run-operation create_source_table --target snowflake
dbt --warn-error seed --target snowflake --full-refresh
dbt --warn-error test --target snowflake
- run:
name: "Run Tests - BigQuery"
Expand All @@ -80,11 +77,10 @@ jobs:
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps --target bigquery
dbt run-operation create_source_table --target bigquery
dbt seed --target bigquery --full-refresh
dbt run --target bigquery
dbt test --target bigquery
dbt --warn-error deps --target bigquery
dbt --warn-error run-operation create_source_table --target bigquery
dbt --warn-error seed --target bigquery --full-refresh
dbt --warn-error test --target bigquery
- save_cache:
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# dbt-codegen 0.5.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`

# dbt-codegen v0.4.1
🚨 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.

Expand Down
6 changes: 3 additions & 3 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'codegen'
version: '0.4.0'
version: '0.5.0'

require-dbt-version: [">=0.18.0", "<1.1.0"]
require-dbt-version: [">=1.0.0", "<2.0.0"]
config-version: 2

target-path: "target"
clean-targets: ["target", "dbt_modules"]
clean-targets: ["target", "dbt_packages"]
macro-paths: ["macros"]
log-path: "logs"
8 changes: 4 additions & 4 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,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"

seeds:
+schema: raw_data
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.6.2", "<0.8.0"]
version: [">=0.8.0", "<0.9.0"]

0 comments on commit 40e104c

Please sign in to comment.