Skip to content

Commit 26a75e7

Browse files
feature/freshness-updates (#63)
* feature/freshness-updates * pr ref fix * Update packages.yml Co-authored-by: Jamie Rodriguez <[email protected]> --------- Co-authored-by: Jamie Rodriguez <[email protected]>
1 parent 582a415 commit 26a75e7

File tree

8 files changed

+40
-15
lines changed

8 files changed

+40
-15
lines changed

.buildkite/pipeline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ steps:
33
key: "run-dbt-postgres"
44
plugins:
55
- docker#v3.13.0:
6-
image: "python:3.8"
6+
image: "python:3.10.13"
77
shell: [ "/bin/bash", "-e", "-c" ]
88
environment:
99
- "BASH_ENV=/tmp/.bashrc"
@@ -18,7 +18,7 @@ steps:
1818
key: "run_dbt_snowflake"
1919
plugins:
2020
- docker#v3.13.0:
21-
image: "python:3.8"
21+
image: "python:3.10.13"
2222
shell: [ "/bin/bash", "-e", "-c" ]
2323
environment:
2424
- "BASH_ENV=/tmp/.bashrc"
@@ -35,7 +35,7 @@ steps:
3535
key: "run_dbt_bigquery"
3636
plugins:
3737
- docker#v3.13.0:
38-
image: "python:3.8"
38+
image: "python:3.10.13"
3939
shell: [ "/bin/bash", "-e", "-c" ]
4040
environment:
4141
- "BASH_ENV=/tmp/.bashrc"
@@ -47,7 +47,7 @@ steps:
4747
key: "run_dbt_redshift"
4848
plugins:
4949
- docker#v3.13.0:
50-
image: "python:3.8"
50+
image: "python:3.10.13"
5151
shell: [ "/bin/bash", "-e", "-c" ]
5252
environment:
5353
- "BASH_ENV=/tmp/.bashrc"
@@ -62,7 +62,7 @@ steps:
6262
key: "run_dbt_databricks"
6363
plugins:
6464
- docker#v3.13.0:
65-
image: "python:3.8"
65+
image: "python:3.10.13"
6666
shell: [ "/bin/bash", "-e", "-c" ]
6767
environment:
6868
- "BASH_ENV=/tmp/.bashrc"

.buildkite/scripts/run_models.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ echo `pwd`
1717
cd integration_tests
1818
dbt deps
1919
dbt seed --target "$db" --full-refresh
20+
dbt source freshness --target "$db" || echo "...Only verifying freshness runs…"
2021
dbt run --target "$db" --full-refresh
2122
dbt test --target "$db"
2223
dbt run --vars '{github__using_repo_team: false}' --target "$db" --full-refresh

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
# dbt_github version.version
1+
# dbt_github v0.9.0
2+
3+
[PR #63](https://github.com/fivetran/dbt_github/pull/63) includes the following updates:
4+
5+
## Breaking Change for dbt Core < 1.9.6
6+
7+
> *Note: This is not relevant to Fivetran Quickstart users.*
8+
9+
Migrated `freshness` from a top-level source property to a source `config` in alignment with [recent updates](https://github.com/dbt-labs/dbt-core/issues/11506) from dbt Core ([GitHub Source v0.9.0](https://github.com/fivetran/dbt_github_source/releases/tag/v0.9.0)). This will resolve the following deprecation warning that users running dbt >= 1.9.6 may have received:
10+
11+
```
12+
[WARNING]: Deprecated functionality
13+
Found `freshness` as a top-level property of `github` in file
14+
`models/src_github.yml`. The `freshness` top-level property should be moved
15+
into the `config` of `github`.
16+
```
17+
18+
**IMPORTANT:** Users running dbt Core < 1.9.6 will not be able to utilize freshness tests in this release or any subsequent releases, as older versions of dbt will not recognize freshness as a source `config` and therefore not run the tests.
19+
20+
If you are using dbt Core < 1.9.6 and want to continue running GitHub freshness tests, please elect **one** of the following options:
21+
1. (Recommended) Upgrade to dbt Core >= 1.9.6
22+
2. Do not upgrade your installed version of the `github` package. Pin your dependency on v0.8.1 in your `packages.yml` file.
23+
3. Utilize a dbt [override](https://docs.getdbt.com/reference/resource-properties/overrides) to overwrite the package's `github` source and apply freshness via the previous release top-level property route. This will require you to copy and paste the entirety of the previous release `src_github.yml` file and add an `overrides: github_source` property.
224

325
## Documentation
426
- Added Quickstart model counts to README. ([#60](https://github.com/fivetran/dbt_github/pull/60))
527
- Corrected references to connectors and connections in the README. ([#60](https://github.com/fivetran/dbt_github/pull/60))
628

29+
## Under the Hood:
30+
- Updates to ensure integration tests use latest version of dbt.
31+
732
# dbt_github v0.8.1
833
This release contains the following updates:
934

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Include the following github package version in your `packages.yml` file.
6161
```yaml
6262
packages:
6363
- package: fivetran/github
64-
version: [">=0.8.0", "<0.9.0"] # we recommend using ranges to capture non-breaking changes automatically
64+
version: [">=0.9.0", "<0.10.0"] # we recommend using ranges to capture non-breaking changes automatically
6565
```
6666

6767
Do NOT include the `github_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well.
@@ -134,7 +134,7 @@ packages:
134134
version: [">=1.0.0", "<2.0.0"]
135135
136136
- package: fivetran/github_source
137-
version: [">=0.8.0", "<0.9.0"]
137+
version: [">=0.9.0", "<0.10.0"]
138138
139139
- package: dbt-labs/spark_utils
140140
version: [">=0.3.0", "<0.4.0"]

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config-version: 2
22
name: 'github'
3-
version: '0.8.1'
3+
version: '0.9.0'
44
require-dbt-version: [">=1.3.0", "<2.0.0"]
55
models:
66
github:

integration_tests/ci/sample.profiles.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# HEY! This file is used in the dbt package integrations tests with Buildkite.
33
# You should __NEVER__ check credentials into version control. Thanks for reading :)
44

5-
config:
6-
send_anonymous_usage_stats: False
7-
use_colors: True
8-
95
integration_tests:
106
target: redshift
117
outputs:

integration_tests/dbt_project.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'github_integration_tests'
2-
version: '0.8.1'
2+
version: '0.9.0'
33
config-version: 2
44
profile: 'integration_tests'
55
vars:
@@ -63,3 +63,6 @@ seeds:
6363
dispatch:
6464
- macro_namespace: dbt_utils
6565
search_order: ['spark_utils', 'dbt_utils']
66+
67+
flags:
68+
send_anonymous_usage_stats: False

packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages:
22
- package: fivetran/github_source
3-
version: [">=0.8.0", "<0.9.0"]
3+
version: [">=0.9.0", "<0.10.0"]

0 commit comments

Comments
 (0)