diff --git a/.changes/1.11.0.md b/.changes/1.11.0.md new file mode 100644 index 000000000..3f7316995 --- /dev/null +++ b/.changes/1.11.0.md @@ -0,0 +1,10 @@ +## dbt-adapters 1.11.0 - December 17, 2024 + +### Features + +- Add new hard_deletes="new_record" mode for snapshots. ([#317](https://github.com/dbt-labs/dbt-adapters/issues/317)) +- Introduce new Capability for MicrobatchConcurrency support ([#359](https://github.com/dbt-labs/dbt-adapters/issues/359)) + +### Under the Hood + +- Add retry logic for retryable exceptions. ([#368](https://github.com/dbt-labs/dbt-adapters/issues/368)) diff --git a/.changes/1.12.0.md b/.changes/1.12.0.md new file mode 100644 index 000000000..843e76966 --- /dev/null +++ b/.changes/1.12.0.md @@ -0,0 +1 @@ +## dbt-adapters 1.12.0 - December 18, 2024 diff --git a/.changes/unreleased/Features-20241104-120653.yaml b/.changes/unreleased/Features-20241104-120653.yaml deleted file mode 100644 index a85e1f7f2..000000000 --- a/.changes/unreleased/Features-20241104-120653.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add new hard_deletes="new_record" mode for snapshots. -time: 2024-11-04T12:06:53.225939-05:00 -custom: - Author: peterallenwebb - Issue: "317" diff --git a/.changes/unreleased/Features-20241120-112806.yaml b/.changes/unreleased/Features-20241120-112806.yaml deleted file mode 100644 index a135f9464..000000000 --- a/.changes/unreleased/Features-20241120-112806.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Introduce new Capability for MicrobatchConcurrency support -time: 2024-11-20T11:28:06.258507-05:00 -custom: - Author: michelleark - Issue: "359" diff --git a/.changes/unreleased/Under the Hood-20241204-185912.yaml b/.changes/unreleased/Under the Hood-20241204-185912.yaml deleted file mode 100644 index 5c7317031..000000000 --- a/.changes/unreleased/Under the Hood-20241204-185912.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add retry logic for retryable exceptions. -time: 2024-12-04T18:59:12.48816-08:00 -custom: - Author: 'colin-rogers-dbt ' - Issue: "368" diff --git a/.github/workflows/_generate-changelog.yml b/.github/workflows/_generate-changelog.yml index 37b67bbb0..acefb3e07 100644 --- a/.github/workflows/_generate-changelog.yml +++ b/.github/workflows/_generate-changelog.yml @@ -198,6 +198,9 @@ jobs: if: ${{ needs.temp-branch.outputs.name != '' && inputs.merge }} runs-on: ${{ vars.DEFAULT_RUNNER }} steps: + - uses: actions/checkout@v4 + with: + ref: ${{ needs.temp-branch.outputs.name }} - uses: everlytic/branch-merge@1.1.5 with: source_ref: ${{ needs.temp-branch.outputs.name }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 04a145458..421a66add 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -58,11 +58,45 @@ jobs: branch: ${{ needs.generate-changelog.outputs.branch-name }} secrets: inherit - publish-pypi: + package: if: ${{ inputs.pypi-public == true }} - needs: generate-changelog - uses: ./.github/workflows/_publish-pypi.yml + uses: ./.github/workflows/_package-directory.yml with: package: ${{ inputs.package }} - deploy-to: ${{ inputs.deploy-to }} - branch: ${{ needs.generate-changelog.outputs.branch-name }} + + publish-pypi: + if: ${{ inputs.pypi-public == true }} + needs: [package, generate-changelog] + runs-on: ${{ vars.DEFAULT_RUNNER }} + environment: + name: ${{ inputs.deploy-to }} + url: ${{ vars.PYPI_PROJECT_URL }}/${{ inputs.package }} + permissions: + # this permission is required for trusted publishing + # see https://github.com/marketplace/actions/pypi-publish + id-token: write + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ needs.generate-changelog.outputs.branch-name }} + - uses: actions/setup-python@v5 + with: + python-version: ${{ vars.DEFAULT_PYTHON_VERSION }} + - uses: pypa/hatch@install + # hatch will build using test PyPI first and fall back to prod PyPI when deploying to test + # this is done via environment variables in the test environment in GitHub + - run: hatch build && hatch run build:check-all + working-directory: ./${{ needs.package.outputs.directory }} + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: ${{ vars.PYPI_REPOSITORY_URL }} + packages-dir: ./${{ needs.package.outputs.directory }}dist/ + - id: version + run: echo "version=$(hatch version)" >> $GITHUB_OUTPUT + working-directory: ./${{ needs.package.outputs.directory }} + - uses: nick-fields/retry@v3 + with: + timeout_seconds: 10 + retry_wait_seconds: 10 + max_attempts: 15 # 5 minutes: (10s timeout + 10s delay) * 15 attempts + command: wget ${{ vars.PYPI_PROJECT_URL }}/${{ steps.version.outputs.version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index e95c864ec..47a19fcb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +## dbt-adapters 1.12.0 - December 18, 2024 + + + +## dbt-adapters 1.11.0 - December 17, 2024 + +### Features + +- Add new hard_deletes="new_record" mode for snapshots. ([#317](https://github.com/dbt-labs/dbt-adapters/issues/317)) +- Introduce new Capability for MicrobatchConcurrency support ([#359](https://github.com/dbt-labs/dbt-adapters/issues/359)) + +### Under the Hood + +- Add retry logic for retryable exceptions. ([#368](https://github.com/dbt-labs/dbt-adapters/issues/368)) + ## dbt-adapters 1.10.4 - November 11, 2024 ### Features @@ -37,8 +52,6 @@ and is generated by [Changie](https://github.com/miniscruff/changie). - Negate the check for microbatch behavior flag in determining builtins ([#349](https://github.com/dbt-labs/dbt-adapters/issues/349)) - Move require_batched_execution_for_custom_microbatch_strategy flag to global ([#351](https://github.com/dbt-labs/dbt-adapters/issues/351)) - - ## dbt-adapters 1.8.0 - October 29, 2024 ### Fixes diff --git a/dbt/adapters/__about__.py b/dbt/adapters/__about__.py index 08e0d06bf..134ed009f 100644 --- a/dbt/adapters/__about__.py +++ b/dbt/adapters/__about__.py @@ -1 +1 @@ -version = "1.10.4" +version = "1.12.0"