Skip to content

Rewrite contributor docs to match current PR review policy [DRAFT - master] - #69546

Closed
dwoz wants to merge 1 commit into
saltstack:masterfrom
dwoz:docs-pr11-contributing-master
Closed

dwoz wants to merge 1 commit into
saltstack:masterfrom
dwoz:docs-pr11-contributing-master

Conversation

@dwoz

@dwoz dwoz commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Rewrites `CONTRIBUTING.rst` to describe the gates the maintainers actually
enforce, refreshes the surrounding development docs, and adds a pre-commit
gate that enforces them.

NEEDS MAINTAINER REVIEW

This is a policy doc. Please confirm:

  1. The five PR-merge gates listed in "What a pull request needs before it can merge"
    (CI green, changelog fragment, test coverage, target branch, PR description)
    match what reviewers actually require.
  2. The branch matrix (3006.x Sulfur LTS / 3007.x Chlorine / 3008.x Argon /
    master Potassium) - codenames per branch.
  3. "We do not require you to be in a specific working group, post in Discord,
    or attend the test clinic to get your PR merged" - confirm this is the
    policy stance.
  4. The new `tools/check_pr_ready.py` pre-commit hook is a NEW gate; this will
    block PRs that previously merged with debug `print()`, missing changelog
    fragments, `Co-Authored-By` trailers, or `skipif(reason="TODO")`. Please
    sanction the gate before merging.
  5. Deprecation policy ("at least two feature releases between deprecation
    and removal") matches your intended timeline.

Issues addressed

Files touched

  • `CONTRIBUTING.rst` - full rewrite
  • `doc/topics/contributing-guide.rst` - collapsed to redirect (was duplicate-include of CONTRIBUTING.rst)
  • `doc/topics/development/changelog.rst` - rewritten, added types section + pre-commit hook reference
  • `doc/topics/development/deprecations.rst` - worked example for `.. deprecated::` directive
  • `doc/topics/development/git/index.rst` - 3006.x/3007.x/3008.x/master branching model
  • `doc/topics/development/tests/index.rst` - pytest patterns, fixtures, parametrize
  • `doc/topics/development/conventions/formulas.rst` - state ID naming convention
  • `doc/topics/jinja/index.rst` - cleaned up 3000-era filter samples ([Documentation] Inconsistent jinja samples for filters added in version 3000 #56192)
  • `.pre-commit-config.yaml` - new `check-pr-ready` hook
  • `tools/check_pr_ready.py` - new (stdlib-only)
  • `tests/pytests/unit/test_pr_ready_checker.py` - 15 tests covering all checks

Test plan

  • sphinx build clean on the changed files (no new warnings)
  • `pre-commit run --files ` passes (black, isort, pylint, mypy on tools, check-pr-ready)
  • `pytest tests/pytests/unit/test_pr_ready_checker.py` - 15/15 PASSED
  • Maintainer sign-off on the five policy claims above

Re-scopes CONTRIBUTING.rst to the gates maintainers actually enforce (CI
green, changelog fragment, regression test, correct base branch) and
cuts the aspirational asks. Refreshes the pyenv, pre-commit, and nox
command examples; documents the .. deprecated:: directive; updates the
git policy page with the current 3006.x/3007.x/3008.x/master branch
matrix; expands the changelog page; documents formula state ID naming
and pytest patterns; cleans up the 3000-era jinja filter samples.

Adds tools/check_pr_ready.py and a pre-commit hook that asserts the
documented PR gates (changelog fragment, no skipif TODO dodges, no debug
print, no AI attribution trailer).

Addresses: saltstack#36962 saltstack#56192 saltstack#56560 saltstack#57203 saltstack#57988 saltstack#58208 saltstack#59854 saltstack#62498
saltstack#64216 saltstack#66021 saltstack#68538
@dwoz dwoz added this to the Potassium v3009.0 milestone Jun 25, 2026
@dwoz dwoz added the test:full Run the full test suite label Jun 25, 2026
@dwoz

dwoz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Consolidating to oldest applicable branch PR #69549; bulk merge-forward will propagate. Closing this PR.

@dwoz dwoz closed this Jul 1, 2026

This branch was previously deployed

1 inactive deployment
ci — 343d6d62 Deployed Jun 26, 2026 by dwoz via Build Onedir Packages / Windows (amd64) #24657
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant