-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into non_incremental_mat_view
- Loading branch information
Showing
10 changed files
with
92 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Fix inline comments (--) on the last line of an incremental model | ||
time: 2023-11-05T12:57:40.289399+09:00 | ||
custom: | ||
Author: tnk-ysk | ||
Issue: "896" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Fix broken partition config granularity and batch_id being set to None | ||
time: 2023-11-08T17:11:28.819877-08:00 | ||
custom: | ||
Author: colin-rogers-dbt | ||
Issue: "1006" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Upgrade spark-bigquery Java deps for serverless to 2.13-0.34.0 | ||
time: 2023-11-09T09:50:12.252774-08:00 | ||
custom: | ||
Author: colin-rogers-dbt | ||
Issue: "1006" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,10 +97,6 @@ jobs: | |
- 'dbt/**' | ||
- 'tests/**' | ||
- 'dev-requirements.txt' | ||
bigquery-python: | ||
- 'dbt/adapters/bigquery/dataproc/**' | ||
- 'dbt/adapters/bigquery/python_submissions.py' | ||
- 'dbt/include/bigquery/python_model/**' | ||
- name: Generate integration test matrix | ||
id: generate-matrix | ||
|
@@ -192,21 +188,6 @@ jobs: | |
GCS_BUCKET: dbt-ci | ||
run: tox -- --ddtrace | ||
|
||
# python models tests are slow so we only want to run them if we're changing them | ||
- name: Run tox (python models) | ||
if: needs.test-metadata.outputs.run-python-tests == 'true' | ||
env: | ||
BIGQUERY_TEST_SERVICE_ACCOUNT_JSON: ${{ secrets.BIGQUERY_TEST_SERVICE_ACCOUNT_JSON }} | ||
BIGQUERY_TEST_ALT_DATABASE: ${{ secrets.BIGQUERY_TEST_ALT_DATABASE }} | ||
BIGQUERY_TEST_NO_ACCESS_DATABASE: ${{ secrets.BIGQUERY_TEST_NO_ACCESS_DATABASE }} | ||
DBT_TEST_USER_1: group:[email protected] | ||
DBT_TEST_USER_2: group:[email protected] | ||
DBT_TEST_USER_3: serviceAccount:[email protected] | ||
DATAPROC_REGION: us-central1 | ||
DATAPROC_CLUSTER_NAME: dbt-test-1 | ||
GCS_BUCKET: dbt-ci | ||
run: tox -e python-tests -- --ddtrace | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
|
@@ -225,10 +206,67 @@ jobs: | |
name: integration_results_${{ matrix.python-version }}_${{ matrix.os }}_${{ matrix.adapter }}-${{ steps.date.outputs.date }}.csv | ||
path: integration_results.csv | ||
|
||
# python integration tests are slow so we only run them seperately and for a single OS / python version | ||
test-python: | ||
name: "test-python" | ||
needs: test-metadata | ||
runs-on: ubuntu-latest | ||
if: >- | ||
needs.test-metadata.outputs.matrix && | ||
fromJSON( needs.test-metadata.outputs.matrix ).include[0] && | ||
( | ||
github.event_name != 'pull_request_target' || | ||
github.event.pull_request.head.repo.full_name == github.repository || | ||
contains(github.event.pull_request.labels.*.name, 'ok to test') | ||
) | ||
steps: | ||
- name: Check out the repository | ||
if: github.event_name != 'pull_request_target' | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
# explicitly checkout the branch for the PR, | ||
# this is necessary for the `pull_request_target` event | ||
- name: Check out the repository (PR) | ||
if: github.event_name == 'pull_request_target' | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --user --upgrade pip | ||
python -m pip install tox | ||
python -m pip --version | ||
tox --version | ||
- name: Run tox (python models) | ||
env: | ||
BIGQUERY_TEST_SERVICE_ACCOUNT_JSON: ${{ secrets.BIGQUERY_TEST_SERVICE_ACCOUNT_JSON }} | ||
BIGQUERY_TEST_ALT_DATABASE: ${{ secrets.BIGQUERY_TEST_ALT_DATABASE }} | ||
BIGQUERY_TEST_NO_ACCESS_DATABASE: ${{ secrets.BIGQUERY_TEST_NO_ACCESS_DATABASE }} | ||
DBT_TEST_USER_1: group:[email protected] | ||
DBT_TEST_USER_2: group:[email protected] | ||
DBT_TEST_USER_3: serviceAccount:[email protected] | ||
DATAPROC_REGION: us-central1 | ||
DATAPROC_CLUSTER_NAME: dbt-test-1 | ||
GCS_BUCKET: dbt-ci | ||
run: tox -e python-tests -- --ddtrace | ||
|
||
require-label-comment: | ||
runs-on: ubuntu-latest | ||
|
||
needs: test | ||
needs: | ||
- test | ||
- test-python | ||
|
||
permissions: | ||
pull-requests: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters