From 5fef82b0be797c9784a68cda430bee6fd53d2fc1 Mon Sep 17 00:00:00 2001 From: mday-io Date: Mon, 30 Nov 2026 15:22:30 -0500 Subject: [PATCH 1/3] chore(ci): add CodeRabbit config Review once per PR instead of on every push, add a scope line to the summary, flag engine-specific logic in core modules, and limit label suggestions to area labels that pr-labels.yaml doesn't manage. Signed-off-by: mday-io --- .coderabbit.yaml | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .coderabbit.yaml diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000000..9b7d11c19a --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,81 @@ +# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json +# +# CodeRabbit reviews are advisory. Maintainers decide what blocks a merge. +# Settings not listed here use CodeRabbit's defaults. + +reviews: + auto_review: + # Review once when a PR opens. Comment "@coderabbitai review" to review again. + # Re-reviewing every push turned large PRs into a loop of bot findings and fix commits. + auto_incremental_review: false + + high_level_summary_in_walkthrough: true + high_level_summary_instructions: >- + Keep the current format. At the end, add a "Scope" line with lines added and removed, + not counting tests and docs, and list any changed files under sqlmesh/core (outside + sqlmesh/core/engine_adapter) or sqlmesh/utils. + + path_instructions: + - path: "sqlmesh/core/**" + instructions: >- + This guidance applies only to files outside sqlmesh/core/engine_adapter/. Flag getattr + or hasattr checks on an engine adapter for attributes that aren't defined on the base + EngineAdapter class, and new engine-specific parameters added to shared functions. + Suggest a method on EngineAdapter that engines override instead. Also flag behavior + changes to shared code that the PR description doesn't mention, and suggest moving + them to a separate PR. + + # Only for "@coderabbitai" in a PR title. CI checks this format (see CONTRIBUTING.md). + auto_title_instructions: >- + Use the format type(scope): description. type is one of feat, fix, perf, docs, refactor, + chore, build, ci or test. scope is optional and names the area changed, such as snowflake, + plan, dbt or vscode. Add ! after the type or scope only for breaking changes. Write the + description for users: what changed for them, not how the code changed. Use lowercase and + no trailing period. + + # Area labels only. .github/workflows/pr-labels.yaml sets the release-note labels + # (Feature, Bug, performance, Documentation, maintenance, ci, test, breaking-change, + # migration) from the title and files, and maintainers add skip-changelog by hand. + labeling_instructions: + - label: "Engine: Athena" + instructions: Changes Athena behavior, such as sqlmesh/core/engine_adapter/athena.py. + - label: "Engine: BigQuery" + instructions: Changes BigQuery behavior, such as sqlmesh/core/engine_adapter/bigquery.py. + - label: "Engine: Clickhouse" + instructions: Changes ClickHouse behavior, such as sqlmesh/core/engine_adapter/clickhouse.py. + - label: "Engine: Databricks" + instructions: Changes Databricks behavior, such as sqlmesh/core/engine_adapter/databricks.py. + - label: "Engine: DuckDB" + instructions: Changes DuckDB behavior, such as sqlmesh/core/engine_adapter/duckdb.py. + - label: "Engine: Fabric" + instructions: Changes Microsoft Fabric behavior, such as sqlmesh/core/engine_adapter/fabric.py. + - label: "Engine: MySQL" + instructions: Changes MySQL behavior, such as sqlmesh/core/engine_adapter/mysql.py. + - label: "Engine: Postgres" + instructions: Changes Postgres behavior, such as sqlmesh/core/engine_adapter/postgres.py. + - label: "Engine: Redshift" + instructions: Changes Redshift behavior, such as sqlmesh/core/engine_adapter/redshift.py. + - label: "Engine: Snowflake" + instructions: Changes Snowflake behavior, such as sqlmesh/core/engine_adapter/snowflake.py. + - label: "Engine: Spark" + instructions: Changes Spark behavior, such as sqlmesh/core/engine_adapter/spark.py. + - label: "Engine: SQL Server" + instructions: Changes SQL Server behavior, such as sqlmesh/core/engine_adapter/mssql.py. + - label: "Engine: Trino" + instructions: Changes Trino behavior, such as sqlmesh/core/engine_adapter/trino.py. + - label: "Table Format: Iceberg" + instructions: Changes how SQLMesh reads or writes Iceberg tables on any engine. + - label: "Project: dbt" + instructions: Changes dbt support, such as sqlmesh/dbt/ or sqlmesh_dbt/. + - label: "Project: UI" + instructions: Changes the web UI, such as web/. + - label: "Project: VSCode Extension" + instructions: Changes the VS Code extension or language server, such as vscode/ or sqlmesh/lsp/. + - label: "Project: CICD Bot" + instructions: Changes the GitHub CI/CD bot, such as sqlmesh/integrations/github/ or sqlmesh/cicd/. + - label: "Scheduler: Built-in" + instructions: Changes the built-in scheduler, such as sqlmesh/core/scheduler.py or sqlmesh/schedulers/. + - label: "UX" + instructions: Changes what users see or configure, such as CLI output, error messages or config settings. + - label: "Tech Debt" + instructions: Only internal cleanup with no behavior change. From 7c73e7786920db5c622b184f380ffc8ec10011d4 Mon Sep 17 00:00:00 2001 From: mday-io Date: Mon, 30 Nov 2026 15:48:36 -0500 Subject: [PATCH 2/3] chore(ci): drop CodeRabbit auto title instructions Signed-off-by: mday-io --- .coderabbit.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 9b7d11c19a..99cca2b136 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -25,14 +25,6 @@ reviews: changes to shared code that the PR description doesn't mention, and suggest moving them to a separate PR. - # Only for "@coderabbitai" in a PR title. CI checks this format (see CONTRIBUTING.md). - auto_title_instructions: >- - Use the format type(scope): description. type is one of feat, fix, perf, docs, refactor, - chore, build, ci or test. scope is optional and names the area changed, such as snowflake, - plan, dbt or vscode. Add ! after the type or scope only for breaking changes. Write the - description for users: what changed for them, not how the code changed. Use lowercase and - no trailing period. - # Area labels only. .github/workflows/pr-labels.yaml sets the release-note labels # (Feature, Bug, performance, Documentation, maintenance, ci, test, breaking-change, # migration) from the title and files, and maintainers add skip-changelog by hand. From 65cf6a638bd5707562e05608b84a0cde6bc3039f Mon Sep 17 00:00:00 2001 From: mday-io Date: Mon, 30 Nov 2026 15:52:07 -0500 Subject: [PATCH 3/3] docs: note in CONTRIBUTING.md that CodeRabbit reviews are advisory Signed-off-by: mday-io --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e8757420c..7308783058 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,6 +86,7 @@ Optionally, `make install-pre-commit` installs git hooks so ruff and mypy run on - Ensure all CI checks pass - Include a DCO sign-off on all commits (`git commit -s`) - Be responsive to review feedback from maintainers +- CodeRabbit reviews each pull request once when it opens. Comment `@coderabbitai review` to request another review. Its comments are suggestions: a maintainer's review decides what blocks a merge, and resolving every CodeRabbit comment doesn't mean the PR is ready. ### Pull Request Titles