From f071ff47754dea2d415dcd309362987651a15df4 Mon Sep 17 00:00:00 2001 From: "Hyeonjae.Jeong" Date: Mon, 26 Oct 2026 16:34:45 +0900 Subject: [PATCH 1/2] ci: propose report-only DuckDB schema review --- .github/workflows/schema-plan.yml | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/schema-plan.yml diff --git a/.github/workflows/schema-plan.yml b/.github/workflows/schema-plan.yml new file mode 100644 index 000000000..041857a44 --- /dev/null +++ b/.github/workflows/schema-plan.yml @@ -0,0 +1,48 @@ +name: Review schema changes + +on: + pull_request: + +permissions: + contents: read + +concurrency: + group: schema-plan-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + schema-plan: + runs-on: ubuntu-latest + timeout-minutes: 10 + env: + DBT_SEND_ANONYMOUS_USAGE_STATS: "false" + steps: + - name: Checkout pull request + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 + with: + python-version: "3.12" + + - name: Install dbt and DuckDB adapter + run: pip install dbt-core==1.11.14 dbt-duckdb==1.10.1 + + - name: Generate local-only profiles + run: | + profiles_dir="$RUNNER_TEMP/dbt-plan-profiles" + python integration_tests/profiles/generate_profiles.py \ + --template integration_tests/profiles/profiles.yml.j2 \ + --output "$profiles_dir/profiles.yml" \ + --schema-name dbt_plan_pilot + echo "DBT_PROFILES_DIR=$profiles_dir" >> "$GITHUB_ENV" + + - name: Review compiled schema changes + uses: PresentJay/dbt-plan@4caa03dd9d778e2bbfd54cb34f744e6bc7b3669f # v0.18.2 + with: + version: "0.18.2" + fail-on: never + compile-command: dbt deps && dbt compile --target duckdb --no-partial-parse From 17c0b0866e2759cb7e8e11ac35f622104d54a455 Mon Sep 17 00:00:00 2001 From: "Hyeonjae.Jeong" Date: Mon, 26 Oct 2026 17:47:33 +0900 Subject: [PATCH 2/2] ci: use released dbt-plan v0.18.3 for schema review --- .github/workflows/schema-plan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/schema-plan.yml b/.github/workflows/schema-plan.yml index 041857a44..1eb7fd2bd 100644 --- a/.github/workflows/schema-plan.yml +++ b/.github/workflows/schema-plan.yml @@ -41,8 +41,8 @@ jobs: echo "DBT_PROFILES_DIR=$profiles_dir" >> "$GITHUB_ENV" - name: Review compiled schema changes - uses: PresentJay/dbt-plan@4caa03dd9d778e2bbfd54cb34f744e6bc7b3669f # v0.18.2 + uses: PresentJay/dbt-plan@0954f1dc64bc3596c8b2dcc77b034c9cd1c34704 # v0.18.3 with: - version: "0.18.2" + version: "0.18.3" fail-on: never compile-command: dbt deps && dbt compile --target duckdb --no-partial-parse