From 167b20b808a4baf25097b959698994fe6563dc18 Mon Sep 17 00:00:00 2001 From: Claire Carroll Date: Fri, 31 Jul 2020 10:27:17 -0400 Subject: [PATCH 1/2] Bump utils range --- packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.yml b/packages.yml index 4e57658..ecb7073 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - package: fishtown-analytics/dbt_utils - version: ">=0.2.5" + version: [">=0.4.0", "<0.6.0"] From a7cacc8fcbd41d427d1210181fe82467c10275c4 Mon Sep 17 00:00:00 2001 From: Claire Carroll Date: Fri, 31 Jul 2020 10:27:26 -0400 Subject: [PATCH 2/2] Fix tests --- .circleci/config.yml | 40 ++++++++++++------------ integration_tests/ci/sample.profiles.yml | 6 ++-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 161a990..21dba85 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,11 +39,11 @@ jobs: command: | . 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" @@ -51,11 +51,11 @@ jobs: . 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" @@ -63,11 +63,11 @@ jobs: . 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" @@ -78,11 +78,11 @@ jobs: . 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 }} diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 1bb1c64..15b4da9 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -14,7 +14,7 @@ integration_tests: host: "{{ env_var('POSTGRES_TEST_HOST') }}" user: "{{ env_var('POSTGRES_TEST_USER') }}" pass: "{{ env_var('POSTGRES_TEST_PASS') }}" - port: "{{ env_var('POSTGRES_TEST_PORT') }}" + port: "{{ env_var('POSTGRES_TEST_PORT') | as_number }}" dbname: "{{ env_var('POSTGRES_TEST_DBNAME') }}" schema: snowplow_integration_tests_postgres threads: 1 @@ -25,7 +25,7 @@ integration_tests: user: "{{ env_var('REDSHIFT_TEST_USER') }}" pass: "{{ env_var('REDSHIFT_TEST_PASS') }}" dbname: "{{ env_var('REDSHIFT_TEST_DBNAME') }}" - port: "{{ env_var('REDSHIFT_TEST_PORT') }}" + port: "{{ env_var('REDSHIFT_TEST_PORT') | as_number }}" schema: snowplow_integration_tests_redshift threads: 1 @@ -36,7 +36,7 @@ integration_tests: project: "{{ env_var('BIGQUERY_TEST_DATABASE') }}" schema: snowplow_integration_tests_bigquery threads: 1 - + snowflake: type: snowflake account: "{{ env_var('SNOWFLAKE_TEST_ACCOUNT') }}"