diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
index 281f1d4..2603602 100644
--- a/.buildkite/pipeline.yml
+++ b/.buildkite/pipeline.yml
@@ -3,7 +3,7 @@ steps:
key: "run-dbt-postgres"
plugins:
- docker#v3.13.0:
- image: "python:3.8"
+ image: "python:3.10.13"
shell: [ "/bin/bash", "-e", "-c" ]
environment:
- "BASH_ENV=/tmp/.bashrc"
@@ -18,7 +18,7 @@ steps:
key: "run_dbt_snowflake"
plugins:
- docker#v3.13.0:
- image: "python:3.8"
+ image: "python:3.10.13"
shell: [ "/bin/bash", "-e", "-c" ]
environment:
- "BASH_ENV=/tmp/.bashrc"
@@ -35,7 +35,7 @@ steps:
key: "run_dbt_bigquery"
plugins:
- docker#v3.13.0:
- image: "python:3.8"
+ image: "python:3.10.13"
shell: [ "/bin/bash", "-e", "-c" ]
environment:
- "BASH_ENV=/tmp/.bashrc"
@@ -47,7 +47,7 @@ steps:
key: "run_dbt_redshift"
plugins:
- docker#v3.13.0:
- image: "python:3.8"
+ image: "python:3.10.13"
shell: [ "/bin/bash", "-e", "-c" ]
environment:
- "BASH_ENV=/tmp/.bashrc"
@@ -62,7 +62,7 @@ steps:
key: "run_dbt_databricks"
plugins:
- docker#v3.13.0:
- image: "python:3.8"
+ image: "python:3.10.13"
shell: [ "/bin/bash", "-e", "-c" ]
environment:
- "BASH_ENV=/tmp/.bashrc"
diff --git a/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md
index 99c450c..0899dc6 100644
--- a/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md
+++ b/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md
@@ -12,13 +12,15 @@ Before marking this PR as "ready for review":
## PR Overview
**Package version introduced in this PR:**
-
+-
+
**This PR addresses the following Issue/Feature(s):**
+-
**Summary of changes:**
-
+-
### Submission Checklist
- [ ] Alignment meeting with the reviewer (if needed)
@@ -27,9 +29,10 @@ Before marking this PR as "ready for review":
- [ ] **Validation Steps:** Check for unintentional effects (e.g., add/run consistency & integrity tests)
- [ ] **Testing Instructions:** Confirm the change addresses the issue(s)
- [ ] **Focus Areas:** Complex logic or queries that need extra attention
+- [ ] Merge any relevant open PRs into this PR
### Changelog
- [ ] Draft changelog for PR
-- [ ] Final changelog for release review
\ No newline at end of file
+- [ ] Final changelog for release review
diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml
index 8ed5853..e0a7100 100644
--- a/.github/workflows/auto-release.yml
+++ b/.github/workflows/auto-release.yml
@@ -3,11 +3,12 @@ on:
pull_request:
types:
- closed
- branches:
- - main
+ - labeled
jobs:
- call-workflow-passing-data:
- if: github.event.pull_request.merged
+ release:
+ if: |
+ (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main') ||
+ github.event.label.name == 'pre-release'
uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml@main
- secrets: inherit
\ No newline at end of file
+ secrets: inherit
diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml
new file mode 100644
index 0000000..9fe0d01
--- /dev/null
+++ b/.github/workflows/generate-docs.yml
@@ -0,0 +1,13 @@
+name: 'generate dbt docs'
+on:
+ pull_request:
+ types:
+ - labeled
+
+jobs:
+ generate-docs:
+ if: github.event.label.name == 'docs:ready'
+ uses: fivetran/dbt_package_automations/.github/workflows/generate-docs.yml@main
+ secrets: inherit
+ with:
+ schema_var_name: amazon_ads_schema
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 066b7fc..06f4e77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,73 @@
-
-target/
+# dbt
+**/package-lock.yml
+package-lock.yml
+.dbt/
dbt_modules/
+dbt_packages/
logs/
+profiles.yml
+target/
+*.log
+
+# IDE files
+.idea/
+.vscode/
+*~
+*.swp
+*.swo
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# OS generated files
+**/.DS_Store
.DS_Store
-dbt_packages/
\ No newline at end of file
+.Spotlight-V100
+.Trashes
+._*
+Thumbs.db
+ehthumbs.db
+
+# Python
+*.egg
+*.egg-info/
+*.py[cod]
+*.so
+*$py.class
+.Python
+__pycache__/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.env
+.installed.cfg
+lib/
+lib64/
+MANIFEST
+parts/
+sdist/
+var/
+wheels/
+
+# Secrets and credentials
+.env.*
+.secrets
+credentials.json
+service-account.json
+
+# Temporary files
+.cache/
+*.temp
+*.tmp
+
+# Virtual environments
+.conda/
+.env
+.venv
+ENV/
+env/
+env.bak/
+venv/
+venv.bak/
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 940f6c5..c7d31bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,22 @@
+[PR #25](https://github.com/fivetran/dbt_amazon_ads_source/pull/25) includes the following updates:
+
+### Under the Hood - July 2025 Updates
+
+- Updated conditions in `.github/workflows/auto-release.yml`.
+- Added `.github/workflows/generate-docs.yml`.
+- Added `+docs: show: False` to `integration_tests/dbt_project.yml`.
+- Migrated `flags` (e.g., `send_anonymous_usage_stats`, `use_colors`) from `sample.profiles.yml` to `integration_tests/dbt_project.yml`.
+- Updated `maintainer_pull_request_template.md` with improved checklist.
+- Refreshed README tag block:
+ - Standardized Quickstart-compatible badge set
+ - Left-aligned and positioned below the H1 title.
+- Updated Python image version to `3.10.13` in `pipeline.yml`.
+- Added `CI_DATABRICKS_DBT_CATALOG` to:
+ - `.buildkite/hooks/pre-command` (as an export)
+ - `pipeline.yml` (under the `environment` block, after `CI_DATABRICKS_DBT_TOKEN`)
+- Added `certifi==2025.1.31` to `requirements.txt` (if missing).
+- Updated `.gitignore` to exclude additional DBT, Python, and system artifacts.
+
# dbt_amazon_ads_source v0.5.0
[PR #24](https://github.com/fivetran/dbt_amazon_ads_source/pull/24) includes the following updates:
diff --git a/README.md b/README.md
index 2620d56..01c7af1 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
href="https://github.com/fivetran/dbt_amazon_ads_source/blob/main/LICENSE">
-
+
@@ -119,7 +119,7 @@ vars:
Expand for more details
Fivetran offers the ability for you to orchestrate your dbt project through [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt). Learn how to set up your project for orchestration through Fivetran in our [Transformations for dbt Core™ setup guides](https://fivetran.com/docs/transformations/dbt#setupguide).
-
+
## Does this package have dependencies?
diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml
index 6e628a7..4862747 100644
--- a/integration_tests/ci/sample.profiles.yml
+++ b/integration_tests/ci/sample.profiles.yml
@@ -2,10 +2,6 @@
# HEY! This file is used in the dbt package integrations tests with Buildkite.
# You should __NEVER__ check credentials into version control. Thanks for reading :)
-config:
- send_anonymous_usage_stats: False
- use_colors: True
-
integration_tests:
target: redshift
outputs:
diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml
index d37ae4c..84f3d64 100644
--- a/integration_tests/dbt_project.yml
+++ b/integration_tests/dbt_project.yml
@@ -31,10 +31,15 @@ dispatch:
search_order: ['spark_utils', 'dbt_utils']
seeds:
+ +docs:
+ show: False
+quote_columns: "{{ true if target.type == 'redshift' else false }}"
amazon_ads_source_integration_tests:
+column_types:
_fivetran_synced: "timestamp"
campaign_budget_amount: "float"
click_through_rate: "float"
- keyword_bid: "float"
\ No newline at end of file
+ keyword_bid: "float"
+flags:
+ send_anonymous_usage_stats: False
+ use_colors: True
\ No newline at end of file