-
Notifications
You must be signed in to change notification settings - Fork 17
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 supportPy3.12
- Loading branch information
Showing
118 changed files
with
383 additions
and
10,481 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,7 @@ | ||
kind: Fixes | ||
body: Default to psycopg2-binary and allow overriding to psycopg2 via DBT_PSYCOPG2_NAME | ||
(restores previous behavior) | ||
time: 2024-06-05T20:26:14.801254-04:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "96" |
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 `persist_docs` for `materialized_view` materializations. Previously, using this configuration with materialized view models would lead to an error. | ||
time: 2024-06-26T16:39:30.455995+02:00 | ||
custom: | ||
Author: morsapaes | ||
Issue: "120" |
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: Add support for experimental record/replay testing. | ||
time: 2024-07-16T17:24:42.271859-04:00 | ||
custom: | ||
Author: peterallenwebb | ||
Issue: "123" |
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,20 @@ | ||
python -m venv venv | ||
source venv/bin/activate | ||
python -m pip install . | ||
|
||
if [[ "$PSYCOPG2_WORKAROUND" == true ]]; then | ||
if [[ $(pip show psycopg2-binary) ]]; then | ||
PSYCOPG2_VERSION=$(pip show psycopg2-binary | grep Version | cut -d " " -f 2) | ||
pip uninstall -y psycopg2-binary | ||
pip install psycopg2==$PSYCOPG2_VERSION | ||
fi | ||
fi | ||
|
||
PSYCOPG2_NAME=$((pip show psycopg2 || pip show psycopg2-binary) | grep Name | cut -d " " -f 2) | ||
if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then | ||
echo -e 'Expected: "$PSYCOPG2_EXPECTED_NAME" but found: "$PSYCOPG2_NAME"' | ||
exit 1 | ||
fi | ||
deactivate | ||
rm -r ./venv |
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,41 @@ | ||
# **what?** | ||
# Open an issue in docs.getdbt.com when an issue is labeled `user docs` and closed as completed | ||
|
||
# **why?** | ||
# To reduce barriers for keeping docs up to date | ||
|
||
# **when?** | ||
# When an issue is labeled `user docs` and is closed as completed. Can be labeled before or after the issue is closed. | ||
|
||
|
||
name: Open issues in docs.getdbt.com repo when an issue is labeled | ||
run-name: "Open an issue in docs.getdbt.com for issue #${{ github.event.issue.number }}" | ||
|
||
on: | ||
issues: | ||
types: [labeled, closed] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
issues: write # comments on issues | ||
|
||
jobs: | ||
open_issues: | ||
# we only want to run this when the issue is closed as completed and the label `user docs` has been assigned. | ||
# If this logic does not exist in this workflow, it runs the | ||
# risk of duplicaton of issues being created due to merge and label both triggering this workflow to run and neither having | ||
# generating the comment before the other runs. This lives here instead of the shared workflow because this is where we | ||
# decide if it should run or not. | ||
if: | | ||
(github.event.issue.state == 'closed' && github.event.issue.state_reason == 'completed') && ( | ||
(github.event.action == 'closed' && contains(github.event.issue.labels.*.name, 'user docs')) || | ||
(github.event.action == 'labeled' && github.event.label.name == 'user docs')) | ||
uses: dbt-labs/actions/.github/workflows/open-issue-in-repo.yml@main | ||
with: | ||
issue_repository: "dbt-labs/docs.getdbt.com" | ||
issue_title: "Docs Changes Needed from ${{ github.event.repository.name }} Issue #${{ github.event.issue.number }}" | ||
issue_body: "At a minimum, update body to include a link to the page on docs.getdbt.com requiring updates and what part(s) of the page you would like to see updated." | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
# 1. Bump the version if it has not been bumped | ||
# 2. Generate the changelog (via changie) if there is no markdown file for this version | ||
name: "Release prep" | ||
run-name: "Release prep: Generate changelog and bump ${{ inputs.package }} to ${{ inputs.version }} for release to ${{ inputs.deploy-to }}" | ||
run-name: "Release prep: Generate changelog and bump to ${{ inputs.version }} for release to ${{ inputs.deploy-to }}" | ||
on: | ||
workflow_call: | ||
inputs: | ||
|
@@ -113,7 +113,7 @@ jobs: | |
|
||
- name: "Parse input version" | ||
id: semver | ||
uses: dbt-labs/actions/[email protected].0 | ||
uses: dbt-labs/actions/[email protected].1 | ||
with: | ||
version: ${{ inputs.version }} | ||
|
||
|
@@ -219,7 +219,7 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout ${{ github.event.repository.name }}@${{ needs.release-branch.outputs.name }}" | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.release-branch.outputs.name }} | ||
|
||
|
@@ -292,7 +292,7 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout ${{ github.event.repository.name }}@${{ needs.release-branch.outputs.name }}" | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.release-branch.outputs.name }} | ||
|
||
|
@@ -342,7 +342,7 @@ jobs: | |
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main | ||
|
||
- name: "Run unit tests" | ||
run: hatch run unit-tests:all | ||
run: hatch run unit-tests | ||
|
||
integration-tests: | ||
runs-on: ubuntu-latest | ||
|
@@ -387,7 +387,7 @@ jobs: | |
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main | ||
|
||
- name: "Run integration tests" | ||
run: hatch run integration-tests:all | ||
run: hatch run integration-tests | ||
env: | ||
POSTGRES_TEST_HOST: localhost | ||
POSTGRES_TEST_PORT: 5432 | ||
|
@@ -410,7 +410,7 @@ jobs: | |
steps: | ||
- name: "Checkout ${{ github.event.repository.name }}" | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Merge changes into ${{ inputs.branch }}" | ||
uses: everlytic/[email protected] | ||
|
@@ -455,7 +455,7 @@ jobs: | |
echo "name=$branch" >> $GITHUB_OUTPUT | ||
- name: "Checkout ${{ github.event.repository.name }}@${{ steps.branch.outputs.name }}" | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ steps.branch.outputs.name }} | ||
|
||
|
@@ -464,6 +464,6 @@ jobs: | |
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
# if this is a real release and a release branch was created, delete it | ||
- name: "Delete release branch: ${{ needs.branch.outputs.name }}" | ||
- name: "Delete release branch: ${{ needs.release-branch.outputs.name }}" | ||
if: ${{ inputs.deploy-to == 'prod' && inputs.is-nightly-release == 'false' && needs.release-branch.outputs.name != '' }} | ||
run: git push origin -d ${{ needs.branch.outputs.name }} | ||
run: git push origin -d ${{ needs.release-branch.outputs.name }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,3 +161,9 @@ cython_debug/ | |
|
||
# testing artifacts | ||
/logs | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# vscode | ||
.vscode/ |
Oops, something went wrong.