Skip to content

docs: add pull request scope and new engine guidelines - #6287

Open
mday-io wants to merge 1 commit into
SQLMesh:mainfrom
mday-io:docs/contributing-pr-scope
Open

mday-io wants to merge 1 commit into
SQLMesh:mainfrom
mday-io:docs/contributing-pr-scope

Conversation

@mday-io

@mday-io mday-io commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Why

CONTRIBUTING.md doesn't say how large a pull request should be or how to propose a new engine. #6154, a new Doris engine, reached about 20,000 lines in one PR, including changes to shared code that affect every engine. No maintainer questioned its scope until a month in, and nothing in our docs told the author to check scope first. CONTRIBUTING.md says the TSC approves contribution policies, so this PR proposes the rules for the TSC to review.

How

Adds two subsections under Pull Request Process:

  • Pull Request Scope: one reviewable change per PR, changes to shared code in their own PR with their own tests, and the author is responsible for explaining every change, including ones suggested by a coding assistant or an automated reviewer.
  • Adding a New Engine: open an issue that scopes the first version and get a maintainer's agreement before opening a PR. Parsing changes may belong in SQLGlot.

It sets no line limit. Maintainers decide when a PR needs splitting.

#6286 adds the related CodeRabbit config and the note that CodeRabbit reviews are advisory.

Test Plan

Documentation only. Checked that the new subsections sit under Pull Request Process with the same heading level as Pull Request Titles. I haven't checked the rendered page.

Checklist

  • I have run make style and fixed any issues (not applicable: no files covered by the style hooks changed)
  • I have added tests for my changes (if applicable) (not applicable)
  • All existing tests pass (make fast-test) (not applicable)
  • My commits are signed off (git commit -s) per the DCO

Adds two subsections under Pull Request Process in CONTRIBUTING.md.

  • Pull Request Scope: Keep each PR to one reviewable change. Put shared-code changes in a separate PR with its own tests. Explain every change, including changes suggested by coding assistants or automated reviewers. No line limit is set.
  • Adding a New Engine: Open an issue that defines the first version's scope. Get maintainer agreement before opening a PR. Parsing changes may belong in SQLGlot.

Scope: 0 non-test, non-docs lines added and 0 removed. The only changed file, CONTRIBUTING.md, is documentation. No changed files under sqlmesh/core (outside engine_adapter) or sqlmesh/utils.

…G.md

Signed-off-by: mday-io <mdaytn@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

CONTRIBUTING.md now gives guidance for keeping pull requests focused and reviewable. It also describes the issue and maintainer-agreement steps for proposing a new engine.

Changes: Contributor guidance

Layer / File(s) Summary
Pull request and engine proposal guidance
CONTRIBUTING.md
Adds guidance on pull request scope, testing shared-code changes, and explaining changes. It also outlines the information to include in a new-engine proposal and requires maintainer agreement before opening a pull request.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related issues

  • Issue 6048 proposes an Oracle engine adapter and asks for maintainer agreement on scope, which aligns with the new-engine proposal guidance.

Suggested reviewers: cmgoffena13, yuki-kakegawa

Merge Risk: Minimal · up to fef1f

This documentation-only change adds pull request scope and new-engine proposal guidance for contributors. It has no production impact and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two additions in the diff: pull request scope guidance and new engine guidance, both in CONTRIBUTING.md under Pull Request Process. The 'docs:' prefix matches the documentation-onl…
Description check Passed The description covers the motivation (PR #6154 scope problem), the two new subsections, and the test plan, and it notes that the checklist items were not applicable. It does not follow the template's…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two additions in the diff: pull request scope guidance and new engine guidance, both in CONTRIBUTING.md under Pull Request Process. The 'docs:' prefix matches the documentation-only change. It is specific and accurate, so it passes.

Full details: Description check

Explanation

The description covers the motivation (PR #6154 scope problem), the two new subsections, and the test plan, and it notes that the checklist items were not applicable. It does not follow the template's Test Plan and Checklist headings exactly, and the checklist keeps the DCO item checked. The content is complete enough to review, so it passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0b1e5709-3d3c-43a8-8cbf-a4ea3ceb8b65
Commits

Reviewing files that changed from the base of the PR and between d0c003b and fef1f9b.

Files selected for processing: 1

  • CONTRIBUTING.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Nov 30, 2026
@mday-io
mday-io marked this pull request as ready for review November 30, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant